@integreat/ts-dev-setup

6.0.1 • Public • Published

Shared dev setup for Integreat TypeScript projects

Note: You are more than welcome to use this setup in your own projects. We will however update this repository according to what we need in the Integreat codebases, and take no responsibility for how this may affect your projects. If you want to make changes, we suggest forking.

Install

npm install @integreat/ts-dev-setup --save-dev

Then run the following commands in terminal to set up symbolic links to config files:

cp node_modules/@integreat/ts-dev-setup/ava-dist.config.cj ava-dist.config.cj
cp node_modules/@integreat/ts-dev-setup/ava.config.cj ava.config.cj
cp node_modules/@integreat/ts-dev-setup/codeclimate.yml .codeclimate.yml
cp node_modules/@integreat/ts-dev-setup/editorconfig .editorconfig
cp node_modules/@integreat/ts-dev-setup/eslintrc.json .eslintrc.json
cp node_modules/@integreat/ts-dev-setup/prettierrc.json .prettierrc.json
cp node_modules/@integreat/ts-dev-setup/tsconfig.json tsconfig.json

package.json

"type": "module",
"exports": {
".": {
    "import": "./dist/index.js",
    "types": "./dist/index.d.ts"
}
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
    "test": "npm run lint && npm run build && c8 --reporter=text-summary ava --config ./ava-dist.config.js",
    "test:inspect": "node --inspect node_modules/ava/profile.js",
    "test:watch": "npm run dev",
    "dev": "ava --watch",
    "build": "tsc",
    "coverage": "c8 report",
    "lint": "eslint --ext .ts src"
}

Readme

Keywords

none

Package Sidebar

Install

npm i @integreat/ts-dev-setup

Weekly Downloads

24

Version

6.0.1

License

ISC

Unpacked Size

9.75 kB

Total Files

14

Last publish

Collaborators

  • goodguygoose
  • kjellmorten