Skip to content

Commit

Permalink
🛠 remove bundling of deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kitze committed Nov 5, 2016
1 parent 2540f00 commit cdaa892
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 62 deletions.
56 changes: 1 addition & 55 deletions packages/react-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,64 +76,10 @@
"whatwg-fetch": "1.0.0"
},
"devDependencies": {
"bundle-deps": "1.0.0",
"react": "^15.3.0",
"react-dom": "^15.3.0"
},
"optionalDependencies": {
"fsevents": "1.0.14"
},
"bundledDependencies": [
"autoprefixer",
"babel-core",
"babel-eslint",
"babel-jest",
"babel-loader",
"babel-preset-react-app",
"babel-preset-stage-0",
"babel-plugin-transform-decorators-legacy",
"case-sensitive-paths-webpack-plugin",
"chalk",
"connect-history-api-fallback",
"cross-spawn",
"css-loader",
"detect-port",
"dotenv",
"eslint",
"eslint-config-react-app",
"eslint-loader",
"eslint-plugin-flowtype",
"eslint-plugin-import",
"eslint-plugin-jsx-a11y",
"eslint-plugin-react",
"extract-text-webpack-plugin",
"file-loader",
"filesize",
"fs-extra",
"gzip-size",
"html-webpack-plugin",
"http-proxy-middleware",
"jest",
"json-loader",
"less",
"less-loader",
"node-sass",
"object-assign",
"path-exists",
"postcss-loader",
"promise",
"react-dev-utils",
"recursive-readdir",
"rimraf",
"sass-loader",
"strip-ansi",
"style-loader",
"stylus",
"stylus-loader",
"url-loader",
"webpack",
"webpack-dev-server",
"webpack-manifest-plugin",
"whatwg-fetch"
]
}
}
4 changes: 0 additions & 4 deletions tasks/cra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ cd packages/react-scripts
# Save package.json because we're going to touch it
cp package.json package.json.orig

# Like bundle-deps, this script modifies packages/react-scripts/package.json,
# copying own dependencies (those in the `packages` dir) to bundledDependencies
node $root_path/tasks/bundle-own-deps.js

# Finally, pack react-scripts
scripts_path=$root_path/packages/react-scripts/`npm pack`

Expand Down
3 changes: 0 additions & 3 deletions tasks/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ npm dedupe
# Since it's in optionalDependencies, it will attempt install outside bundle
rm -rf node_modules/fsevents

# This modifies package.json to copy all dependencies to bundledDependencies
node ./node_modules/.bin/bundle-deps

cd $root_path
# Go!
./node_modules/.bin/lerna publish --independent "$@"

0 comments on commit cdaa892

Please # to comment.