Skip to content

Commit

Permalink
improve tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Apr 29, 2017
1 parent 757acf7 commit c9db1cf
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
11 changes: 7 additions & 4 deletions demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"noImplicitAny": true,

"declaration": false,

"strict": true,
"noUnusedLocals": true,
"noImplicitThis": true,
"strictNullChecks": true,
"noImplicitReturns": true,

"skipLibCheck": true,
"importHelpers": true,
"jsx": "react",
"experimentalDecorators": true
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true
}
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
"description": "A reactjs, angular and vuejs tree component.",
"main": "index.js",
"scripts": {
"build": "npm run minifier-template && npm run file2variable && tsc -p src && tsc -p demo && lessc src/tree.less > dist/tree.css && cleancss -o dist/tree.min.css dist/tree.css && webpack --config demo/webpack.config.js && npm run rev",
"build": "npm run minifier-template && npm run file2variable && npm run clean && tsc -p src && tsc -p demo && lessc src/tree.less > dist/tree.css && cleancss -o dist/tree.min.css dist/tree.css && webpack --config demo/webpack.config.js && npm run rev",
"lint": "tslint \"src/*.ts\" \"src/*.tsx\" \"demo/**/*.ts\" \"demo/**/*.tsx\" && stylelint \"src/*.less\" --syntax less",
"rev": "npm run clean-rev && rev-static --config demo/rev-static.config.js",
"clean-rev": "rimraf demo/react.bundle-*.js demo/vue.bundle-*.js demo/angular.bundle-*.js",
"image": "image2base64-cli images/*.png images/*.gif --less src/variables.less",
"minifier-template": "html-minifier --collapse-whitespace --case-sensitive --collapse-inline-tag-whitespace src/vue-node.template.html -o src/vue-node.html && html-minifier --collapse-whitespace --case-sensitive --collapse-inline-tag-whitespace src/vue-tree.template.html -o src/vue-tree.html && html-minifier --collapse-whitespace --case-sensitive --collapse-inline-tag-whitespace src/angular-node.template.html -o src/angular-node.html && html-minifier --collapse-whitespace --case-sensitive --collapse-inline-tag-whitespace src/angular-tree.template.html -o src/angular-tree.html",
"file2variable": "file2variable-cli src/angular-node.html src/angular-tree.html -o src/angular-variables.ts && file2variable-cli src/vue-node.html src/vue-tree.html -o src/vue-variables.ts"
"file2variable": "file2variable-cli src/angular-node.html src/angular-tree.html -o src/angular-variables.ts && file2variable-cli src/vue-node.html src/vue-tree.html -o src/vue-variables.ts",
"clean": "rimraf dist"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -46,7 +47,7 @@
"stylelint": "7.9.0",
"stylelint-config-standard": "16.0.0",
"tslint": "5.0.0",
"typescript": "2.2.2",
"typescript": "2.3.2",
"vue": "2.2.6",
"vue-class-component": "5.0.1",
"webpack": "2.3.2",
Expand Down
12 changes: 6 additions & 6 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"noImplicitAny": true,
"sourceMap": true,

"outDir": "../dist",
"declaration": true,

"strict": true,
"noUnusedLocals": true,
"noImplicitThis": true,
"strictNullChecks": true,
"noImplicitReturns": true,

"skipLibCheck": true,
"importHelpers": true,
"jsx": "react",
"outDir": "../dist",
"declaration": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true
}
Expand Down

0 comments on commit c9db1cf

Please sign in to comment.