-
Notifications
You must be signed in to change notification settings - Fork 45
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
iLya Raylyan
authored and
iLya Raylyan
committed
Feb 2, 2020
1 parent
031e048
commit bc584e2
Showing
7 changed files
with
823 additions
and
782 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
package_name=$(echo $1 | awk -F- '{print $3}') | ||
mkdir -p ../../dist/$package_name | ||
cp -r dist/ ../../dist/$package_name |
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,16 @@ | ||
#!/bin/bash | ||
|
||
lerna exec --parallel -- rm -rf dist | ||
lerna exec --parallel -- NODE_ENV=production babel \ | ||
--root-mode upward \ | ||
--extensions '.ts,.tsx' src -d dist \ | ||
--copy-files \ | ||
--no-copy-ignored \ | ||
--ignore **/*.stories.tsx,**/*.test.tsx | ||
lerna exec --parallel -- tsc --p tsconfig.json | ||
lerna exec --parallel -- postcss dist/*.css -d dist | ||
lerna exec --parallel -- cp package.json dist/package.json | ||
rm -rf dist | ||
lerna exec --parallel -- $(pwd)/bin/build-root-package.sh \$LERNA_PACKAGE_NAME | ||
cp -r packages/vars dist | ||
cp package.json dist/package.json |
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,10 @@ | ||
#!/bin/bash | ||
|
||
lerna version --no-push | ||
yarn build | ||
lerna publish from-git --contents dist | ||
yarn publish dist --no-git-tag-version | ||
cp dist/package.json package.json | ||
git add package.json | ||
git commit -m 'update version' | ||
git push |
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
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 |
---|---|---|
|
@@ -70,4 +70,4 @@ export const Button: React.FC<Props> = ({ | |
{children} | ||
</button> | ||
); | ||
}; | ||
}; |