Skip to content

Commit 2646409

Browse files
fsongaearon
authored andcommitted
Set up a monorepo with Lerna
1 parent 36d6868 commit 2646409

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+114
-94
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const clientESLintConfig = require('./config/eslint');
1+
const clientESLintConfig = require('./packages/react-scripts/config/eslint');
22

33
module.exports = Object.assign({}, clientESLintConfig, {
44
env: Object.assign({}, clientESLintConfig.env, {

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ build
44
*.tgz
55
my-app*
66
template/src/__tests__/__snapshots__/
7+
lerna-debug.log
8+
npm-debug.log

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ node_js:
55
- 6
66
cache:
77
directories:
8-
- global-cli/node_modules
98
- node_modules
9+
- packages/create-react-app/node_modules
10+
- packages/react-scripts/node_modules
1011
script: tasks/e2e.sh

CONTRIBUTING.md

Lines changed: 6 additions & 7 deletions

lerna.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"lerna": "2.0.0-beta.28",
3+
"version": "independent"
4+
}

package.json

Lines changed: 8 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,20 @@
11
{
2-
"name": "react-scripts",
3-
"version": "0.4.3",
4-
"description": "Configuration and scripts for Create React App.",
5-
"repository": "facebookincubator/create-react-app",
6-
"license": "BSD-3-Clause",
7-
"engines": {
8-
"node": ">=4"
9-
},
10-
"bugs": {
11-
"url": "https://github.com/facebookincubator/create-react-app/issues"
12-
},
2+
"private": true,
133
"scripts": {
14-
"build": "node scripts/build.js",
4+
"build": "node packages/react-scripts/scripts/build.js",
155
"create-react-app": "tasks/cra.sh",
166
"e2e": "tasks/e2e.sh",
17-
"start": "node scripts/start.js",
18-
"test": "node scripts/test.js --env=jsdom"
7+
"postinstall": "lerna bootstrap",
8+
"publish": "tasks/release.sh",
9+
"start": "node packages/react-scripts/scripts/start.js",
10+
"test": "node packages/react-scripts/scripts/test.js --env=jsdom"
1911
},
20-
"files": [
21-
"PATENTS",
22-
"bin",
23-
"config",
24-
"scripts",
25-
"template"
26-
],
27-
"bin": {
28-
"react-scripts": "./bin/react-scripts.js"
29-
},
30-
"dependencies": {
31-
"autoprefixer": "6.4.1",
32-
"babel-core": "6.14.0",
33-
"babel-eslint": "6.1.2",
34-
"babel-jest": "15.0.0",
35-
"babel-loader": "6.2.5",
36-
"babel-plugin-transform-class-properties": "6.11.5",
37-
"babel-plugin-transform-object-rest-spread": "6.8.0",
38-
"babel-plugin-transform-react-constant-elements": "6.9.1",
39-
"babel-plugin-transform-regenerator": "6.14.0",
40-
"babel-plugin-transform-runtime": "6.15.0",
41-
"babel-preset-latest": "6.14.0",
42-
"babel-preset-react": "6.11.1",
43-
"babel-runtime": "6.11.6",
44-
"case-sensitive-paths-webpack-plugin": "1.1.4",
45-
"chalk": "1.1.3",
46-
"connect-history-api-fallback": "1.3.0",
47-
"cross-spawn": "4.0.0",
48-
"css-loader": "0.24.0",
49-
"detect-port": "1.0.0",
12+
"devDependencies": {
5013
"eslint": "3.5.0",
51-
"eslint-loader": "1.5.0",
5214
"eslint-plugin-flowtype": "2.18.1",
5315
"eslint-plugin-import": "1.12.0",
5416
"eslint-plugin-jsx-a11y": "2.2.2",
5517
"eslint-plugin-react": "5.2.2",
56-
"extract-text-webpack-plugin": "1.0.1",
57-
"file-loader": "0.9.0",
58-
"filesize": "3.3.0",
59-
"find-cache-dir": "0.1.1",
60-
"fs-extra": "0.30.0",
61-
"gzip-size": "3.0.0",
62-
"html-loader": "0.4.3",
63-
"html-webpack-plugin": "2.22.0",
64-
"http-proxy-middleware": "0.17.1",
65-
"jest": "15.1.1",
66-
"json-loader": "0.5.4",
67-
"object-assign": "4.1.0",
68-
"opn": "4.0.2",
69-
"path-exists": "3.0.0",
70-
"postcss-loader": "0.13.0",
71-
"promise": "7.1.1",
72-
"recursive-readdir": "2.0.0",
73-
"rimraf": "2.5.4",
74-
"strip-ansi": "3.0.1",
75-
"style-loader": "0.13.1",
76-
"url-loader": "0.5.7",
77-
"webpack": "1.13.2",
78-
"webpack-dev-server": "1.16.1",
79-
"whatwg-fetch": "1.0.0"
80-
},
81-
"devDependencies": {
82-
"bundle-deps": "1.0.0",
83-
"react": "^15.3.0",
84-
"react-dom": "^15.3.0"
85-
},
86-
"optionalDependencies": {
87-
"fsevents": "1.0.14"
18+
"lerna": "2.0.0-beta.28"
8819
}
8920
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)