125 gulp.src('./build/*.js') |
125 gulp.src('./build/*.js') |
126 .pipe(gulp.dest('./../server/ammico/static/ammico/js')); |
126 .pipe(gulp.dest('./../server/ammico/static/ammico/js')); |
127 gulp.src('./build/*.css') |
127 gulp.src('./build/*.css') |
128 .pipe(gulp.dest('./../server/ammico/static/ammico/css')); |
128 .pipe(gulp.dest('./../server/ammico/static/ammico/css')); |
129 gulp.src('./app/index.html') |
129 gulp.src('./app/index.html') |
130 .pipe(htmlreplace({ |
130 .pipe(htmlreplace({ |
131 django: '{% load static %}', |
131 django: '{% load static %}', |
132 js:{ |
132 js:{ |
133 src: ['lib.js', 'templates.js', 'app.js'], |
133 src: ['lib.js', 'templates.js', 'app.js'], |
134 tpl: '<script src="{% static \'ammico/js/%s\' %}"></script>' |
134 tpl: '<script src="{% static \'ammico/js/%s\' %}"></script>' |
135 }, |
135 }, |
136 css: { |
136 css: { |
137 src: ['lib.css', 'app.css'], |
137 src: ['lib.css', 'app.css'], |
138 tpl: '<link rel="stylesheet" type="text/css" href="{% static \'ammico/css/%s\' %}"/>' |
138 tpl: '<link rel="stylesheet" type="text/css" href="{% static \'ammico/css/%s\' %}"/>' |
139 }, |
139 }, |
140 imgLogo: { |
140 imgLogo: { |
141 src: 'ammico_logo_small.png', |
141 src: 'ammico_logo_small.png', |
142 tpl: '<img src="{% static \'ammico/img/%s\' %}">' |
142 tpl: '<img src="{% static \'ammico/img/%s\' %}">' |
143 }, |
143 }, |
144 imgFooter: { |
144 imgFooter: { |
145 src: 'logo_IRI_footer.png', |
145 src: 'logo_IRI_footer.png', |
146 tpl: '<img src="{% static \'ammico/img/%s\' %}" alt="Logo IRI" />' |
146 tpl: '<img src="{% static \'ammico/img/%s\' %}" alt="Logo IRI" />' |
147 } |
147 } |
148 })) |
148 })) |
149 .pipe(gulp.dest('./../server/ammico/templates')); |
149 .pipe(gulp.dest('./../server/ammico/templates')); |
150 }); |
150 }); |
151 |
151 |
152 gulp.task('watch',function(){ |
152 gulp.task('watch',function(){ |
153 gulp.watch([ |
153 gulp.watch([ |