Frontend scaffolding tool based on Gulp 4 and Webpack 4 using pugjs, SCSS
Heavily inspired by gulp-webpack-4-pug-scss-static-website(almost copy from this repo), but more simple and add i18n support.
- Node.js
npm i
cd mockapi && npm i
npm run dev
- dev servernpm run build
- build to dist foldernpm run production
- build minified version to dist folder
src
- source filescomponents
- detached componentslayouts
- header and footer to create a basic page structurelocales
- i18n locales filespages
- pagescommon
- general styles and scriptsjs
- js scriptsscss
- styles in .scss format
static
- any static resources that are copied to the root folder 'dist'fonts
- fontsimg
- *.png, *.jpg images, faviconsvg
- icons in .svg format
dist
- final build of the project for productionassets
- static datafonts
- fontsimg
- imagesjs
- scriptscss
- stylessvg
- svg files
*.html
- all pagesindex.html
- start page
npm i -g npm-check-updates
ncu -u
npm install
MIT
Author: Alexander Shiryakov ([email protected]), Jesse Liu