diff --git a/app/static/admin/gulpfile.js b/app/static/admin/gulpfile.js deleted file mode 100644 index 71437a7c..00000000 --- a/app/static/admin/gulpfile.js +++ /dev/null @@ -1,36 +0,0 @@ -// Sass configuration -var gulp = require("gulp"), - sass = require("gulp-sass"), - postcss = require("gulp-postcss"), - autoprefixer = require("autoprefixer"), - cssnano = require("cssnano"), - sourcemaps = require("gulp-sourcemaps"); - -function watch() { - - style(); - - gulp.watch('css/*.scss', style); - -} - -function style() { - - return ( - gulp - .src('css/*.scss') - .pipe(sourcemaps.init()) - .pipe(sass()) - .on("error", sass.logError) - // Aggiungiamo i prefissi dove serve e minifichiamo - .pipe(postcss([autoprefixer(), cssnano()])) - // Le sourcemaps non fanno mai male - .pipe(sourcemaps.write(".")) - .pipe(gulp.dest(function(f) { - return "./css"; - })) - ); -} - -exports.watch = watch; -exports.style = style; diff --git a/package.json b/package.json index ff43447d..467d1578 100644 --- a/package.json +++ b/package.json @@ -68,13 +68,6 @@ "url-loader": "^0.5.7", "webpack": "^4.16.2", "webpack-bundle-tracker": "0.0.93", - "webpack-livereload-plugin": "^2.1.1", - "autoprefixer": "^9.8.4", - "cssnano": "^4.1.10", - "gulp": "^4.0.2", - "gulp-postcss": "^8.0.0", - "gulp-sass": "^4.1.0", - "gulp-sourcemaps": "^2.6.5", - "node-sass": "^5.0.0" + "webpack-livereload-plugin": "^2.1.1" } } diff --git a/start.sh b/start.sh index 10a9c3a6..5b83f5bf 100755 --- a/start.sh +++ b/start.sh @@ -55,11 +55,6 @@ if [ "$1" = "--setup-devenv" ] || [ "$2" = "--setup-devenv" ]; then echo Build translations... python manage.py translate build --safe - echo Setup gulp watch... - cd app/static/admin - npm rebuild node-sass - gulp watch & - cd /webodm echo Setup webpack watch...