GithubHelp home page GithubHelp logo

htoooth / boilerplate-babel-webpack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from piecioshka/boilerplate-webpack-babel

0.0 0.0 0.0 131 KB

:fork_and_knife: Starter with Babel.js and Webpack

HTML 4.04% JavaScript 95.96%

boilerplate-babel-webpack's Introduction

boilerplate-babel-webpack

npm version downloads count dependencies

๐Ÿด Starter with Babel.js and Webpack

Features

  • โœ… Webpack v4.31.0
  • โœ… Babel (Core) v7.4.4
  • โœ… Support syntax ES2015+
  • โœ… Static directory public/
  • โœ… Analysis of bundle file weight (source-map-explorer)
  • โœ… Two build settings: dev (with source maps) & prod (compress file)

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 [email protected]: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 an application?

  • development

    npm run build
  • production

    npm run build:production

Open public/ directory in browser.

How to develop an application?

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 build
npm run audit

License

The MIT License @ 2017

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.