Commit abf1d07fc335f5cadc5bcc1248fce89115d404dd

Authored by Nicolás Guarnieri
1 parent fed0688a98
Exists in master

gulp compile definitivo

Showing 3 changed files with 6 additions and 7 deletions   Show diff stats
... ... @@ -32,7 +32,7 @@
32 32 "indent": 4,
33 33  
34 34 // Prohibit use of a variable before it is defined.
35   - "latedef": true,
  35 + "latedef": false,
36 36  
37 37 // Enforce line length to 100 characters
38 38 "maxlen": 100,
... ... @@ -17,7 +17,7 @@ var paths = {
17 17 };
18 18  
19 19 gulp.task('templates', function() {
20   - pump(
  20 + return pump(
21 21 [
22 22 gulp.src(paths.srcViews),
23 23 replace('views/', ''),
... ... @@ -31,8 +31,8 @@ gulp.task('templates', function() {
31 31 );
32 32 });
33 33  
34   -gulp.task('uglify', function() {
35   - pump(
  34 +gulp.task('uglify', ['templates'], function() {
  35 + return pump(
36 36 [
37 37 gulp.src([
38 38 paths.srcJS,
... ... @@ -48,7 +48,7 @@ gulp.task('uglify', function() {
48 48 });
49 49  
50 50 gulp.task('pre-commit', function() {
51   - pump(
  51 + return pump(
52 52 [
53 53 gulp.src(paths.srcJS),
54 54 jshint('.jshintrc'),
... ... @@ -58,7 +58,6 @@ gulp.task('pre-commit', function() {
58 58 );
59 59  
60 60 gulp.start('uglify');
61   - gulp.start('templates');
62 61 });
63 62  
64 63 gulp.task('webserver', function() {
... ... @@ -6,7 +6,7 @@
6 6 "scripts": {
7 7 "test": "echo \"Error: no test specified\" && exit 1",
8 8 "gulp-pre-commit": "gulp pre-commit",
9   - "compile": "gulp templates && gulp uglify",
  9 + "compile": "gulp uglify",
10 10 "postinstall": "npm run compile && rm -R src && rm index.html && rm .jshintrc && rm gulpfile.js",
11 11 "install-dev": "npm install -D angular bootstrap font-awesome gulp gulp-angular-templatecache gulp-concat gulp-connect gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify jasmine-core jquery jshint pre-commit pump ui-bootstrap4 && npm i -D git+https://192.168.0.11/modulos-npm/foca-directivas"
12 12 },