🍴 Starter with Babel.js and Webpack
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public Setup basic project Feb 5, 2017
src Add "watch" task to restart Babel when file change Feb 6, 2017
.babelrc
.gitignore Setup basic project Feb 5, 2017
README.md Define lang in code blocks & add more badges Oct 2, 2018
package.json Setup details of package Mar 29, 2017
webpack.config.js Improvements: new tasks, minification, source maps Mar 29, 2017

README.md

boilerplate-babel-webpack

npm version downloads count dependencies

🍴 Starter with Babel.js and Webpack

Features

  • Webpack v2.3.2
  • Babel v6.24.0
  • Support syntax ES2015 & ES2016
  • Static directory: public/
  • Source Map of bundle file.
  • Analysis of bundle file weight.

Getting started

You can start in two ways:

Use Git

mkdir PROJECT_NAME
cd $_     # Note: "$_" is last argument of previous command
git init  # Note: branch "master" is created
git remote add boilerplate git@github.com:piecioshka/boilerplate-babel-webpack.git
git pull boilerplate master
git remote remove boilerplate

or ...

Use Zip

  1. Download package file:
    https://github.com/piecioshka/boilerplate-babel-webpack/archive/master.zip
  2. Extract it to your project directory.

How to build the application?

npm install
npm run build
# Open public/ directory in browser

Your source will be minified.

How to develop the application?

npm install
npm run watch
# Open public/ directory in browser

Remove generated directory

If you would like to remove public/dist directory (created by Webpack):

npm run clear

If you would like to remove node_modules/ and remove public/dist/

npm run clear:all

Count LOC (Lines of Code)

If you would like to know how many lines of code you write:

npm run count

Analysis of bundle file weight

If you would like to check how much a bundle file weight:

npm run audit

License

The MIT License @ 2017