legacy-gulp-process
v1.0.0
Published
A codified version of our gulp process
Downloads
2
Readme
Legacy Gulp Process
Install on a new project
npx install-peerdeps --dev legacy-gulp-process
- Create a
gulpfile.js
const tasks = require('legacy-gulp-process'); tasks.config({ source: { file: ['test/files/**/*.*'], image: 'src/images', script: 'test/scripts', style: 'test/styles/*.scss', }, destination: { image: 'public/assets/images', script: 'public/assets/scripts', style: 'public/assets/styles', file: 'public/assets', }, }); // Gulp does not support ES module exports, default to older syntax to // expose tasks to Gulp CLI module.exports = tasks;
- Add the following tasks to your
package.json
"scripts": { "dev": "npm run development", "development": "cross-env NODE_ENV=development gulp", "prod": "npm run production", "production": "cross-env NODE_ENV=production gulp" }