Skip to content

Commit

Permalink
refactor(build -- dts): merge all dts into 1 file
Browse files Browse the repository at this point in the history
  • Loading branch information
bigopon authored and jdanyow committed Nov 11, 2018
1 parent b998302 commit 919af79
Show file tree
Hide file tree
Showing 4 changed files with 190 additions and 7 deletions.
184 changes: 183 additions & 1 deletion package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"develop": "concurrently \"./node_modules/.bin/tsc --watch\" \"./node_modules/.bin/karma start\"",
"prebuild": "cross-env rimraf dist",
"build": "rollup -c --environment NODE_ENV:production",
"postbuild": "npm run build:dts",
"build:dts": "dts-bundle-generator -o dist/aurelia-validation.d.ts src/aurelia-validation.ts",
"predoc": "cross-env rimraf doc/api.json && rimraf dist/doc-temp && tsc --project tsconfig.build.json --outFile dist/doc-temp/aurelia-validation.js && node doc/shape-defs && copyfiles tsconfig.json dist/doc-temp",
"doc": "cross-env typedoc --json doc/api.json --excludeExternals --includeDeclarations --mode modules --target ES6 --name aurelia-validation-docs dist/doc-temp/",
"postdoc": "cross-env node doc/shape-doc && rimraf dist/doc-temp",
Expand Down Expand Up @@ -70,6 +72,7 @@
"aurelia-templating": "^1.9.0"
},
"devDependencies": {
"@types/jsdom": "^12.2.0",
"@types/node": "^8.5.1",
"aurelia-bootstrapper": "^2.3.0",
"aurelia-pal-browser": "^1.8.0",
Expand All @@ -80,6 +83,7 @@
"conventional-changelog-cli": "^2.0.5",
"copyfiles": "^2.1.0",
"cross-env": "^5.2.0",
"dts-bundle-generator": "^1.6.1",
"jasmine-core": "^3.2.1",
"karma": "^3.0.0",
"karma-chrome-launcher": "^2.2.0",
Expand Down
7 changes: 2 additions & 5 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export default [{
compilerOptions: {
module: 'es2015',
target: 'es2015',
declarationDir: 'dist/types'
},
include: ['src'],
exclude: undefined
Expand All @@ -48,8 +47,7 @@ export default [{
tsconfigOverride: {
compilerOptions: {
module: 'es2015',
target: 'es2017',
declaration: false
target: 'es2017'
},
include: ['src'],
exclude: undefined
Expand All @@ -72,8 +70,7 @@ export default [{
// tsconfig: undefined,
tsconfigOverride: {
compilerOptions: {
module: 'es2015',
declaration: false
module: 'es2015'
},
include: ['src'],
exclude: undefined
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"noUnusedParameters": true,
"noImplicitReturns": true,
"strictNullChecks": true,
"declaration": true,
"declaration": false,
"forceConsistentCasingInFileNames": true,
"experimentalDecorators": true,
"noEmitHelpers": false,
Expand Down

0 comments on commit 919af79

Please sign in to comment.