forked from babel/minify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
amasad | ||
hzoo | ||
kangax | ||
boopathi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
hzoo | ||
amasad | ||
kangax | ||
boopathi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
read -p "Username: " username | ||
read -p "Are you sure you want to add $username to all packages (y/n)? " confirm | ||
|
||
if [ "$confirm" != "y" ]; then | ||
echo "Ok bye." | ||
exit 0 | ||
fi | ||
|
||
for f in packages/*; do | ||
package=`basename $f` | ||
|
||
if [ -d "$f" ] && [ -e "$f/package.json" ]; then | ||
npm owner add $username $package | ||
fi | ||
done | ||
|
||
echo "$username" >> NPM_OWNERS | ||
|
||
echo "Success." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
cat NPM_OWNERS | ||
read -p "Do you want to add the above owners to all packages (y/n)? " confirm | ||
|
||
if [ "$confirm" != "y" ]; then | ||
echo "Ok bye." | ||
exit 0 | ||
fi | ||
|
||
while read username | ||
do | ||
for f in packages/*; do | ||
package=`basename $f` | ||
|
||
if [ -d "$f" ] && [ -e "$f/package.json" ]; then | ||
echo "Adding $username to $package." | ||
npm owner add $username $package | ||
fi | ||
done | ||
done < NPM_OWNERS | ||
|
||
echo "Success." |