Skip to content

Commit

Permalink
Remove unused js compilation pipeline (jazzband#561)
Browse files Browse the repository at this point in the history
* Remove unused gulp js compilation

* Clean up gulpfile and package.json
  • Loading branch information
albertyw authored May 28, 2022
1 parent b0cfccb commit 0f5c994
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 119 deletions.
44 changes: 0 additions & 44 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,7 @@
let gulp = require('gulp'),
async = require('async'),
_ = require('underscore'),
plugins = require('gulp-load-plugins')(),
sass = require('gulp-sass');


let webpack = {
externals: {
'react': 'React',
'jQuery': '$',
'underscore': '_',
'moment': 'moment',
'async': 'async'
},
devtool: 'inline-source-map',
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
}
]
}
};


gulp.task('watch', function () {
gulp.watch('scss/**/*.scss', gulp.series('sass'));
});
Expand All @@ -35,23 +11,3 @@ gulp.task('sass', function () {
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('silk/static/silk/css'));
});

let apps = {
summary: 'js/summary/index.js'
};

gulp.task('js', function (done) {
let appNames = Object.keys(apps),
tasks = _.map(appNames, function (appName) {
return function (done) {
var path = apps[appName],
config = _.extend({}, webpack);
gulp.src(path)
.pipe(plugins.webpack(config))
.pipe(plugins.rename(appName + '.js'))
.pipe(gulp.dest('silk/static/silk/js'))
.on('end', done);
}
});
async.parallel(tasks, done);
});
1 change: 0 additions & 1 deletion js/summary/index.js

This file was deleted.

19 changes: 2 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,8 @@
},
"homepage": "https://github.com/jazzband/django-silk",
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"async": "^3.1.1",
"babel-loader": "^8.0.6",
"gulp": "^4.0.2",
"gulp-load-plugins": "^2.0.2",
"gulp-rename": "^2.0.0",
"gulp-sass": "^4.0.2",
"gulp-shell": "^0.7.1",
"gulp-util": "^3.0.5",
"gulp-webpack": "^1.4.0",
"node-libs-browser": "^2.2.1",
"q": "^1.4.1",
"underscore": "^1.8.3",
"webpack": "^4.41.5"
"gulp-sass": "^4.0.2"
},
"dependencies": {
"node-sass": "^4.13.1"
}
"dependencies": {}
}
57 changes: 0 additions & 57 deletions silk/static/silk/js/summary.js

This file was deleted.

0 comments on commit 0f5c994

Please sign in to comment.