Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tobiaslins/simple-library-boilerplate
⚙️ A minimal boilerplate for creating plain javascript libraries. Including ES6, Webpack, Mocha
https://github.com/tobiaslins/simple-library-boilerplate
Last synced: about 2 months ago
JSON representation
⚙️ A minimal boilerplate for creating plain javascript libraries. Including ES6, Webpack, Mocha
- Host: GitHub
- URL: https://github.com/tobiaslins/simple-library-boilerplate
- Owner: tobiaslins
- License: mit
- Created: 2016-07-06T06:50:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-07T06:56:31.000Z (about 2 months ago)
- Last Synced: 2024-12-08T13:43:44.620Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
simple-library-boilerplate
===========[![build status][travis-image]][travis-url]
An awesome boilerplate for creating plain javascript libraries. Including ES6, Webpack, Mocha, ESLint
## Includes
- Use ES6 Syntax but built source running with ES5
- Webpack
- Mocha for Testing
- ESLint with AirBnB Syntax## Build
### Dev
`webpack -w`### Production
`NODE_ENV=PRODUCTION webpack -p`## Using the library
Import the library
``
`window.library` is now available. It is possible to change the library name in 'src/index.js'
## Testing
See [test cases](https://github.com/tobiaslins/Simple-Library-Boilerplate/blob/master/test/index.js) for examples.
[npm-image]: https://img.shields.io/npm/v/node-fetch.svg?style=flat-square
[travis-image]: https://img.shields.io/travis/bitinn/node-fetch.svg?style=flat-square
[travis-url]: https://travis-ci.org/tobiaslins/Simple-Library-Boilerplate