Skip to content

Commit

Permalink
Remove unused dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
oakesjosh committed Nov 20, 2024
1 parent 91d558e commit b20d1c2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
30 changes: 13 additions & 17 deletions gulp/tasks/js.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
const { src, dest, parallel } = require('gulp');
const babel = require('gulp-babel');
const rename = require('gulp-rename');
const minify = require('gulp-babel-minify');
const config = require('../config');

function processFiles() {
return (
src(['src/assets/js/*.js'])
.pipe(
rename(function (path) {
// Returns a completely new object, make sure you return all keys needed!
return {
dirname: path.dirname,
basename: path.basename,
extname: '.min.js',
};
})
)
//.pipe(babel(config.babel))
.pipe(minify(config.minify))
.pipe(dest(config.dirs.dist + '/js'))
);
return src(['src/assets/js/*.js'])
.pipe(
rename(function (path) {
// Returns a completely new object, make sure you return all keys needed!
return {
dirname: path.dirname,
basename: path.basename,
extname: '.min.js',
};
})
)
.pipe(minify(config.minify))
.pipe(dest(config.dirs.dist + '/js'));
}

function copyVendorFiles() {
Expand Down
1 change: 0 additions & 1 deletion gulp/tasks/styles.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { src, dest, parallel } = require('gulp');
const sass = require('gulp-sass')(require('sass'));
const path = require('path');
const rename = require('gulp-rename');
const cleancss = require('gulp-clean-css');
const config = require('../config');
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,11 @@
"@wordpress/i18n": "^4.34.0",
"@wordpress/prettier-config": "^2.25.13",
"@wordpress/scripts": "^26.18.0",
"babel-core": "^6.26.3",
"babel-eslint": "^10.1.0",
"babel-preset-env": "^1.7.0",
"concurrently": "^8.2.0",
"del": "^6.0.0",
"eslint-import-resolver-webpack": "^0.13.8",
"eslint-plugin-prettier": "^3.4.1",
"gulp": "^5.0.0",
"gulp-babel": "^8.0.0",
"gulp-babel-minify": "^0.5.2",
"gulp-clean-css": "^4.3.0",
"gulp-minify": "^3.1.0",
Expand Down

0 comments on commit b20d1c2

Please sign in to comment.