Commit 3db30f1f authored by Daljeet SIngh's avatar Daljeet SIngh

Update

parent 016bc916
version: "2"
services:
node:
image: "node:10"
user: "node"
volumes:
- ./:/home/node/app
working_dir: /home/node/app
command: npm install
\ No newline at end of file
......@@ -3,6 +3,12 @@ services:
node:
image: "node:10"
user: "node"
working_dir: /home/node/app
volumes:
- ./:/home/node/app
working_dir: /home/node/app
ports:
- "3000:3000"
- "3001:3001"
command: "npm start"
This diff is collapsed.
......@@ -35,6 +35,7 @@
</head>
<body class="{{ body_class }}">
{% block before_container %}{% endblock %}
{% block container%}{% endblock %}
{% block after_container %}
......
......@@ -7,7 +7,7 @@ function serveTask(done: any) {
{
port: PORT,
startPath: PROJECT_BASE,
open: true,
open: false,
server: {
baseDir: DEST_DIR,
routes: {
......
......@@ -8,14 +8,14 @@ import { reload } from "../lib";
const plugins = <any>gulpLoadPlugins();
function watchTask(done: any) {
plugins.watch([join(HTML_CONFIG.src, "**")], (e: any) => runSequence("build.html", () => reload(e)));
plugins.watch([join(CSS_CONFIG.src, "**")], (e: any) => runSequence("build.css", () => reload(e)));
plugins.watch([join(JS_CONFIG.src, "**")], (e: any) => runSequence("build.js", () => reload(e)));
plugins.watch([join(IMAGES_CONFIG.src, "**")], (e: any) => runSequence("build.images", () => reload(e)));
plugins.watch([join(STATIC_CONFIG.src, "**")], (e: any) => runSequence("build.static", () => reload(e)));
plugins.watch([join(FONTS_CONFIG.src, "**")], (e: any) => runSequence("build.fonts", () => reload(e)));
plugins.watch([join(SPRITE_CONFIG.src, "**")], (e: any) => runSequence("build.sprite", () => reload(e)));
plugins.watch([SRC_CONFIG_FILE], (e: any) => runSequence("build.html", "build.js", "build.css", () => reload(e)));
plugins.watch([join(HTML_CONFIG.src, "**")], {usePolling : true}, (e: any) => runSequence("build.html", () => reload(e)));
plugins.watch([join(CSS_CONFIG.src, "**")], {usePolling : true}, (e: any) => runSequence("build.css", () => reload(e)));
plugins.watch([join(JS_CONFIG.src, "**")], {usePolling : true}, (e: any) => runSequence("build.js", () => reload(e)));
plugins.watch([join(IMAGES_CONFIG.src, "**")], {usePolling : true}, (e: any) => runSequence("build.images", () => reload(e)));
plugins.watch([join(STATIC_CONFIG.src, "**")], {usePolling : true}, (e: any) => runSequence("build.static", () => reload(e)));
plugins.watch([join(FONTS_CONFIG.src, "**")], {usePolling : true}, (e: any) => runSequence("build.fonts", () => reload(e)));
plugins.watch([join(SPRITE_CONFIG.src, "**")], {usePolling : true}, (e: any) => runSequence("build.sprite", () => reload(e)));
plugins.watch([SRC_CONFIG_FILE], {usePolling : true}, (e: any) => runSequence("build.html", "build.js", "build.css", () => reload(e)));
}
gulp.task("watch", (done: any) => watchTask(done));
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment