Skip to content

kolodny/es6-module-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

es6-module-boilerplate

use this as a starting point for creating es6 modules that have a build script to make an es5 version that gets used by default.

Notice package.json has these lines

"main": "src/es5/index.js",
"main-es6": "src/es6/index.js",

keep this format, including the dir structure so that it's easy to use with something like require-es6

The workflow would look something like this

git clone https://github.com/kolodny/es6-module-boilerplate
rm -rf .git
git init
npm install
npm init

Ideas and pull requests welcomed

About

boilerplate for es6 -> es5 module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published