Browse Source

chore: 输出typings

es6
iapyang 5 years ago
parent
commit
10c41d6630
  1. 1
      .gitignore
  2. 2
      package.json
  3. 5
      tsconfig.json

1
.gitignore vendored

@ -6,3 +6,4 @@ node_modules/
coverage coverage
unit.test.statistic.json unit.test.statistic.json
package-lock.json package-lock.json
dist/lib

2
package.json

@ -69,7 +69,7 @@
"webpack:prod": "webpack -p --progress --config=webpack/webpack.prod.js --mode production", "webpack:prod": "webpack -p --progress --config=webpack/webpack.prod.js --mode production",
"webpack:prod:ie8": "cross-env BROWSER_VERSION=ie8 webpack -p --progress --config=webpack/webpack.prod.js --mode production", "webpack:prod:ie8": "cross-env BROWSER_VERSION=ie8 webpack -p --progress --config=webpack/webpack.prod.js --mode production",
"start": "node server.js", "start": "node server.js",
"build": "npm run webpack:prod && npm run webpack:prod:ie8 && grunt build", "build": "npm run webpack:prod && npm run webpack:prod:ie8 && grunt build && tsc",
"postbuild": "node ./lib/postbuild/postbuild.js", "postbuild": "node ./lib/postbuild/postbuild.js",
"compile": "grunt compile", "compile": "grunt compile",
"fake": "grunt fake-build", "fake": "grunt fake-build",

5
tsconfig.json

@ -10,7 +10,7 @@
], ],
"declaration": true, "declaration": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"outDir": "./bin", "outDir": "./dist/lib",
"baseUrl": ".", "baseUrl": ".",
// "strict": true, // "strict": true,
"strictNullChecks": true, "strictNullChecks": true,
@ -19,7 +19,8 @@
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true, "noUnusedParameters": true,
"noImplicitReturns": true, "noImplicitReturns": true,
"noFallthroughCasesInSwitch": true "noFallthroughCasesInSwitch": true,
"emitDeclarationOnly": true
}, },
"include": [ "include": [
"typescript/*.ts", "typescript/*.ts",

Loading…
Cancel
Save