Move 'website' to 'packages/website'

Keep all workspaces in the 'packages' directory.
This commit is contained in:
Nicolas Gallagher
2018-05-22 16:27:33 -07:00
parent b4e3427fea
commit a8e5d43db5
168 changed files with 15 additions and 16 deletions

View File

@@ -4,7 +4,7 @@
[ignore] [ignore]
<PROJECT_ROOT>/.*/__tests__/.* <PROJECT_ROOT>/.*/__tests__/.*
<PROJECT_ROOT>/packages/.*/dist/.* <PROJECT_ROOT>/packages/.*/dist/.*
<PROJECT_ROOT>/website/.* <PROJECT_ROOT>/packages/website/.*
.*/node_modules/babel-plugin-transform-react-remove-prop-types/* .*/node_modules/babel-plugin-transform-react-remove-prop-types/*
[include] [include]

View File

@@ -45,17 +45,17 @@ and [animations](https://facebook.github.io/react-native/docs/animations.html).
### Guides ### Guides
* [Getting started](https://github.com/necolas/react-native-web/blob/master/website/guides/getting-started.md) * [Getting started](https://github.com/necolas/react-native-web/blob/master/packages/website/guides/getting-started.md)
* [Style](https://github.com/necolas/react-native-web/blob/master/website/guides/style.md) * [Style](https://github.com/necolas/react-native-web/blob/master/packages/website/guides/style.md)
* [Accessibility](https://github.com/necolas/react-native-web/blob/master/website/guides/accessibility.md) * [Accessibility](https://github.com/necolas/react-native-web/blob/master/packages/website/guides/accessibility.md)
* [Internationalization](https://github.com/necolas/react-native-web/blob/master/website/guides/internationalization.md) * [Internationalization](https://github.com/necolas/react-native-web/blob/master/packages/website/guides/internationalization.md)
* [Direct manipulation](https://github.com/necolas/react-native-web/blob/master/website/guides/direct-manipulation.md) * [Direct manipulation](https://github.com/necolas/react-native-web/blob/master/packages/website/guides/direct-manipulation.md)
* [Advanced use](https://github.com/necolas/react-native-web/blob/master/website/guides/advanced.md) * [Advanced use](https://github.com/necolas/react-native-web/blob/master/packages/website/guides/advanced.md)
## Examples ## Examples
There are several examples [on the website][website-url] and in the [website's There are several examples [on the website][website-url] and in the [website's
source code](https://github.com/necolas/react-native-web/blob/master/website). source code](https://github.com/necolas/react-native-web/blob/master/packages/website).
Here is an example to get you started: Here is an example to get you started:
```js ```js
@@ -95,7 +95,7 @@ Examples of using React Native for Web with other web tools:
* [Next.js](https://github.com/zeit/next.js/tree/master/examples/with-react-native-web) * [Next.js](https://github.com/zeit/next.js/tree/master/examples/with-react-native-web)
* [Phenomic](https://github.com/phenomic/phenomic/tree/master/examples/react-native-web-app) * [Phenomic](https://github.com/phenomic/phenomic/tree/master/examples/react-native-web-app)
* [Razzle](https://github.com/jaredpalmer/razzle/tree/master/examples/with-react-native-web) * [Razzle](https://github.com/jaredpalmer/razzle/tree/master/examples/with-react-native-web)
* [Storybook](https://github.com/necolas/react-native-web/tree/master/website/storybook/.storybook) * [Storybook](https://github.com/necolas/react-native-web/tree/master/packages/website/storybook/.storybook)
* [Styleguidist](https://github.com/styleguidist/react-styleguidist/tree/master/examples/react-native) * [Styleguidist](https://github.com/styleguidist/react-styleguidist/tree/master/examples/react-native)
## Contributing ## Contributing

View File

@@ -9,13 +9,13 @@
"compile:es": "cd packages/react-native-web && babel src --out-dir dist --ignore \"**/__tests__\"", "compile:es": "cd packages/react-native-web && babel src --out-dir dist --ignore \"**/__tests__\"",
"benchmarks": "cd packages/benchmarks && yarn build", "benchmarks": "cd packages/benchmarks && yarn build",
"benchmarks:release": "cd packages/benchmarks && yarn release", "benchmarks:release": "cd packages/benchmarks && yarn release",
"website": "cd website && yarn start", "website": "cd packages/website && yarn start",
"website:release": "cd website && yarn release", "website:release": "cd packages/website && yarn release",
"flow": "flow", "flow": "flow",
"fmt": "prettier --write \"**/*.js\"", "fmt": "prettier --write \"**/*.js\"",
"jest": "BABEL_ENV=commonjs jest --config ./scripts/jest/config.js", "jest": "BABEL_ENV=commonjs jest --config ./scripts/jest/config.js",
"lint": "yarn lint:check --fix", "lint": "yarn lint:check --fix",
"lint:check": "eslint packages scripts website", "lint:check": "eslint packages scripts",
"precommit": "lint-staged", "precommit": "lint-staged",
"prerelease": "yarn test && yarn compile && yarn compile:commonjs", "prerelease": "yarn test && yarn compile && yarn compile:commonjs",
"release": "node ./scripts/release/publish.js", "release": "node ./scripts/release/publish.js",
@@ -58,8 +58,7 @@
"react-test-renderer": "^16.3.2" "react-test-renderer": "^16.3.2"
}, },
"workspaces": [ "workspaces": [
"packages/*", "packages/*"
"website"
], ],
"lint-staged": { "lint-staged": {
"packages/react-native-web/src/index.js": [ "packages/react-native-web/src/index.js": [

View File

@@ -5,7 +5,7 @@
"scripts": { "scripts": {
"build": "build-storybook -o ./dist -c ./storybook/.storybook", "build": "build-storybook -o ./dist -c ./storybook/.storybook",
"start": "start-storybook -p 9001 -c ./storybook/.storybook", "start": "start-storybook -p 9001 -c ./storybook/.storybook",
"release": "yarn build && git checkout gh-pages && rm -rf ../storybook && mv dist ../storybook && git add -A && git commit -m \"Storybook deploy\" && git push origin gh-pages && git checkout -" "release": "yarn build && git checkout gh-pages && rm -rf ../../storybook && mv dist ../../storybook && git add -A && git commit -m \"Website deploy\" && git push origin gh-pages && git checkout -"
}, },
"dependencies": { "dependencies": {
"@storybook/addon-options": "^3.4.3", "@storybook/addon-options": "^3.4.3",

View File

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Some files were not shown because too many files have changed in this diff Show More