diff --git a/gulpfile.js b/gulpfile.js index 24e73ca..209ccfd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -61,8 +61,6 @@ gulp.task('pre-commit', function() { gulp.start('templates'); }); -gulp.task('compile', ['templates', 'uglify']); - gulp.task('webserver', function() { pump [ connect.server({port: 3000}) diff --git a/package.json b/package.json index 9d5d5a3..bf0445a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "gulp-pre-commit": "gulp pre-commit", - "postinstall": "gulp compile && rm -R src && rm index.html && rm .jshintrc && rm gulpfile.js", + "compile": "gulp templates && gulp uglify", + "postinstall": "npm run compile && rm -R src && rm index.html && rm .jshintrc && rm gulpfile.js", "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" }, "pre-commit": [