Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/burdiuz/js-lib-project-environment
environment template for library projects
https://github.com/burdiuz/js-lib-project-environment
babel chai class-properties coverage coveralls developer-environment es6 es7 eslint flow istanbul javascript jest js karma mocha rollup sinon webpack
Last synced: 12 days ago
JSON representation
environment template for library projects
- Host: GitHub
- URL: https://github.com/burdiuz/js-lib-project-environment
- Owner: burdiuz
- License: mit
- Created: 2017-02-02T23:09:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:32:49.000Z (almost 2 years ago)
- Last Synced: 2024-04-13T16:12:08.400Z (8 months ago)
- Topics: babel, chai, class-properties, coverage, coveralls, developer-environment, es6, es7, eslint, flow, istanbul, javascript, jest, js, karma, mocha, rollup, sinon, webpack
- Language: JavaScript
- Size: 1.44 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JS-Lib-Environment
> Note: Since Rollup currently does not support some things which are not yet standard(like class fields),
> I've used babel for transpiling code with specific set of plugins for such things.> Note: This is rollup + jest setup, to get webpack + karma + chai + sinon setup check [webpack_chai](https://github.com/burdiuz/js-lib-project-environment/tree/webpack_chai) branch.
Environment setup for library project development, requires [rollup](https://rollupjs.org/guide/en) v 0.66 or higher to be installed globally.
```
npm install rollup -g
```
After installation replace values of `LIBRARY_FILE_NAME` and `LIBRARY_VAR_NAME` in `webpack.helpers.js`.
* `LIBRARY_FILE_NAME` - distribution file name
* `LIBRARY_VAR_NAME` - variable name for global variableAlso you will need to update `"main"` value in `bower.json` and `package.json`.
NPM commands:
* `npm start` - run rollup to make distributions
* `npm test` - run jest tests
* `npm run server` - run rollup dev server
* `npm run flow` - run flow for static type checking
* `npm run build:watch` - run rollup in watch mode
* `npm run test:watch` - run tests in watch mode
* `npm run lint` - run ESLint for project files(including test files) in `/source` folder.