@friends-of-js/javascript-kit
v1.1.0
Published
JavaScript and TypeScript module generator
Maintainers
Readme
@friends-of-js/javascript-kit

Install
yarn add global @friends-of-js/javascript-kit
# or
npm install -g @friends-of-js/javascript-kitUsage
javascript-kit [directory]Features
- [x] Support JavaScript and TypeScript languages
- [x] Fully customizable
- [x] TSlint and ESlint out of the box
- [x] Modules for both Node.js and browser
- [x] Browser modules with webpack
- [x] Generate both CommonJS and ESNext modules for Node.js
- [x] Autogenerated TypeScript defenitions
- [x] Node.js tests with Mocha and Chai
- [x] Browser tests with Karma, Mocha and Chai
- [x] Code coverage for both TypeScript and JavaScript through Istanbul and nyc
- [x] Sending code coverage to Codecov, Codeclimate, and Codacy
- [x] TravisCI out of the box
- [x] Autogenerated docs
- [x] Publishing to github and npm after succesfull build
- [x] Publishing release to github with generated changelog
- [x] Git hooks for linting and testing before publishing
Commands
For a complete list of the commands available for your module, see the section "scripts" in generated package.json
| Yarn | Npm | Make | Description | | ------------------ | --------------------- | ------------------ | ------------------------------------------------- | | yarn build | npm run build | make build | Build CommonJS, ESNext modules and Browser bundle | | yarn lint | npm run lint | make lint | Lint your code with TSLint or ESLint | | yarn fix | npm run fix | make fix | Fix errors found by linter | | yarn test | npm run test | make test | Run tests | | yarn coverage | npm run coverage | make coverage | Run tests and generate code coverage reports | | yarn docs | npm run docs | make docs | Generate documentation | | yarn release.major | npm run release.major | make release.major | Create and publish new major release | | yarn release.minor | npm run release.minor | make release.minor | Create and publish new minor release | | yarn release.patch | npm run release.patch | make release.patch | Create and publish new patch release | | yarn commit | npm run commit | make commit | Interactively create conventional commit message |
Project structure
| Name | Description | | ------------------- | ---------------------------------------------------------------- | | src | Your source files placed here | | spec | Contains your tests files | | node_modules | Contains all your npm dependencies | | build | Scripts that responsible for building package | | build/browser | Scripts for building browser package | | build/module | Typescript configs for building CommonJS and ESNext modules | | build/declarations | Typescript definitions and config for building eclarations files | | lib | Generated package | | lib/module | Node module packages | | lib/module/commonjs | Commonjs node module using es5 features | | lib/module/esnext | Node module using es7 and esnext features | | lib/browser | Browser package generated by webpack | | coverage | Code coverage report files | | docs | Generated documentation |
License
@friends-of-js/javascript-kit © Dmitriy Romanov, released under the MIT License. Authored and maintained with help from contributors (list).
