From a84ecefa5d27c15f96a8742f9d459e26e2f36506 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 25 May 2017 21:44:01 -0700 Subject: [PATCH] Rename 'performance' to 'benchmarks' --- {performance => benchmarks}/README.md | 0 {performance => benchmarks}/benchmark.js | 0 {performance => benchmarks}/createRenderBenchmark.js | 0 {performance => benchmarks}/index.html | 0 {performance => benchmarks}/index.js | 0 {performance => benchmarks}/package.json | 0 {performance => benchmarks}/src/aphrodite.js | 0 {performance => benchmarks}/src/components/AppText/index.js | 0 .../src/components/AspectRatio/index.js | 0 {performance => benchmarks}/src/components/Box/aphrodite.js | 0 .../src/components/Box/css-modules.js | 0 {performance => benchmarks}/src/components/Box/glamor.js | 0 {performance => benchmarks}/src/components/Box/jss.js | 0 .../src/components/Box/react-native-stylesheet.js | 0 .../src/components/Box/react-native.js | 0 {performance => benchmarks}/src/components/Box/reactxp.js | 0 .../src/components/Box/styled-components.js | 0 {performance => benchmarks}/src/components/Box/styles.css | 0 {performance => benchmarks}/src/components/Box/styletron.js | 0 .../src/components/GridView/index.js | 0 .../src/components/Icons/DirectMessage.js | 0 {performance => benchmarks}/src/components/Icons/Heart.js | 0 {performance => benchmarks}/src/components/Icons/Reply.js | 0 {performance => benchmarks}/src/components/Icons/Retweet.js | 0 {performance => benchmarks}/src/components/Icons/styles.js | 0 .../src/components/NestedTree/index.js | 0 {performance => benchmarks}/src/components/Tweet/index.js | 0 .../src/components/TweetAction/index.js | 0 .../src/components/TweetActionsBar/index.js | 0 .../src/components/TweetText/index.js | 0 .../src/components/TweetTextPart/index.js | 0 .../src/components/UserAvatar/index.js | 0 .../src/components/UserNames/index.js | 0 .../src/components/View/aphrodite.js | 0 .../src/components/View/css-modules.js | 0 {performance => benchmarks}/src/components/View/glamor.js | 0 {performance => benchmarks}/src/components/View/jss.js | 0 .../src/components/View/react-native-stylesheet.js | 0 .../src/components/View/styled-components.js | 0 {performance => benchmarks}/src/components/View/styles.css | 0 .../src/components/View/styletron.js | 0 {performance => benchmarks}/src/components/theme.js | 0 {performance => benchmarks}/src/css-modules.js | 0 {performance => benchmarks}/src/glamor.js | 0 {performance => benchmarks}/src/jss.js | 0 {performance => benchmarks}/src/react-native-stylesheet.js | 0 {performance => benchmarks}/src/react-native.js | 0 {performance => benchmarks}/src/reactxp.js | 0 {performance => benchmarks}/src/styled-components.js | 0 {performance => benchmarks}/src/styletron.js | 0 {performance => benchmarks}/tests/renderDeepTree.js | 0 {performance => benchmarks}/tests/renderTweet.js | 0 {performance => benchmarks}/tests/renderWideTree.js | 0 {performance => benchmarks}/webpack.config.js | 0 {performance => benchmarks}/yarn.lock | 0 docs/guides/style.md | 2 +- package.json | 6 +++--- 57 files changed, 4 insertions(+), 4 deletions(-) rename {performance => benchmarks}/README.md (100%) rename {performance => benchmarks}/benchmark.js (100%) rename {performance => benchmarks}/createRenderBenchmark.js (100%) rename {performance => benchmarks}/index.html (100%) rename {performance => benchmarks}/index.js (100%) rename {performance => benchmarks}/package.json (100%) rename {performance => benchmarks}/src/aphrodite.js (100%) rename {performance => benchmarks}/src/components/AppText/index.js (100%) rename {performance => benchmarks}/src/components/AspectRatio/index.js (100%) rename {performance => benchmarks}/src/components/Box/aphrodite.js (100%) rename {performance => benchmarks}/src/components/Box/css-modules.js (100%) rename {performance => benchmarks}/src/components/Box/glamor.js (100%) rename {performance => benchmarks}/src/components/Box/jss.js (100%) rename {performance => benchmarks}/src/components/Box/react-native-stylesheet.js (100%) rename {performance => benchmarks}/src/components/Box/react-native.js (100%) rename {performance => benchmarks}/src/components/Box/reactxp.js (100%) rename {performance => benchmarks}/src/components/Box/styled-components.js (100%) rename {performance => benchmarks}/src/components/Box/styles.css (100%) rename {performance => benchmarks}/src/components/Box/styletron.js (100%) rename {performance => benchmarks}/src/components/GridView/index.js (100%) rename {performance => benchmarks}/src/components/Icons/DirectMessage.js (100%) rename {performance => benchmarks}/src/components/Icons/Heart.js (100%) rename {performance => benchmarks}/src/components/Icons/Reply.js (100%) rename {performance => benchmarks}/src/components/Icons/Retweet.js (100%) rename {performance => benchmarks}/src/components/Icons/styles.js (100%) rename {performance => benchmarks}/src/components/NestedTree/index.js (100%) rename {performance => benchmarks}/src/components/Tweet/index.js (100%) rename {performance => benchmarks}/src/components/TweetAction/index.js (100%) rename {performance => benchmarks}/src/components/TweetActionsBar/index.js (100%) rename {performance => benchmarks}/src/components/TweetText/index.js (100%) rename {performance => benchmarks}/src/components/TweetTextPart/index.js (100%) rename {performance => benchmarks}/src/components/UserAvatar/index.js (100%) rename {performance => benchmarks}/src/components/UserNames/index.js (100%) rename {performance => benchmarks}/src/components/View/aphrodite.js (100%) rename {performance => benchmarks}/src/components/View/css-modules.js (100%) rename {performance => benchmarks}/src/components/View/glamor.js (100%) rename {performance => benchmarks}/src/components/View/jss.js (100%) rename {performance => benchmarks}/src/components/View/react-native-stylesheet.js (100%) rename {performance => benchmarks}/src/components/View/styled-components.js (100%) rename {performance => benchmarks}/src/components/View/styles.css (100%) rename {performance => benchmarks}/src/components/View/styletron.js (100%) rename {performance => benchmarks}/src/components/theme.js (100%) rename {performance => benchmarks}/src/css-modules.js (100%) rename {performance => benchmarks}/src/glamor.js (100%) rename {performance => benchmarks}/src/jss.js (100%) rename {performance => benchmarks}/src/react-native-stylesheet.js (100%) rename {performance => benchmarks}/src/react-native.js (100%) rename {performance => benchmarks}/src/reactxp.js (100%) rename {performance => benchmarks}/src/styled-components.js (100%) rename {performance => benchmarks}/src/styletron.js (100%) rename {performance => benchmarks}/tests/renderDeepTree.js (100%) rename {performance => benchmarks}/tests/renderTweet.js (100%) rename {performance => benchmarks}/tests/renderWideTree.js (100%) rename {performance => benchmarks}/webpack.config.js (100%) rename {performance => benchmarks}/yarn.lock (100%) diff --git a/performance/README.md b/benchmarks/README.md similarity index 100% rename from performance/README.md rename to benchmarks/README.md diff --git a/performance/benchmark.js b/benchmarks/benchmark.js similarity index 100% rename from performance/benchmark.js rename to benchmarks/benchmark.js diff --git a/performance/createRenderBenchmark.js b/benchmarks/createRenderBenchmark.js similarity index 100% rename from performance/createRenderBenchmark.js rename to benchmarks/createRenderBenchmark.js diff --git a/performance/index.html b/benchmarks/index.html similarity index 100% rename from performance/index.html rename to benchmarks/index.html diff --git a/performance/index.js b/benchmarks/index.js similarity index 100% rename from performance/index.js rename to benchmarks/index.js diff --git a/performance/package.json b/benchmarks/package.json similarity index 100% rename from performance/package.json rename to benchmarks/package.json diff --git a/performance/src/aphrodite.js b/benchmarks/src/aphrodite.js similarity index 100% rename from performance/src/aphrodite.js rename to benchmarks/src/aphrodite.js diff --git a/performance/src/components/AppText/index.js b/benchmarks/src/components/AppText/index.js similarity index 100% rename from performance/src/components/AppText/index.js rename to benchmarks/src/components/AppText/index.js diff --git a/performance/src/components/AspectRatio/index.js b/benchmarks/src/components/AspectRatio/index.js similarity index 100% rename from performance/src/components/AspectRatio/index.js rename to benchmarks/src/components/AspectRatio/index.js diff --git a/performance/src/components/Box/aphrodite.js b/benchmarks/src/components/Box/aphrodite.js similarity index 100% rename from performance/src/components/Box/aphrodite.js rename to benchmarks/src/components/Box/aphrodite.js diff --git a/performance/src/components/Box/css-modules.js b/benchmarks/src/components/Box/css-modules.js similarity index 100% rename from performance/src/components/Box/css-modules.js rename to benchmarks/src/components/Box/css-modules.js diff --git a/performance/src/components/Box/glamor.js b/benchmarks/src/components/Box/glamor.js similarity index 100% rename from performance/src/components/Box/glamor.js rename to benchmarks/src/components/Box/glamor.js diff --git a/performance/src/components/Box/jss.js b/benchmarks/src/components/Box/jss.js similarity index 100% rename from performance/src/components/Box/jss.js rename to benchmarks/src/components/Box/jss.js diff --git a/performance/src/components/Box/react-native-stylesheet.js b/benchmarks/src/components/Box/react-native-stylesheet.js similarity index 100% rename from performance/src/components/Box/react-native-stylesheet.js rename to benchmarks/src/components/Box/react-native-stylesheet.js diff --git a/performance/src/components/Box/react-native.js b/benchmarks/src/components/Box/react-native.js similarity index 100% rename from performance/src/components/Box/react-native.js rename to benchmarks/src/components/Box/react-native.js diff --git a/performance/src/components/Box/reactxp.js b/benchmarks/src/components/Box/reactxp.js similarity index 100% rename from performance/src/components/Box/reactxp.js rename to benchmarks/src/components/Box/reactxp.js diff --git a/performance/src/components/Box/styled-components.js b/benchmarks/src/components/Box/styled-components.js similarity index 100% rename from performance/src/components/Box/styled-components.js rename to benchmarks/src/components/Box/styled-components.js diff --git a/performance/src/components/Box/styles.css b/benchmarks/src/components/Box/styles.css similarity index 100% rename from performance/src/components/Box/styles.css rename to benchmarks/src/components/Box/styles.css diff --git a/performance/src/components/Box/styletron.js b/benchmarks/src/components/Box/styletron.js similarity index 100% rename from performance/src/components/Box/styletron.js rename to benchmarks/src/components/Box/styletron.js diff --git a/performance/src/components/GridView/index.js b/benchmarks/src/components/GridView/index.js similarity index 100% rename from performance/src/components/GridView/index.js rename to benchmarks/src/components/GridView/index.js diff --git a/performance/src/components/Icons/DirectMessage.js b/benchmarks/src/components/Icons/DirectMessage.js similarity index 100% rename from performance/src/components/Icons/DirectMessage.js rename to benchmarks/src/components/Icons/DirectMessage.js diff --git a/performance/src/components/Icons/Heart.js b/benchmarks/src/components/Icons/Heart.js similarity index 100% rename from performance/src/components/Icons/Heart.js rename to benchmarks/src/components/Icons/Heart.js diff --git a/performance/src/components/Icons/Reply.js b/benchmarks/src/components/Icons/Reply.js similarity index 100% rename from performance/src/components/Icons/Reply.js rename to benchmarks/src/components/Icons/Reply.js diff --git a/performance/src/components/Icons/Retweet.js b/benchmarks/src/components/Icons/Retweet.js similarity index 100% rename from performance/src/components/Icons/Retweet.js rename to benchmarks/src/components/Icons/Retweet.js diff --git a/performance/src/components/Icons/styles.js b/benchmarks/src/components/Icons/styles.js similarity index 100% rename from performance/src/components/Icons/styles.js rename to benchmarks/src/components/Icons/styles.js diff --git a/performance/src/components/NestedTree/index.js b/benchmarks/src/components/NestedTree/index.js similarity index 100% rename from performance/src/components/NestedTree/index.js rename to benchmarks/src/components/NestedTree/index.js diff --git a/performance/src/components/Tweet/index.js b/benchmarks/src/components/Tweet/index.js similarity index 100% rename from performance/src/components/Tweet/index.js rename to benchmarks/src/components/Tweet/index.js diff --git a/performance/src/components/TweetAction/index.js b/benchmarks/src/components/TweetAction/index.js similarity index 100% rename from performance/src/components/TweetAction/index.js rename to benchmarks/src/components/TweetAction/index.js diff --git a/performance/src/components/TweetActionsBar/index.js b/benchmarks/src/components/TweetActionsBar/index.js similarity index 100% rename from performance/src/components/TweetActionsBar/index.js rename to benchmarks/src/components/TweetActionsBar/index.js diff --git a/performance/src/components/TweetText/index.js b/benchmarks/src/components/TweetText/index.js similarity index 100% rename from performance/src/components/TweetText/index.js rename to benchmarks/src/components/TweetText/index.js diff --git a/performance/src/components/TweetTextPart/index.js b/benchmarks/src/components/TweetTextPart/index.js similarity index 100% rename from performance/src/components/TweetTextPart/index.js rename to benchmarks/src/components/TweetTextPart/index.js diff --git a/performance/src/components/UserAvatar/index.js b/benchmarks/src/components/UserAvatar/index.js similarity index 100% rename from performance/src/components/UserAvatar/index.js rename to benchmarks/src/components/UserAvatar/index.js diff --git a/performance/src/components/UserNames/index.js b/benchmarks/src/components/UserNames/index.js similarity index 100% rename from performance/src/components/UserNames/index.js rename to benchmarks/src/components/UserNames/index.js diff --git a/performance/src/components/View/aphrodite.js b/benchmarks/src/components/View/aphrodite.js similarity index 100% rename from performance/src/components/View/aphrodite.js rename to benchmarks/src/components/View/aphrodite.js diff --git a/performance/src/components/View/css-modules.js b/benchmarks/src/components/View/css-modules.js similarity index 100% rename from performance/src/components/View/css-modules.js rename to benchmarks/src/components/View/css-modules.js diff --git a/performance/src/components/View/glamor.js b/benchmarks/src/components/View/glamor.js similarity index 100% rename from performance/src/components/View/glamor.js rename to benchmarks/src/components/View/glamor.js diff --git a/performance/src/components/View/jss.js b/benchmarks/src/components/View/jss.js similarity index 100% rename from performance/src/components/View/jss.js rename to benchmarks/src/components/View/jss.js diff --git a/performance/src/components/View/react-native-stylesheet.js b/benchmarks/src/components/View/react-native-stylesheet.js similarity index 100% rename from performance/src/components/View/react-native-stylesheet.js rename to benchmarks/src/components/View/react-native-stylesheet.js diff --git a/performance/src/components/View/styled-components.js b/benchmarks/src/components/View/styled-components.js similarity index 100% rename from performance/src/components/View/styled-components.js rename to benchmarks/src/components/View/styled-components.js diff --git a/performance/src/components/View/styles.css b/benchmarks/src/components/View/styles.css similarity index 100% rename from performance/src/components/View/styles.css rename to benchmarks/src/components/View/styles.css diff --git a/performance/src/components/View/styletron.js b/benchmarks/src/components/View/styletron.js similarity index 100% rename from performance/src/components/View/styletron.js rename to benchmarks/src/components/View/styletron.js diff --git a/performance/src/components/theme.js b/benchmarks/src/components/theme.js similarity index 100% rename from performance/src/components/theme.js rename to benchmarks/src/components/theme.js diff --git a/performance/src/css-modules.js b/benchmarks/src/css-modules.js similarity index 100% rename from performance/src/css-modules.js rename to benchmarks/src/css-modules.js diff --git a/performance/src/glamor.js b/benchmarks/src/glamor.js similarity index 100% rename from performance/src/glamor.js rename to benchmarks/src/glamor.js diff --git a/performance/src/jss.js b/benchmarks/src/jss.js similarity index 100% rename from performance/src/jss.js rename to benchmarks/src/jss.js diff --git a/performance/src/react-native-stylesheet.js b/benchmarks/src/react-native-stylesheet.js similarity index 100% rename from performance/src/react-native-stylesheet.js rename to benchmarks/src/react-native-stylesheet.js diff --git a/performance/src/react-native.js b/benchmarks/src/react-native.js similarity index 100% rename from performance/src/react-native.js rename to benchmarks/src/react-native.js diff --git a/performance/src/reactxp.js b/benchmarks/src/reactxp.js similarity index 100% rename from performance/src/reactxp.js rename to benchmarks/src/reactxp.js diff --git a/performance/src/styled-components.js b/benchmarks/src/styled-components.js similarity index 100% rename from performance/src/styled-components.js rename to benchmarks/src/styled-components.js diff --git a/performance/src/styletron.js b/benchmarks/src/styletron.js similarity index 100% rename from performance/src/styletron.js rename to benchmarks/src/styletron.js diff --git a/performance/tests/renderDeepTree.js b/benchmarks/tests/renderDeepTree.js similarity index 100% rename from performance/tests/renderDeepTree.js rename to benchmarks/tests/renderDeepTree.js diff --git a/performance/tests/renderTweet.js b/benchmarks/tests/renderTweet.js similarity index 100% rename from performance/tests/renderTweet.js rename to benchmarks/tests/renderTweet.js diff --git a/performance/tests/renderWideTree.js b/benchmarks/tests/renderWideTree.js similarity index 100% rename from performance/tests/renderWideTree.js rename to benchmarks/tests/renderWideTree.js diff --git a/performance/webpack.config.js b/benchmarks/webpack.config.js similarity index 100% rename from performance/webpack.config.js rename to benchmarks/webpack.config.js diff --git a/performance/yarn.lock b/benchmarks/yarn.lock similarity index 100% rename from performance/yarn.lock rename to benchmarks/yarn.lock diff --git a/docs/guides/style.md b/docs/guides/style.md index 8cc7c3c3..5528fdd8 100644 --- a/docs/guides/style.md +++ b/docs/guides/style.md @@ -192,7 +192,7 @@ inline styles. All this allows React Native for Web to support the rich functionality of React Native styles (including RTL layouts and `setNativeProps`) while providing one -of the [fastest](https://github.com/necolas/react-native-web/blob/master/performance/README.md), +of the [fastest](https://github.com/necolas/react-native-web/blob/master/benchmarks/README.md), safest, and most efficient styles-in-JavaScript solutions. ## FAQs diff --git a/package.json b/package.json index f679ed38..3fe6d7c6 100644 --- a/package.json +++ b/package.json @@ -9,16 +9,16 @@ "!**/__tests__" ], "scripts": { + "benchmarks": "cd benchmarks && yarn && webpack && open index.html", "build": "del ./dist && mkdir dist && babel src -d dist --ignore **/__tests__", "build:examples": "build-storybook -o dist-examples -c ./examples/.storybook", - "build:performance": "cd performance && yarn && webpack", "build:umd": "webpack --config webpack.config.js --sort-assets-by --progress", "deploy:examples": "git checkout gh-pages && rm -rf ./storybook && mv dist-examples storybook && git add -A && git commit -m \"Storybook deploy\" && git push origin gh-pages && git checkout -", "examples": "start-storybook -p 9001 -c ./examples/.storybook --dont-track", "flow": "flow", - "fmt": "find examples performance src -name '*.js' | grep -v -E '(node_modules|dist)' | xargs npm run fmt:cmd", + "fmt": "find benchmarks examples src -name '*.js' | grep -v -E '(node_modules|dist)' | xargs npm run fmt:cmd", "fmt:cmd": "prettier --print-width=100 --single-quote --write", - "lint": "npm run lint:cmd -- examples performance src", + "lint": "npm run lint:cmd -- benchmarks examples src", "lint:cmd": "eslint --fix --ignore-path .gitignore", "precommit": "lint-staged", "release": "npm run build && npm run build:umd && npm publish",