Skip to content

Commit b90dfe4

Browse files
author
Lucas Bento
committed
Add common folder & precommit task
1 parent 9963848 commit b90dfe4

File tree

16 files changed

+1659
-17
lines changed

16 files changed

+1659
-17
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
 <img alt="React Native Actions" title="React Native Actions" src="/media/logo.png" />
2+
 <img alt="React Native Actions" title="React Native Actions" src="/common/media/logo.png" />
33
</p>
44

55
<h1 align="center">react-native-actions</h1>
File renamed without changes.
File renamed without changes.

lerna.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"packages": [
44
"packages/*"
55
],
6-
"version": "0.0.0"
6+
"version": "0.0.0",
7+
"npmClient": "yarn"
78
}

package.json

+12-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66
"url": "https://github.com/lucasbento"
77
},
88
"devDependencies": {
9-
"lerna": "^2.2.0"
10-
}
9+
"lerna": "^2.2.0",
10+
"pre-commit": "^1.2.2"
11+
},
12+
"scripts": {
13+
"clean": "lerna clean",
14+
"bootstrap": "lerna bootstrap --concurrency=1",
15+
"prepublish": "./tasks/prepublish.sh",
16+
"precommit": "./tasks/precommit.sh"
17+
},
18+
"pre-commit": [
19+
"precommit"
20+
]
1121
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"port": 4444
3+
}
Loading

packages/react-native-actions/config.json

-3
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"port": 4444
3+
}
Loading

packages/vscode-react-native-actions/config.json

-3
This file was deleted.

packages/vscode-react-native-actions/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
"email": "[email protected]",
99
"url": "https://github.com/lucasbento"
1010
},
11+
"icon": "media/logo.png",
12+
"galleryBanner": {
13+
"color": "#2EB1E4",
14+
"theme": "light"
15+
},
1116
"activationEvents": [
1217
"*"
1318
],

packages/vscode-react-native-actions/yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -2616,7 +2616,7 @@ socket.io-adapter@~1.1.0:
26162616
version "1.1.1"
26172617
resolved "https://registry.yarnpkg.com/socket.io-adapter/-/socket.io-adapter-1.1.1.tgz#2a805e8a14d6372124dd9159ad4502f8cb07f06b"
26182618

2619-
socket.io-client@~2.0.2:
2619+
socket.io-client@^2.0.3, socket.io-client@~2.0.2:
26202620
version "2.0.3"
26212621
resolved "https://registry.yarnpkg.com/socket.io-client/-/socket.io-client-2.0.3.tgz#6caf4aff9f85b19fd91b6ce13d69adb564f8873b"
26222622
dependencies:

tasks/precommit.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
rm -rf ./packages/**/common

tasks/prepublish.sh

+7-6
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ root_path=$PWD
1717

1818
cd "$root_path"
1919

20-
array=( react-native-actions vscode-react-native-actions )
21-
for project in "${array[@]}"
20+
commonFolderName="common"
21+
projects=( react-native-actions vscode-react-native-actions )
22+
for project in "${projects[@]}"
2223
do
23-
configOutputFile="$root_path/packages/$project/config.json"
24-
rm -rf "$configOutputFile"
25-
cp config.json "$configOutputFile"
26-
done
24+
commonOutputFolder="$root_path/packages/$project/$commonFolderName"
25+
rm -rf "$commonOutputFolder"
26+
cp -r "$commonFolderName" "$commonOutputFolder"
27+
done

0 commit comments

Comments
 (0)