File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ mkdir -p ./generated/plugins
8
8
cp -rf ./content/plugins/ ./generated/plugins
9
9
10
10
# Fetches github.com/webpack/*-loader repositories
11
- ./scripts/fetch_package_names.js " -loader" | ./scripts/fetch_package_files.js " README.md" " ./generated/loaders"
11
+ ./scripts/fetch_package_names.js " webpack " " -loader" | ./scripts/fetch_package_files.js " README.md" " ./generated/loaders"
12
12
13
13
# Fetches github.com/webpack/*-webpack-plugin repositories
14
- ./scripts/fetch_package_names.js " -webpack-plugin" | ./scripts/fetch_package_files.js " README.md" " ./generated/plugins"
14
+ ./scripts/fetch_package_names.js " webpack" " -webpack-plugin" | ./scripts/fetch_package_files.js " README.md" " ./generated/plugins"
15
+
16
+ # Fetches github.com/webpack-contrib/*-webpack-plugin repositories
17
+ ./scripts/fetch_package_names.js " webpack-contrib" " -webpack-plugin" | ./scripts/fetch_package_files.js " README.md" " ./generated/plugins"
Original file line number Diff line number Diff line change @@ -10,14 +10,18 @@ if (require.main === module) {
10
10
}
11
11
12
12
function main ( ) {
13
- const suffix = process . argv [ 2 ] ;
13
+ const organization = process . argv [ 2 ] ;
14
+ const suffix = process . argv [ 3 ] ;
14
15
16
+ if ( ! organization ) {
17
+ return console . error ( 'Missing organization!' ) ;
18
+ }
15
19
if ( ! suffix ) {
16
20
return console . error ( 'Missing suffix!' ) ;
17
21
}
18
22
19
23
fetchPackageNames ( {
20
- organization : 'webpack' ,
24
+ organization : organization ,
21
25
suffix : suffix
22
26
} , function ( err , d ) {
23
27
if ( err ) {
You can’t perform that action at this time.
0 commit comments