kopia lustrzana https://github.com/OpenDroneMap/WebODM
Removed gulp
rodzic
c8377be230
commit
a325cf1f98
|
@ -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;
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
5
start.sh
5
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...
|
||||
|
|
Ładowanie…
Reference in New Issue