Skip to content

setheen/es2015-publish-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

es2015-publish-template

Write typescript es2015 modules and bundle for npm, bower and jspm

##Running examples This project is to serve as a simple library authoring template and to provide examples on how you might consume this library. You would not install and run the project at the root directory directly but instead review its makeup and build/run projects within the "examples" directory.

###Projects

##Suggestions for library authors

  • Build your code and organize binaries in all intended formats ("dist" directory?) before publishing
    • You'll eventually find relying on npm's "postinstall" script is a bad idea when considering jspm, not to mention it takes longer to build your code than download it
  • If writing in es2015, don't bundle your code with webpack/browserify
    • Package managers are getting better, modules in es2015 are nicely decoupled. Bundlers like jspm and rollup can intelligently analyze your module dependencies (tree-shaking) to spit out optimized and small binaries

About

Write es2015 modules and bundle for npm, bower and jspm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published