0.7.1 • Published 5 years ago
@lostintime/devcon-ts v0.7.1
DEVCON-TS
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-tsConventional 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.jsonPrettier
ln -s ./node_modules/@lostintime/devcon-ts/.editorconfig
ln -s ./node_modules/@lostintime/devcon-ts/.prettierrcTypeScript
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 nycLink configs
ln -s ./node_modules/@lostintime/devcon-ts/.mocharc.json
ln -s ./node_modules/@lostintime/devcon-ts/.nycrcUpdates
mocha.opts is not deprecated in favor of .mocharc.json