Skip to content

Commit

Permalink
Added mobx and Pizza Store
Browse files Browse the repository at this point in the history
  • Loading branch information
saxenanihal95 committed May 3, 2020
1 parent 840558c commit 93e35a1
Show file tree
Hide file tree
Showing 12 changed files with 6,520 additions and 194 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy": true }],
"@babel/plugin-proposal-class-properties"
]
}
13 changes: 13 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const {
override,
addDecoratorsLegacy,
disableEsLint
} = require("customize-cra");

module.exports = override(
// enable legacy decorators babel plugin
addDecoratorsLegacy(),

// disable eslint in webpack
disableEsLint()
);
8 changes: 8 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"experimentalDecorators": true
},
"include": ["resources/**/*"]
}
62 changes: 62 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/preset-react": "^7.0.0",
"axios": "^0.19",
"bootstrap": "^4.0.0",
Expand All @@ -25,6 +27,8 @@
"sass-loader": "^8.0.0"
},
"dependencies": {
"antd": "^4.2.0"
"antd": "^4.2.0",
"mobx": "^5.15.4",
"mobx-react": "^6.2.2"
}
}
Loading

0 comments on commit 93e35a1

Please sign in to comment.