Skip to content

Commit

Permalink
feat: 🎸 export EsNext modules
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Oct 3, 2018
1 parent b46164f commit 1805455
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ node_js:
script:
- yarn test
- yarn build
- yarn build:modules
matrix:
allow_failures: []
fast_finish: true
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
"type": "git",
"url": "https://github.com/streamich/libreact.git"
},
"files": ["lib/"],
"files": [
"lib/",
"modules/"
],
"scripts": {
"start": "yarn test:story",
"clean": "rimraf lib modules && yarn test:story:clean && yarn docs:clean",
"build": "tsc",
"build:modules": "tsc --project tsconfig.es6.json",
"test": "yarn test:server && yarn test:client",
"test:server": "mocha -r ts-node/register src/**/*.test-server.ts*",
"test:client": "jest",
Expand Down
36 changes: 36 additions & 0 deletions tsconfig.es6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Node",
"removeComments": true,
"noImplicitAny": false,
"outDir": "./modules",
"allowJs": false,
"allowSyntheticDefaultImports": true,
"jsx": "react",
"jsxFactory": "h",
"skipDefaultLibCheck": true,
"skipLibCheck": true,
"experimentalDecorators": true,
"importHelpers": true,
"pretty": true,
"sourceMap": false,
"esModuleInterop": true,
"noEmitHelpers": true,
"noErrorTruncation": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"declaration": true,
"lib": ["dom", "es5", "es6", "es7", "es2015", "es2017", "scripthost", "dom.iterable"]
},
"include": ["typing.d.ts", "src"],
"exclude": [
"node_modules",
"lib",
"**/__tests__/**/*",
"**/__story__/**/*",
"*.test.ts",
"*.test.tsx"
]
}

1 comment on commit 1805455

@streamich
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build version: 2.1.0-fix-build.89 🤞 fix-build on Travis 🎉

Please sign in to comment.