tsm-client
v0.1.7
Published
A scaffolding for building your TypeScript library.
Downloads
3
Maintainers
Readme
tsm-cli
A scaffolding for building your TypeScript library.
Usage
# install cli
mnpm install -g @hfe/tsm-cli
# generate your typescript project
tsm init [you-project-name]
cd [your-project-name]
# install dependencies use yarn(or `npm install`)
yarn
Other commands
# check version
tsm --version
NPM Scripts
npm t
: Run test suitenpm start
: Runnpm run build
in watch modenpm run test:watch
: Run test suite in interactive watch modenpm run test:prod
: Run linting and generate coveragenpm run build
: Generate bundles and typings, create docsnpm run lint
: Lints codenpm run commit
: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:)(m)npm publish
: Publish new npm packages(in meituan).
Features
- Zero-setup. After running
npm install
things will setup for you :wink: - RollupJS for multiple optimized bundles following the standard convention and Tree-shaking
- Tests, coverage and interactive watch mode using Jest
- Prettier and TSLint for code formatting and consistency
- Docs automatic generation and deployment to
gh-pages
, using TypeDoc - Automatic types
(*.d.ts)
file generation - Travis integration and Coveralls report
- (Optional) Automatic releases and changelog, using Semantic release, Commitizen, Conventional changelog and Husky (for the git hooks)