From 066184cf8ba6b9c11545f095d62eb7f82b3420a1 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Sunkara Date: Sat, 13 Oct 2018 18:39:23 +0200 Subject: [PATCH] Move crna-kitchen-sink to examples-native folder --- .circleci/config.yml | 18 ++---- .eslintrc.js | 1 + .github/CODEOWNERS | 3 +- ...penSourceProjects_Storybook_ReactNative.kt | 2 +- dependencies.yml | 61 ------------------- .../crna-kitchen-sink/.babelrc | 0 .../crna-kitchen-sink/.env | 0 .../crna-kitchen-sink/.flowconfig | 0 .../crna-kitchen-sink/.gitignore | 0 .../crna-kitchen-sink/.watchmanconfig | 0 .../crna-kitchen-sink/App.js | 0 .../crna-kitchen-sink/App.test.js | 0 .../crna-kitchen-sink/README.md | 0 .../crna-kitchen-sink/app.json | 0 .../crna-kitchen-sink/package.json | 0 .../crna-kitchen-sink/storybook/addons.js | 0 .../crna-kitchen-sink/storybook/index.js | 0 .../crna-kitchen-sink/storybook/rn-addons.js | 0 .../storybook/stories/Button/index.android.js | 0 .../storybook/stories/Button/index.ios.js | 0 .../storybook/stories/CenterView/index.js | 0 .../storybook/stories/CenterView/style.js | 0 .../storybook/stories/Knobs/index.js | 0 .../storybook/stories/Welcome/index.js | 0 .../storybook/stories/index.js | 0 package.json | 11 +--- scripts/test.js | 2 +- 27 files changed, 11 insertions(+), 87 deletions(-) delete mode 100644 dependencies.yml rename {examples => examples-native}/crna-kitchen-sink/.babelrc (100%) rename {examples => examples-native}/crna-kitchen-sink/.env (100%) rename {examples => examples-native}/crna-kitchen-sink/.flowconfig (100%) rename {examples => examples-native}/crna-kitchen-sink/.gitignore (100%) rename {examples => examples-native}/crna-kitchen-sink/.watchmanconfig (100%) rename {examples => examples-native}/crna-kitchen-sink/App.js (100%) rename {examples => examples-native}/crna-kitchen-sink/App.test.js (100%) rename {examples => examples-native}/crna-kitchen-sink/README.md (100%) rename {examples => examples-native}/crna-kitchen-sink/app.json (100%) rename {examples => examples-native}/crna-kitchen-sink/package.json (100%) rename {examples => examples-native}/crna-kitchen-sink/storybook/addons.js (100%) rename {examples => examples-native}/crna-kitchen-sink/storybook/index.js (100%) rename {examples => examples-native}/crna-kitchen-sink/storybook/rn-addons.js (100%) rename {examples => examples-native}/crna-kitchen-sink/storybook/stories/Button/index.android.js (100%) rename {examples => examples-native}/crna-kitchen-sink/storybook/stories/Button/index.ios.js (100%) rename {examples => examples-native}/crna-kitchen-sink/storybook/stories/CenterView/index.js (100%) rename {examples => examples-native}/crna-kitchen-sink/storybook/stories/CenterView/style.js (100%) rename {examples => examples-native}/crna-kitchen-sink/storybook/stories/Knobs/index.js (100%) rename {examples => examples-native}/crna-kitchen-sink/storybook/stories/Welcome/index.js (100%) rename {examples => examples-native}/crna-kitchen-sink/storybook/stories/index.js (100%) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6ea6794042b4..975ddc67209a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -36,17 +36,7 @@ jobs: root: . paths: - node_modules - - examples/angular-cli/node_modules - - examples/ember-cli/node_modules - - examples/cra-kitchen-sink/node_modules - - examples/mithril-kitchen-sink/node_modules - - examples/official-storybook/node_modules - - examples/polymer-cli/node_modules - - examples/vue-kitchen-sink/node_modules - - examples/svelte-kitchen-sink/node_modules - - examples/marko-cli/node_modules - - examples/html-kitchen-sink/node_modules - - examples/riot-kitchen-sink/node_modules + - examples - addons - app - lib @@ -176,7 +166,7 @@ jobs: command: | cd examples/riot-kitchen-sink yarn storybook --smoke-test - react-native: + native-smoke-tests: <<: *defaults steps: - checkout @@ -188,7 +178,7 @@ jobs: - run: name: Run React-Native-App example command: | - cd examples/crna-kitchen-sink + cd examples-native/crna-kitchen-sink yarn storybook --smoke-test docs: <<: *defaults @@ -288,7 +278,7 @@ workflows: - smoke-tests: requires: - build - - react-native: + - native-smoke-tests: requires: - build - unit-test: diff --git a/.eslintrc.js b/.eslintrc.js index 95a7470d4445..917bf9b00706 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -57,6 +57,7 @@ module.exports = { { devDependencies: [ 'examples/**', + 'examples-native/**', '**/example/**', '*.js', '**/*.test.js', diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 32bc2fe52634..c1d1b2a93026 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -28,12 +28,13 @@ /examples/angular-cli/ @igor-dv @alterx /examples/cra-kitchen-sink/ @ndelangen @UsulPro @hypnosphi -/examples/crna-kitchen-sink/ @Gongreg @danielduan /examples/official-storybook/ @hypnosphi @danielduan @UsulPro /examples/polymer-cli/ @naipath @igor-dv /examples/vue-kitchen-sink/ @igor-dv @alexandrebodin /examples/svelte-kitchen-sink/ @plumpNation +/examples-native/crna-kitchen-sink/ @Gongreg @danielduan + /lib/addons/ @ndelangen @theinterned /lib/channel-postmessage/ @mnmtanish @ndelangen /lib/channel-websocket/ @mnmtanish @ndelangen diff --git a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_ReactNative.kt b/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_ReactNative.kt index 08ebca4b1106..f2f058e90f23 100644 --- a/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_ReactNative.kt +++ b/.teamcity/OpenSourceProjects_Storybook/buildTypes/OpenSourceProjects_Storybook_ReactNative.kt @@ -31,7 +31,7 @@ object OpenSourceProjects_Storybook_ReactNative : BuildType({ script { name = "crna-kitchen-sink" scriptContent = """ - cd examples/crna-kitchen-sink + cd examples-native/crna-kitchen-sink yarn storybook --smoke-test """.trimIndent() dockerImage = "node:%docker.node.version%" diff --git a/dependencies.yml b/dependencies.yml deleted file mode 100644 index 71c1f5faacc3..000000000000 --- a/dependencies.yml +++ /dev/null @@ -1,61 +0,0 @@ -collectors: - -# Temporarily disabled -# - type: js-npm -# path: examples/crna-kitchen-sink -# actors: -# # pull requests for updates to our major version -# - type: js-npm -# versions: "L.Y.Y" -# # create issues for new major versions -# - type: repo-issue -# versions: "Y.0.0" - - -- type: js-lerna - path: / - settings: - collect_root: true - bootstrap_command: yarn --ignore-scripts --ignore-engines --silent --prefer-offline - actors: - # pull requests for updates to our major version - - type: js-lerna - dependencies_not_matching: "^react-native$" - versions: "L.Y.Y" - settings: - batch_mode: true - batch_bootstrap: true - bootstrap_command: yarn --ignore-scripts --ignore-engines --silent && yarn lint:ts . --fix && yarn lint:js . --fix - github_labels: - - dependencies:update - github_assignees: - - Hypnosphi - # create issues for new major versions - - type: repo-issue - versions: "Y.0.0" - settings: - github_labels: - - dependencies:update - github_assignees: - - Hypnosphi - -- type: js-npm - path: docs - actors: - # pull requests for updates to our major version - - type: js-npm - versions: "L.Y.Y" - settings: - batch_mode: true - github_labels: - - dependencies:update - github_assignees: - - Hypnosphi - # create issues for new major versions - - type: repo-issue - versions: "Y.0.0" - settings: - github_labels: - - dependencies:update - github_assignees: - - Hypnosphi diff --git a/examples/crna-kitchen-sink/.babelrc b/examples-native/crna-kitchen-sink/.babelrc similarity index 100% rename from examples/crna-kitchen-sink/.babelrc rename to examples-native/crna-kitchen-sink/.babelrc diff --git a/examples/crna-kitchen-sink/.env b/examples-native/crna-kitchen-sink/.env similarity index 100% rename from examples/crna-kitchen-sink/.env rename to examples-native/crna-kitchen-sink/.env diff --git a/examples/crna-kitchen-sink/.flowconfig b/examples-native/crna-kitchen-sink/.flowconfig similarity index 100% rename from examples/crna-kitchen-sink/.flowconfig rename to examples-native/crna-kitchen-sink/.flowconfig diff --git a/examples/crna-kitchen-sink/.gitignore b/examples-native/crna-kitchen-sink/.gitignore similarity index 100% rename from examples/crna-kitchen-sink/.gitignore rename to examples-native/crna-kitchen-sink/.gitignore diff --git a/examples/crna-kitchen-sink/.watchmanconfig b/examples-native/crna-kitchen-sink/.watchmanconfig similarity index 100% rename from examples/crna-kitchen-sink/.watchmanconfig rename to examples-native/crna-kitchen-sink/.watchmanconfig diff --git a/examples/crna-kitchen-sink/App.js b/examples-native/crna-kitchen-sink/App.js similarity index 100% rename from examples/crna-kitchen-sink/App.js rename to examples-native/crna-kitchen-sink/App.js diff --git a/examples/crna-kitchen-sink/App.test.js b/examples-native/crna-kitchen-sink/App.test.js similarity index 100% rename from examples/crna-kitchen-sink/App.test.js rename to examples-native/crna-kitchen-sink/App.test.js diff --git a/examples/crna-kitchen-sink/README.md b/examples-native/crna-kitchen-sink/README.md similarity index 100% rename from examples/crna-kitchen-sink/README.md rename to examples-native/crna-kitchen-sink/README.md diff --git a/examples/crna-kitchen-sink/app.json b/examples-native/crna-kitchen-sink/app.json similarity index 100% rename from examples/crna-kitchen-sink/app.json rename to examples-native/crna-kitchen-sink/app.json diff --git a/examples/crna-kitchen-sink/package.json b/examples-native/crna-kitchen-sink/package.json similarity index 100% rename from examples/crna-kitchen-sink/package.json rename to examples-native/crna-kitchen-sink/package.json diff --git a/examples/crna-kitchen-sink/storybook/addons.js b/examples-native/crna-kitchen-sink/storybook/addons.js similarity index 100% rename from examples/crna-kitchen-sink/storybook/addons.js rename to examples-native/crna-kitchen-sink/storybook/addons.js diff --git a/examples/crna-kitchen-sink/storybook/index.js b/examples-native/crna-kitchen-sink/storybook/index.js similarity index 100% rename from examples/crna-kitchen-sink/storybook/index.js rename to examples-native/crna-kitchen-sink/storybook/index.js diff --git a/examples/crna-kitchen-sink/storybook/rn-addons.js b/examples-native/crna-kitchen-sink/storybook/rn-addons.js similarity index 100% rename from examples/crna-kitchen-sink/storybook/rn-addons.js rename to examples-native/crna-kitchen-sink/storybook/rn-addons.js diff --git a/examples/crna-kitchen-sink/storybook/stories/Button/index.android.js b/examples-native/crna-kitchen-sink/storybook/stories/Button/index.android.js similarity index 100% rename from examples/crna-kitchen-sink/storybook/stories/Button/index.android.js rename to examples-native/crna-kitchen-sink/storybook/stories/Button/index.android.js diff --git a/examples/crna-kitchen-sink/storybook/stories/Button/index.ios.js b/examples-native/crna-kitchen-sink/storybook/stories/Button/index.ios.js similarity index 100% rename from examples/crna-kitchen-sink/storybook/stories/Button/index.ios.js rename to examples-native/crna-kitchen-sink/storybook/stories/Button/index.ios.js diff --git a/examples/crna-kitchen-sink/storybook/stories/CenterView/index.js b/examples-native/crna-kitchen-sink/storybook/stories/CenterView/index.js similarity index 100% rename from examples/crna-kitchen-sink/storybook/stories/CenterView/index.js rename to examples-native/crna-kitchen-sink/storybook/stories/CenterView/index.js diff --git a/examples/crna-kitchen-sink/storybook/stories/CenterView/style.js b/examples-native/crna-kitchen-sink/storybook/stories/CenterView/style.js similarity index 100% rename from examples/crna-kitchen-sink/storybook/stories/CenterView/style.js rename to examples-native/crna-kitchen-sink/storybook/stories/CenterView/style.js diff --git a/examples/crna-kitchen-sink/storybook/stories/Knobs/index.js b/examples-native/crna-kitchen-sink/storybook/stories/Knobs/index.js similarity index 100% rename from examples/crna-kitchen-sink/storybook/stories/Knobs/index.js rename to examples-native/crna-kitchen-sink/storybook/stories/Knobs/index.js diff --git a/examples/crna-kitchen-sink/storybook/stories/Welcome/index.js b/examples-native/crna-kitchen-sink/storybook/stories/Welcome/index.js similarity index 100% rename from examples/crna-kitchen-sink/storybook/stories/Welcome/index.js rename to examples-native/crna-kitchen-sink/storybook/stories/Welcome/index.js diff --git a/examples/crna-kitchen-sink/storybook/stories/index.js b/examples-native/crna-kitchen-sink/storybook/stories/index.js similarity index 100% rename from examples/crna-kitchen-sink/storybook/stories/index.js rename to examples-native/crna-kitchen-sink/storybook/stories/index.js diff --git a/package.json b/package.json index e37c635aeda2..c8805c183504 100644 --- a/package.json +++ b/package.json @@ -11,19 +11,12 @@ "addons/storyshots/*", "app/*", "lib/*", - "examples/*-cli", - "examples/cra-kitchen-sink", - "examples/html-kitchen-sink", - "examples/mithril-kitchen-sink", - "examples/official-storybook", - "examples/riot-kitchen-sink", - "examples/svelte-kitchen-sink", - "examples/vue-kitchen-sink", + "examples/*", "lib/cli/test/run/*" ], "scripts": { "bootstrap": "node ./scripts/bootstrap.js", - "bootstrap:crna-kitchen-sink": "npm --prefix examples/crna-kitchen-sink install", + "bootstrap:crna-kitchen-sink": "npm --prefix examples-native/crna-kitchen-sink install", "bootstrap:docs": "yarn install --cwd docs", "build-packs": "lerna exec --scope '@storybook/*' --parallel -- \\$LERNA_ROOT_PATH/scripts/build-pack.sh \\$LERNA_ROOT_PATH/packs", "build-storybooks": "./scripts/build-storybooks.sh", diff --git a/scripts/test.js b/scripts/test.js index d87a2cae8820..726ebc090d59 100644 --- a/scripts/test.js +++ b/scripts/test.js @@ -63,7 +63,7 @@ const tasks = { // )}`, // defaultValue: false, // option: '--reactnativeapp', - // projectLocation: './examples/crna-kitchen-sink', + // projectLocation: './examples-native/crna-kitchen-sink', // isJest: true, // }), cli: createProject({