@lostintime/devcon-ts
TypeScript icon, indicating that this package has built-in type declarations

0.7.1 • Public • Published

DEVCON-TS

Travis

Opinionated development configs for TypeScript projects.

Package brings devDependencies required for prettier and conventional commits support.

Installation

Install the package and link config files.

npm install --save-dev @lostintime/devcon-ts

Conventional Commits

Dependencies brought by @lostintime/devcon-ts.

ln -s ./node_modules/@lostintime/devcon-ts/.huskyrc
ln -s ./node_modules/@lostintime/devcon-ts/.czrc
ln -s ./node_modules/@lostintime/devcon-ts/.lintstagedrc
ln -s ./node_modules/@lostintime/devcon-ts/.commitlintrc.json

Prettier

ln -s ./node_modules/@lostintime/devcon-ts/.editorconfig
ln -s ./node_modules/@lostintime/devcon-ts/.prettierrc

TypeScript

Extend @lostintime/devcon-ts in your tsconfig.json, ex:

{
  "extends": "@lostintime/devcon-ts",
  "compilerOptions": {
    "rootDir": "./src",
    "outDir": "./dist",
    "declarationDir": "./dist",
    "composite": true
  },
  "include": ["src"]
}

Testing

... with mocha, chai and nyc.

npm install --save-dev mocha chai @types/mocha @types/chai nyc

Link configs

ln -s ./node_modules/@lostintime/devcon-ts/.mocharc.json
ln -s ./node_modules/@lostintime/devcon-ts/.nycrc

Updates

mocha.opts is not deprecated in favor of .mocharc.json

Package Sidebar

Install

npm i @lostintime/devcon-ts

Weekly Downloads

1

Version

0.7.1

License

Apache-2.0

Unpacked Size

16.9 kB

Total Files

16

Last publish

Collaborators

  • lostintime