You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,21 +15,21 @@ Worse, sometimes you have to build a native binding like node-sass or couchbase,
15
15
- battery
16
16
- patience
17
17
18
-
With install subsets, you can cleverly avoid some devDependencies in certain contexts. For example, on a CI server where you are simply building an artifact, you do not need to install dependencies like eslint, karma, or other testing frameworks. With a busy or sharedserver, you can shave precious time off of each build this way.
18
+
You can cleverly avoid some devDependencies in certain contexts. For example, on a CI server where you are simply building an artifact, you do not need to install dependencies like eslint, karma, or other testing frameworks. With a busy or shared server, you can shave precious time off of each build this way.
19
19
20
20
## Installation
21
21
22
-
`npm install -g install-subset`
22
+
`npm install -g install-subset`
23
23
24
24
## Usage
25
25
26
26
Add something like to your package.json:
27
27
```
28
-
"installSubsets": {
28
+
"subsets": {
29
29
"build": {
30
30
"whitelist": [
31
-
"dotenv",
32
-
"prettier"
31
+
"babel-cli",
32
+
"dotenv"
33
33
]
34
34
},
35
35
"test": {
@@ -42,15 +42,14 @@ Add something like to your package.json:
42
42
}
43
43
```
44
44
45
-
then call:
46
-
`install-subset install build`
45
+
Then call `subset install test`
47
46
48
47
## Info
49
48
50
49
- 'build' and 'test' are subset names
51
50
- 'whitelist' and 'blacklist' are methods of install
52
-
- 'whitelist' allows that subset of your devDependencies to install
53
-
- 'blacklist' disallows that subset of your devDependencies to install
51
+
- 'whitelist' allows that subset of your devDependencies to install
52
+
- 'blacklist' disallows that subset of your devDependencies to install
54
53
- package.json will be temporarily changed, and restored after install
0 commit comments