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: 16 days 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: 2022-10-22T22:52:58.000Z (about 2 years ago)
- Last Synced: 2024-10-04T18:24:13.301Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
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