Skip to content

Commit

Permalink
Merge branch 'feature/source-maps-20' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
vankeisb committed Sep 1, 2020
2 parents af657c5 + 43af4fd commit ad06d47
Show file tree
Hide file tree
Showing 8 changed files with 1,594 additions and 1,097 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- 'lts/dubnium'
- 'lts/erbium'

install:
- echo "//registry.npmjs.org/:_authToken=${CI_TOKEN}" > ~/.npmrc
Expand Down
4 changes: 3 additions & 1 deletion core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"declaration": true,
"outDir": "./dist",
"strict": true,
"jsx": "react"
"inlineSourceMap": true,
"inlineSources": true,
"esModuleInterop": false
},
"compileOnSave": true,
"exclude": ["node_modules", "dist"]
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"private": true,
"workspaces": ["core", "tea-cup", "samples"],
"devDependencies": {
"@types/jest": "24.0.15",
"jest": "24.7.1",
"jest": "24.9.0",
"prettier": "2.0.5",
"rimraf": "^2.6.3",
"ts-jest": "24.0.2",
Expand Down
2 changes: 1 addition & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"jest-enzyme": "^7.1.1",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-scripts": "3.0.1",
"react-scripts": "3.4.1",
"react-tea-cup": "1.0.0"
},
"scripts": {
Expand Down
16 changes: 12 additions & 4 deletions samples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"target": "es6",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand All @@ -13,7 +17,11 @@
"resolveJsonModule": true,
"noEmit": true,
"jsx": "preserve",
"isolatedModules": true
"isolatedModules": true,
"inlineSourceMap": true,
"inlineSources": true
},
"include": ["src", "../src"]
"include": [
"src"
]
}
4 changes: 2 additions & 2 deletions tea-cup/src/TeaCup/Program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ interface ProgramState<Model> {
class Guid {
static newGuid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = (Math.random() * 16) | 0,
const r = (Math.random() * 16) | 0,
v = c == 'x' ? r : (r & 0x3) | 0x8;
return v.toString(16);
});
Expand Down Expand Up @@ -155,7 +155,7 @@ export class Program<Model, Msg> extends Component<ProgramProps<Model, Msg>, Pro
}

setModel(model: Model, withSubs: boolean) {
this.setState((state, props) => {
this.setState(state => {
let newSub: Sub<Msg>;
if (withSubs) {
newSub = this.props.subscriptions(model);
Expand Down
5 changes: 4 additions & 1 deletion tea-cup/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"declaration": true,
"outDir": "./dist",
"strict": true,
"jsx": "react"
"jsx": "react",
"inlineSourceMap": true,
"inlineSources": true,
"esModuleInterop": true
},
"compileOnSave": true,
"exclude": ["node_modules", "dist"]
Expand Down
Loading

0 comments on commit ad06d47

Please sign in to comment.