Herramientas de usuario

Herramientas del sitio


wiki2:webdev

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anterior Revisión previa
Próxima revisión
Revisión previa
wiki2:webdev [2016/07/20 14:15]
alfred [Basic script]
wiki2:webdev [2020/05/24 10:14] (actual)
Línea 36: Línea 36:
  
 gulp.task('​deploy',​ function () { gulp.task('​deploy',​ function () {
-    gulp.src('​app/​*.js'​)+    ​return ​gulp.src('​app/​*.js'​)
         .pipe(gulp.dest('​dist'​));​         .pipe(gulp.dest('​dist'​));​
 }); });
 </​code>​ </​code>​
 +
 +:!: remember to return so there was another task which depended of this could use it
  
 ==== Add another command to execute prior to the current ==== ==== Add another command to execute prior to the current ====
 <​code>​ <​code>​
 gulp.task('​deploy',​ ['​prior-task1',​ '​prior-task2'​],​ function () { ... gulp.task('​deploy',​ ['​prior-task1',​ '​prior-task2'​],​ function () { ...
 +</​code>​
 +
 +===== Tools for web development =====
 +
 +==== Automatically reload static pages ====
 +  * https://​www.npmjs.com/​package/​reload
 +
 +With reload installed you can do ''​reload -b''​ into your root path an it will automatically reload when some of its inner files change.
 +
 +==== Emmet ====
 +=== Forms ===
 +
 +<​code>​
 +form>​input[type=text]+input[type=password]+submit
 +</​code>​
 +<​code>​
 +<​form>​
 +    <input type="​text">​
 +    <input type="​password">​
 +    <​submit></​submit>​
 +</​form>​
 +</​code>​
 +
 +===== Tips and notes =====
 +==== Test external authenticator ====
 +You have to prepare one of your servers to accept a connection from the authenticator.
 +
 +For example, in Caddy:
 +<​code>​
 +fok.surrealistic.xyz {
 +    proxy / localhost:​8000
 +    header / Strict-Transport-Security "​15768000"​
 +}
 +</​code>​
 +
 +Or in Nginx:
 +<​code>​
 +</​code>​
 +
 +Then you configure the authenticator to your url: ''​https://​fok.surrealistic.xyz/​login''​
 +
 +And add a tunnel to your server from your machine on the chosen port:
 +<​code>​
 +ssh -R "​0.0.0.0:​8000:​0.0.0.0:​8000"​ codi
 </​code>​ </​code>​
wiki2/webdev.1469024113.txt.gz · Última modificación: 2020/05/09 09:25 (editor externo)