Opinionated development configs for TypeScript projects.
Package brings devDependencies
required for prettier and conventional commits support.
Install the package and link config files.
npm install --save-dev @lostintime/devcon-ts
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
ln -s ./node_modules/@lostintime/devcon-ts/.editorconfig
ln -s ./node_modules/@lostintime/devcon-ts/.prettierrc
Extend @lostintime/devcon-ts
in your tsconfig.json
, ex:
{
"extends": "@lostintime/devcon-ts",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"declarationDir": "./dist",
"composite": true
},
"include": ["src"]
}
... 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
mocha.opts
is not deprecated in favor of .mocharc.json