-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generator: update generated app dependencies (#690)
- Loading branch information
1 parent
881084c
commit d03a10e
Showing
19 changed files
with
159 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
dist | ||
node_modules | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const isNodeTarget = (api) => | ||
api.caller((caller) => caller && caller.target === 'node'); | ||
|
||
module.exports = (api) => ({ | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
targets: isNodeTarget(api) ? { node: 'current' } : 'defaults', | ||
}, | ||
], | ||
'@babel/preset-react', | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,36 @@ | ||
{ | ||
"name": "<%= name %>", | ||
"version": "0.0.0", | ||
"private": true, | ||
"main": "start.js", | ||
"scripts": { | ||
"build": "webpack & webpack --config webpack.config.production.js", | ||
"dev": "node webpack-dev-server.js", | ||
"lint": "eslint ./*.js ./**/*.js", | ||
"start": "node start.js" | ||
}, | ||
"dependencies": { | ||
"babel": "^6.5.2", | ||
"babel-core": "^6.6.4", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-react": "^6.5.0", | ||
"babel-register": "^6.6.0", | ||
"body-parser": "^1.6.4", | ||
"compression": "^1.5.1", | ||
"cookie-parser": "^1.3.3", | ||
"csurf": "^1.6.3", | ||
"debug": "^2.0.0", | ||
"express": "^4.3.2", | ||
"express-state": "^1.2.0", | ||
"fluxible": "^1.0.0", | ||
"fluxible-addons-react": "^0.2.0", | ||
"fluxible-plugin-fetchr": "^0.3.0", | ||
"fluxible-router": "^0.4.0", | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0", | ||
"serialize-javascript": "^4.0.0", | ||
"serve-favicon": "^2.1.6" | ||
}, | ||
"devDependencies": { | ||
"babel-eslint": "^10.0.0", | ||
"babel-loader": "^6.2.4", | ||
"bundle-loader": "^0.5.0", | ||
"eslint": "^6.0.0", | ||
"eslint-plugin-babel": "^5.0.0", | ||
"eslint-plugin-react": "^7.0.0", | ||
"json-loader": "^0.5.1", | ||
"nodemon": "^1.2.1", | ||
"react-hot-loader": "^1.2.8", | ||
"shelljs": "^0.6.0", | ||
"webpack": "^1.12.4", | ||
"webpack-dev-server": "^1.6.5" | ||
} | ||
"name": "<%= name %>", | ||
"version": "0.0.0", | ||
"private": true, | ||
"main": "dist/server.js", | ||
"scripts": { | ||
"build": "NODE_ENV=production webpack", | ||
"dev": "npm run dev:browser & npm run dev:server", | ||
"dev:browser": "NODE_ENV=development webpack --watch --no-stats", | ||
"dev:server": "NODE_ENV=development nodemon", | ||
"start": "node ." | ||
}, | ||
"dependencies": { | ||
"body-parser": "^1.19.0", | ||
"compression": "^1.7.4", | ||
"debug": "^4.3.1", | ||
"express": "^4.17.1", | ||
"fluxible": "^1.0.0", | ||
"fluxible-addons-react": "^1.0.0-beta.1", | ||
"fluxible-plugin-fetchr": "^0.3.11", | ||
"fluxible-router": "^2.0.0-beta.9.0", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"serialize-javascript": "^5.0.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.13.16", | ||
"@babel/preset-env": "^7.13.15", | ||
"@babel/preset-react": "^7.13.13", | ||
"babel-loader": "^8.2.2", | ||
"nodemon": "^2.0.7", | ||
"webpack": "^5.36.1", | ||
"webpack-cli": "^4.6.0", | ||
"webpack-node-externals": "^3.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
packages/generator-fluxible/app/templates/webpack-dev-server.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.