Minor updates and changes
This commit is contained in:
parent
5965cb8469
commit
eb15f0c119
4 changed files with 518 additions and 401 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
_Fork of https://github.com/mobxjs/mobx-react-typescript-boilerplate.git_
|
||||||
|
|
||||||
# React-TypeScript
|
# React-TypeScript
|
||||||
|
|
||||||
Minimal boilerplate for a single-page app using MobX, React and TypeScript with TSX.
|
Minimal boilerplate for a single-page app using MobX, React and TypeScript with TSX.
|
||||||
|
|
@ -5,7 +7,7 @@ Minimal boilerplate for a single-page app using MobX, React and TypeScript with
|
||||||
Initial run:
|
Initial run:
|
||||||
|
|
||||||
* Install Node.js
|
* Install Node.js
|
||||||
* `npm install`
|
* `yarn install`
|
||||||
* `npm start`
|
* `yarn start`
|
||||||
|
|
||||||
For simplicity sake Webpack Hot Module Reloading is disabled. If you want to use HMR, see the [Reactive2015 demo](https://github.com/mobxjs/mobx-reactive2015-demo) to see a valid setup.
|
For simplicity sake Webpack Hot Module Reloading is disabled. If you want to use HMR, see the [Reactive2015 demo](https://github.com/mobxjs/mobx-reactive2015-demo) to see a valid setup.
|
||||||
22
package.json
22
package.json
|
|
@ -5,10 +5,6 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node server.js"
|
"start": "node server.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/mobxjs/mobx-react-typescript-boilerplate.git"
|
|
||||||
},
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
"reactjs",
|
"reactjs",
|
||||||
|
|
@ -18,21 +14,19 @@
|
||||||
],
|
],
|
||||||
"author": "Michel Weststrate <mweststrate@gmail.com> (http://github.com/mweststrate)",
|
"author": "Michel Weststrate <mweststrate@gmail.com> (http://github.com/mweststrate)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/mobxjs/mobx/issues"
|
|
||||||
},
|
|
||||||
"homepage": "http://mobxjs.github.com/mobx",
|
"homepage": "http://mobxjs.github.com/mobx",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react-dom": "^16.9.2",
|
"@types/react-dom": "^16.9.4",
|
||||||
"awesome-typescript-loader": "^5.2.1",
|
"ts-loader": "6.2.1",
|
||||||
"typescript": "^3.6.4",
|
"typescript": "^3.7.2",
|
||||||
"webpack": "^4.41.2",
|
"webpack": "^4.41.5",
|
||||||
|
"webpack-cli": "^3.3.10",
|
||||||
"webpack-dev-server": "^3.8.2"
|
"webpack-dev-server": "^3.8.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mobx": "^5.14.2",
|
"mobx": "^5.15.1",
|
||||||
"mobx-react": "^6.1.4",
|
"mobx-react": "^6.1.4",
|
||||||
"react": "^16.10.2",
|
"react": "^16.12.0",
|
||||||
"react-dom": "^16.10.2"
|
"react-dom": "^16.12.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,12 +14,13 @@ module.exports = {
|
||||||
publicPath: '/static/'
|
publicPath: '/static/'
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js', '.ts', '.tsx']
|
extensions: ['.js', '.ts', '.tsx'],
|
||||||
|
alias: { mobx: __dirname + "/node_modules/mobx/lib/mobx.es6.js" }
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [{
|
rules: [{
|
||||||
test: /\.tsx?$/,
|
test: /\.tsx?$/,
|
||||||
loader: "awesome-typescript-loader",
|
loader: "ts-loader",
|
||||||
include: path.join(__dirname, 'src')
|
include: path.join(__dirname, 'src')
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue