A repository template for quickly starting web app projects.
- Editor Config for your editor
- ESLint to catch JavaScript code errors
- NodeJS configuration at the root folder
- ES6 configuration at the src folder
- ES6 Modules configuration at the module folder
- GulpJS tasks for automation
- GulpJS build task moving code from from src folder to dist folder
- Moves html files
- Build CSS files from Less files
- Build CSS files from SASS files
- Add prefix to CSS rules in the CSS files
- ESLint JavaScript files
- Build the compatible version (using Babel) of the JavaScript files
- Build the ES6 module JavaScript files
- Build the compatible version (using Babel) of the ES6 module JavaScript files
- Build the minified version of the CSS and JavaScript files and their corresponding source files
- GulpJS watch task
- Executes build task
- Watches for changes and re-run the build task
- GulpJS serve task
- Executes watch task
- Starts a local http server for viewing the web application on a web browser
Dependecies are defined in the package.json file.
npm install
Add code inside the src folder.
gulp build
gulp watch
gulp serve
{
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"del": "^5.1.0",
"eslint": "^7.9.0",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^7.0.1",
"gulp-babel": "^8.0.0",
"gulp-clean-css": "^4.3.0",
"gulp-connect": "^5.7.0",
"gulp-eslint": "^6.0.0",
"gulp-less": "^4.0.1",
"gulp-preprocess": "^3.0.3",
"gulp-rename": "^2.0.0",
"gulp-sass": "^4.1.0",
"gulp-sourcemaps": "^2.6.5",
"gulp-uglify-es": "^2.0.0",
"node-sass": "^4.14.1",
"path": "^0.12.7"
}
- build
- watch
- serve