Skip to content

xitara/webpack-boilerplate

Repository files navigation

Webpack 5 ES6+ Sass Boilerplate Known Vulnerabilities

Description

A webpack 5 based boilerplate for web projects including JavaScript, ES6, Typescript, Babel and more. Clone the repo and copy all files into the project, you want. Otherwise clone the repo into a folder of your choice and change STORAGE in bash/config.sh if needed

Dependencies

  • yarn
  • bash to run zip, fly, deploy and ftp, testet on debian/buster
  • lftp to upload with ftp by yarn ftp, testet on debian/buster

Optional

Quick start

  • clone the repo via git clone https://github.com/xitara/webpack-boilerplate.git
  • cd webpack-es6-sass-boilerplate
  • run yarn to fetch all the dependencies
  • change settings in package.json and bash/config.sh if possible
  • run yarn start to start the webpack-dev-server (localhost:8080 will be opened automatically)
  • start developing
  • when you are done, run yarn build to get the production version of your app

Commands

  • start - start the dev server
  • watch - start webpack --watch
  • dwatch - start webpack --watch in development-mode
  • build - create build in build folder
  • dbuild - create development build in build folder
  • zip - build project and pack relevant folder/files to a zip-file one level down
  • deploy - build project and deploy to a folder name in package.json one level down with backup if folder exists
  • ftp - uploads build project per FTP. Configs in ./bash/config.sh
  • docs - generates docs with phpdoc if installed
  • analyze - analyze your production bundle
  • lint-code - run an ESLint check
  • lint-style - run a Stylelint check
  • check-eslint-config - check if ESLint config contains any rules that are unnecessary or conflict with Prettier
  • check-stylelint-config - check if Stylelint config contains any rules that are unnecessary or conflict with Prettier
  • cleanup - delete build-folder, node_modulesand other generated files/folders. files in src and static stay untouched

Including

Update 0.8.1

  • Update to webpack 5
  • Update all dependencies
  • Add a fetch method to utils.js

Update 0.8.2

  • Add cross-env
  • Switch to tailwind JIT-compiler
  • Update all dependencies

Update 0.8.3

  • Add typescript-support
  • Remove WinterCMS flavor
  • fix styles.scss
  • exclude README.md in /static from copy-webpack-plugin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published