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
|
||||
|
||||
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:
|
||||
|
||||
* Install Node.js
|
||||
* `npm install`
|
||||
* `npm start`
|
||||
* `yarn install`
|
||||
* `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.
|
||||
22
package.json
22
package.json
|
|
@ -5,10 +5,6 @@
|
|||
"scripts": {
|
||||
"start": "node server.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/mobxjs/mobx-react-typescript-boilerplate.git"
|
||||
},
|
||||
"keywords": [
|
||||
"react",
|
||||
"reactjs",
|
||||
|
|
@ -18,21 +14,19 @@
|
|||
],
|
||||
"author": "Michel Weststrate <mweststrate@gmail.com> (http://github.com/mweststrate)",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/mobxjs/mobx/issues"
|
||||
},
|
||||
"homepage": "http://mobxjs.github.com/mobx",
|
||||
"devDependencies": {
|
||||
"@types/react-dom": "^16.9.2",
|
||||
"awesome-typescript-loader": "^5.2.1",
|
||||
"typescript": "^3.6.4",
|
||||
"webpack": "^4.41.2",
|
||||
"@types/react-dom": "^16.9.4",
|
||||
"ts-loader": "6.2.1",
|
||||
"typescript": "^3.7.2",
|
||||
"webpack": "^4.41.5",
|
||||
"webpack-cli": "^3.3.10",
|
||||
"webpack-dev-server": "^3.8.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"mobx": "^5.14.2",
|
||||
"mobx": "^5.15.1",
|
||||
"mobx-react": "^6.1.4",
|
||||
"react": "^16.10.2",
|
||||
"react-dom": "^16.10.2"
|
||||
"react": "^16.12.0",
|
||||
"react-dom": "^16.12.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,12 +14,13 @@ module.exports = {
|
|||
publicPath: '/static/'
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.js', '.ts', '.tsx']
|
||||
extensions: ['.js', '.ts', '.tsx'],
|
||||
alias: { mobx: __dirname + "/node_modules/mobx/lib/mobx.es6.js" }
|
||||
},
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.tsx?$/,
|
||||
loader: "awesome-typescript-loader",
|
||||
loader: "ts-loader",
|
||||
include: path.join(__dirname, 'src')
|
||||
}]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue