Skip to content

Commit

Permalink
chore: layout the foundation for a typescript definition
Browse files Browse the repository at this point in the history
  • Loading branch information
alvis committed Jul 12, 2018
1 parent 7e287e8 commit e3fc659
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2 deletions.
18 changes: 18 additions & 0 deletions package-lock.json

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

9 changes: 7 additions & 2 deletions package.json
Expand Up @@ -30,7 +30,8 @@
"test:cov-codacy": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text mocha test --recursive && cat coverage/lcov.info | codacy-coverage",
"test:rxbuild": "cross-env BABEL_ENV=commonjs mocha --compilers js:babel-register test/rxbuild.spec.js -r ./test/setup.js",
"test:examples": "cross-env BABEL_ENV=commonjs babel-node examples/testAll.js",
"check:src": "npm run lint && npm run test && npm run test:rxbuild && npm run test:prod",
"test:typescript": "tsc --noEmit",
"check:src": "npm run lint && npm run test && npm run test:rxbuild && npm run test:prod && npm run test:typescript",
"check:examples": "npm run build:examples && npm run test:examples",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir build-lib",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir build-es",
Expand Down Expand Up @@ -80,6 +81,8 @@
"redux": "^3.5.2"
},
"devDependencies": {
"@types/mocha": "^5.2.2",
"@types/node": "^10.3.4",
"babel-cli": "^6.3.15",
"babel-core": "^6.3.15",
"babel-eslint": "^7.0.0",
Expand Down Expand Up @@ -121,6 +124,7 @@
"nyc": "^13.0.0",
"redux": "^3.5.2",
"rimraf": "^2.3.4",
"typescript": "~2.8.0",
"webpack": "^1.9.6"
},
"npmName": "redux-logic",
Expand All @@ -145,5 +149,6 @@
],
"sourceMap": false,
"instrument": false
}
},
"typings": "definitions/index.d.ts"
}
28 changes: 28 additions & 0 deletions tsconfig.json
@@ -0,0 +1,28 @@
{
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
"noImplicitAny": false,
"noImplicitUseStrict": false,
"noLib": false,
"noResolve": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"lib": [
"dom",
"es2017"
],
"typeRoots": [
"node_modules/@types"
]
},
"include": [
"**/*.ts",
"**/*.d.ts"
],
"exclude": [
"dist",
"node_modules"
]
}

0 comments on commit e3fc659

Please sign in to comment.