1.1.0 • Published 6 years ago

@friends-of-js/javascript-kit v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

@friends-of-js/javascript-kit

Build Status Maintainability Test Coverage codecov license

Preview

Install

yarn add global @friends-of-js/javascript-kit
# or
npm install -g @friends-of-js/javascript-kit

Usage

javascript-kit [directory]

Features

  • Support JavaScript and TypeScript languages
  • Fully customizable
  • TSlint and ESlint out of the box
  • Modules for both Node.js and browser
  • Browser modules with webpack
  • Generate both CommonJS and ESNext modules for Node.js
  • Autogenerated TypeScript defenitions
  • Node.js tests with Mocha and Chai
  • Browser tests with Karma, Mocha and Chai
  • Code coverage for both TypeScript and JavaScript through Istanbul and nyc
  • Sending code coverage to Codecov, Codeclimate, and Codacy
  • TravisCI out of the box
  • Autogenerated docs
  • Publishing to github and npm after succesfull build
  • Publishing release to github with generated changelog
  • 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

YarnNpmMakeDescription
yarn buildnpm run buildmake buildBuild CommonJS, ESNext modules and Browser bundle
yarn lintnpm run lintmake lintLint your code with TSLint or ESLint
yarn fixnpm run fixmake fixFix errors found by linter
yarn testnpm run testmake testRun tests
yarn coveragenpm run coveragemake coverageRun tests and generate code coverage reports
yarn docsnpm run docsmake docsGenerate documentation
yarn release.majornpm run release.majormake release.majorCreate and publish new major release
yarn release.minornpm run release.minormake release.minorCreate and publish new minor release
yarn release.patchnpm run release.patchmake release.patchCreate and publish new patch release
yarn commitnpm run commitmake commitInteractively create conventional commit message

Project structure

NameDescription
srcYour source files placed here
specContains your tests files
node_modulesContains all your npm dependencies
buildScripts that responsible for building package
build/browserScripts for building browser package
build/moduleTypescript configs for building CommonJS and ESNext modules
build/declarationsTypescript definitions and config for building eclarations files
libGenerated package
lib/moduleNode module packages
lib/module/commonjsCommonjs node module using es5 features
lib/module/esnextNode module using es7 and esnext features
lib/browserBrowser package generated by webpack
coverageCode coverage report files
docsGenerated documentation

License

@friends-of-js/javascript-kit © Dmitriy Romanov, released under the MIT License. Authored and maintained with help from contributors (list).