Skip to content

Commit

Permalink
feat: build project with tsc
Browse files Browse the repository at this point in the history
  • Loading branch information
sombreroEnPuntas committed Jan 3, 2020
1 parent 2c62056 commit 3f8ffb1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/coverage

# production
/build
/styleguide

# misc
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"scripts": {
"start": "styleguidist server",
"build": "styleguidist build",
"build": "tsc",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Expand Down
30 changes: 20 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowJs": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"declaration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "react",
"lib": ["es6", "dom", "es2016", "es2017"],
"module": "esnext",
"moduleResolution": "node",
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "build",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,
"target": "es5"
},
"include": ["src"]
"include": ["src"],
"exclude": ["node_modules", "build", "styleguide"]
}

0 comments on commit 3f8ffb1

Please sign in to comment.