-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from storybooks/release/3.3
Release/3.3
- Loading branch information
Showing
370 changed files
with
34,767 additions
and
1,634 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,175 @@ | ||
defaults: &defaults | ||
working_directory: /tmp/storybook | ||
docker: | ||
- image: node:8 | ||
|
||
version: 2 | ||
dependencies: | ||
pre: | ||
- yarn global add npm | ||
jobs: | ||
validate: | ||
<<: *defaults | ||
steps: | ||
- run: | ||
name: "Checking Versions" | ||
command: | | ||
node --version | ||
npm --version | ||
yarn --version | ||
build: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- root-dependencies-{{ checksum "package.json" }} | ||
- root-dependencies- | ||
- run: | ||
name: "Install root dependencies" | ||
command: | | ||
yarn install | ||
- save_cache: | ||
key: root-dependencies-{{ checksum "package.json" }} | ||
paths: | ||
- node_modules | ||
- restore_cache: | ||
keys: | ||
- package-dependencies-{{ checksum "package.json" }} | ||
- package-dependencies- | ||
- run: | ||
name: "Bootstrapping" | ||
command: | | ||
yarn bootstrap -- --all | ||
- save_cache: | ||
key: package-dependencies-{{ checksum "package.json" }} | ||
paths: | ||
- app/**/node_modules | ||
- docs/**/node_modules | ||
- examples/**/node_modules | ||
- lib/**/node_modules | ||
example-kitchen-sinks: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- root-dependencies-{{ checksum "package.json" }} | ||
- root-dependencies- | ||
- run: | ||
name: "Install root dependencies" | ||
command: | | ||
yarn install | ||
- run: | ||
name: "Bootstrapping" | ||
command: | | ||
yarn bootstrap -- --core | ||
- run: | ||
name: "Build react kitchen-sink" | ||
command: | | ||
cd examples/cra-kitchen-sink && yarn build-storybook | ||
- run: | ||
name: "Build vue kitchen-sink" | ||
command: | | ||
cd examples/vue-kitchen-sink && yarn build-storybook | ||
example-react-native: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- root-dependencies-{{ checksum "package.json" }} | ||
- root-dependencies- | ||
- run: | ||
name: "Install root dependencies" | ||
command: | | ||
yarn install | ||
- run: | ||
name: "Bootstrapping packages" | ||
command: | | ||
yarn bootstrap -- --core --reactnative | ||
- run: | ||
name: "Running react-native" | ||
command: | | ||
echo "TODO" | ||
docs: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- root-dependencies-{{ checksum "package.json" }} | ||
- root-dependencies- | ||
- run: | ||
name: "Install root dependencies" | ||
command: | | ||
yarn install | ||
- run: | ||
name: "Bootstrapping" | ||
command: | | ||
yarn bootstrap -- --docs | ||
- run: | ||
name: "Running docs" | ||
command: | | ||
yarn docs:build | ||
lint: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- root-dependencies-{{ checksum "package.json" }} | ||
- root-dependencies- | ||
- run: | ||
name: "Install root dependencies" | ||
command: | | ||
yarn install | ||
- run: | ||
name: "Linting" | ||
command: | | ||
yarn lint | ||
unit-test: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- root-dependencies-{{ checksum "package.json" }} | ||
- root-dependencies- | ||
- run: | ||
name: "Install root dependencies" | ||
command: | | ||
yarn install | ||
- run: | ||
name: "Bootstrapping" | ||
command: | | ||
yarn bootstrap -- --core --reactnative | ||
- run: | ||
name: "Unit testing" | ||
command: | | ||
yarn test -- --all --coverage --runInBand | ||
yarn coverage | ||
deploy: | ||
<<: *defaults | ||
steps: | ||
- run: | ||
name: "Deploy" | ||
command: | | ||
echo "TODO" | ||
workflows: | ||
version: 2 | ||
build_accept_deploy: | ||
jobs: | ||
- validate | ||
- build | ||
- example-kitchen-sinks | ||
- example-react-native | ||
- docs | ||
- lint | ||
- unit-test | ||
# - deploy: | ||
# type: approval | ||
# requires: | ||
# - lint | ||
# - unit-test | ||
# - docs |
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,8 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
|
||
[*.{js,json}] | ||
indent_style = space | ||
indent_size = 2 |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ dist | |
build | ||
coverage | ||
node_modules | ||
**/example/** | ||
addons/**/example/** | ||
app/**/demo/** | ||
docs/public | ||
|
||
|
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.