Skip to content

Commit

Permalink
feat(typescript): setup base infra
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvdutt committed Jul 4, 2018
1 parent 42d9da2 commit 373a304
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ lerna-debug.log

# Yarn lock file
yarn.lock

# Custom typings
custom_typing/*.js
29 changes: 29 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 14 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,25 @@
"bin"
],
"scripts": {
"lint": "eslint \"./bin/*.js\" \"./test/**/*.js\" \"./packages/**/!(node_modules)/*.js\" ",
"appveyor:lint": "lerna bootstrap && npm run lint",
"appveyor:test": "npm run test",
"bootstrap": "npm run clean:all && npm install && lerna bootstrap",
"build": "tsc",
"bundlesize": "bundlesize",
"changelog": "conventional-changelog --config ./build/changelog-generator/index.js --infile CHANGELOG.md --same-file",
"clean:all": "rimraf node_modules package-lock.json packages/*/node_modules packages/*/package-lock.json",
"format": "prettier-eslint ./bin/*.js ./test/**/*.js ./packages/**/*.js --write",
"jsdoc": "jsdoc -c jsdoc.json -r -d docs",
"lint:codeOnly": "eslint \"{bin}/**/!(__testfixtures__)/*.js\" \"{bin}/**.js\"",
"lint": "eslint \"./bin/*.js\" \"./test/**/*.js\" \"{packages}/**/!(node_modules)/*.test.js\" && npm run tslint",
"precommit": "lint-staged",
"pretest": "npm run lint",
"test": "nyc jest",
"reportCoverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json --disable=gcov",
"jsdoc": "jsdoc -c jsdoc.json -r -d docs",
"appveyor:lint": "lerna bootstrap && npm run lint",
"appveyor:test": "npm run test",
"test": "nyc jest",
"travis:integration": "npm run test && npm run reportCoverage",
"travis:lint": "lerna bootstrap && npm run lint && npm run bundlesize",
"bundlesize": "bundlesize",
"changelog": "conventional-changelog --config ./build/changelog-generator/index.js --infile CHANGELOG.md --same-file",
"clean:all": "rimraf node_modules package-lock.json packages/*/node_modules packages/*/package-lock.json",
"bootstrap": "npm run clean:all && npm install && lerna bootstrap"
"tslint": "tslint -c tslint.json \"{packages}/**/!(node_modules)/*.ts\"",
"watch": "tsc -w"
},
"lint-staged": {
"{packages,bin}/**/!(__testfixtures__)/**.js": [
Expand Down Expand Up @@ -128,6 +131,8 @@
"prettier-eslint-cli": "^4.7.1",
"rimraf": "^2.6.2",
"schema-utils": "^0.4.5",
"tslint": "^5.10.0",
"typescript": "^2.9.2",
"webpack": "^4.8.3",
"webpack-dev-server": "^3.1.4"
}
Expand Down
17 changes: 17 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"allowJs": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true
},
"include": [
"packages/**/*.ts"
],
"exclude": [
"node_modules/**",
"packages/*/node_modules/**"
]
}
15 changes: 15 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {},
"rulesDirectory": [],
"linterOptions": {
"exclude": [
"node_modules/**",
"packages/*/node_modules/**"
]
}
}

0 comments on commit 373a304

Please sign in to comment.