Skip to content

Commit 38848a3

Browse files
committed
More consistent .gitignore files
Also, remove individual "clean" scripts in favor of one in the root of the repo since it depends on .gitignore.
1 parent 93ceb48 commit 38848a3

File tree

12 files changed

+17
-31
lines changed

12 files changed

+17
-31
lines changed

.gitignore

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
node_modules
2-
lerna-debug.log
1+
# node.js
2+
node_modules/
33
npm-debug.log
4+
5+
# lerna
6+
lerna-debug.log

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"postinstall": "node ./scripts/postinstall.js",
66
"build": "node ./scripts/build.js",
7-
"clean": "lerna run clean",
7+
"clean": "git clean -fdX .",
88
"precommit": "pretty-quick --staged",
99
"start": "cd website && npm start",
1010
"test": "lerna run test --stream"
+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/es
2-
/node_modules
3-
/umd
1+
es/
2+
umd/
43
/*.js
5-
!rollup.config.js
4+
!/rollup.config.js

packages/react-router-config/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"build": "node ./scripts/build.js",
2222
"watch": "babel ./modules -d . --ignore __tests__ --watch",
2323
"prepublishOnly": "node ./scripts/build.js",
24-
"clean": "git clean -fdX .",
2524
"lint": "eslint modules",
2625
"test": "jest"
2726
},

packages/react-router-dom/.gitignore

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/es
2-
/node_modules
3-
/umd
1+
es/
2+
umd/
43
/*.js
5-
!rollup.config.js
4+
!/rollup.config.js

packages/react-router-dom/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"build": "node ./scripts/build.js",
3636
"watch": "babel ./modules -d . --ignore __tests__ --watch",
3737
"prepublishOnly": "node ./scripts/build.js",
38-
"clean": "git clean -fdX .",
3938
"lint": "eslint modules",
4039
"test": "jest"
4140
},

packages/react-router-native/.gitignore

-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# OSX
2-
#
32
.DS_Store
43

54
# Xcode
6-
#
75
build/
86
*.pbxuser
97
!default.pbxuser
@@ -23,18 +21,12 @@ DerivedData
2321
project.xcworkspace
2422

2523
# Android/IntelliJ
26-
#
2724
build/
2825
.idea
2926
.gradle
3027
local.properties
3128
*.iml
3229

33-
# node.js
34-
#
35-
node_modules/
36-
npm-debug.log
37-
3830
# BUCK
3931
buck-out/
4032
\.buckd/

packages/react-router-native/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"sideEffects": false,
1313
"scripts": {
1414
"start": "node node_modules/react-native/local-cli/cli.js start",
15-
"clean": "git clean -fdX .",
1615
"test": "jest"
1716
},
1817
"files": [

packages/react-router/.gitignore

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/es
2-
/node_modules
3-
/umd
4-
/utils
1+
es/
2+
umd/
3+
utils/
54
/*.js
6-
!rollup.config.js
5+
!/rollup.config.js

packages/react-router/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"build": "node ./scripts/build.js",
3333
"watch": "babel ./modules -d . --ignore __tests__ --watch",
3434
"prepublishOnly": "node ./scripts/build.js",
35-
"clean": "git clean -fdX .",
3635
"lint": "eslint modules",
3736
"test": "jest"
3837
},

website/.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
build
2-
node_modules
1+
build/

website/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"name": "react-router-website",
44
"scripts": {
55
"build": "NODE_ENV=production webpack -p",
6-
"clean": "git clean -fdX .",
76
"start": "webpack-dev-server --inline --host 0.0.0.0"
87
},
98
"devDependencies": {

0 commit comments

Comments
 (0)