1.0.0 • Published 7 years ago

tkvw-javascript-lib-boilerplate v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Boilerplate for es6 library project

Content

Objectives

To have a boilerplate which:

  • Uses as much defaults as possible
  • Allows coding using newer javascript features (>= stage-3)
  • Allows testing using jest
  • Allows bundling to target Internet explorer 11
  • Explains what's going on

Files

FileUsage / Notes
package.jsonnpm package file

Package.json

Comments are allowed in the root level, using "//":""

Devdependencies

DependencyUsageNote
babel-cliFor executing babel to transpile sources to target platform
babel-eslint*ESLint doesn't natively support experimental ECMAScript language features, this plugin allows you to do so. Read more..For this to work with eslint you need to change the parser directive in the eslint configuration
babel-plugin-transform-object-rest-spreadTransforms object rest spread syntax ({...}) using babel

* = optional

Jest testing

This boilerplates uses jest.config.js to configure the jest testing framework. Note This file should produce a result which can be JSON serialized.