From 2df547e2296876e2355d561716fcdcfd117129c0 Mon Sep 17 00:00:00 2001 From: fushen Date: Tue, 21 Jan 2020 11:43:05 +0800 Subject: [PATCH 1/3] fix: readme --- ADDONS_SUPPORT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ADDONS_SUPPORT.md b/ADDONS_SUPPORT.md index 0ad75e47363f..2beb525ba5cf 100644 --- a/ADDONS_SUPPORT.md +++ b/ADDONS_SUPPORT.md @@ -1,6 +1,6 @@ ## Addon / Framework Support Table -| | [React](app/react)|[React Native](app/react-native)|[Vue](app/vue)|[Angular](app/angular)| [Polymer](app/polymer)| [Mithril](app/mithril)| [HTML](app/html)| [Marko](app/marko)| [Svelte](app/svelte)| [Riot](app/riot)| [Ember](app/ember)| [Preact](app/preact)| [Rax](app/rax) | +| [React](app/react)|[React Native](app/react-native)|[Vue](app/vue)|[Angular](app/angular)| [Polymer](app/polymer)| [Mithril](app/mithril)| [HTML](app/html)| [Marko](app/marko)| [Svelte](app/svelte)| [Riot](app/riot)| [Ember](app/ember)| [Preact](app/preact)| [Rax](app/rax) | | ----------- |:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:| |[a11y](addons/a11y) |+| |+|+|+|+|+|+|+|+|+|+|+| |[actions](addons/actions) |+|+*|+|+|+|+|+|+|+|+|+|+|+| From 7c08c48842852319272bfe093ecd365c575f5ee8 Mon Sep 17 00:00:00 2001 From: fushen Date: Tue, 21 Jan 2020 12:08:34 +0800 Subject: [PATCH 2/3] chore: remove rax-button --- lib/cli/generators/RAX/index.js | 1 - .../{1-Button.stories.js => 1-View.stories.js} | 13 +++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) rename lib/cli/generators/RAX/template-csf/stories/{1-Button.stories.js => 1-View.stories.js} (60%) diff --git a/lib/cli/generators/RAX/index.js b/lib/cli/generators/RAX/index.js index 120a495c7594..0203feff8b20 100644 --- a/lib/cli/generators/RAX/index.js +++ b/lib/cli/generators/RAX/index.js @@ -36,7 +36,6 @@ export default async (npmOptions, { storyFormat = 'csf' }) => { packageJson.dependencies.rax = packageJson.dependencies.rax || raxVersion; // these packages are required for Welcome story - packageJson.dependencies['rax-button'] = packageJson.dependencies['rax-button'] || raxVersion; packageJson.dependencies['rax-image'] = packageJson.dependencies['rax-image'] || raxVersion; packageJson.dependencies['rax-link'] = packageJson.dependencies['rax-link'] || raxVersion; packageJson.dependencies['rax-text'] = packageJson.dependencies['rax-text'] || raxVersion; diff --git a/lib/cli/generators/RAX/template-csf/stories/1-Button.stories.js b/lib/cli/generators/RAX/template-csf/stories/1-View.stories.js similarity index 60% rename from lib/cli/generators/RAX/template-csf/stories/1-Button.stories.js rename to lib/cli/generators/RAX/template-csf/stories/1-View.stories.js index a107246db315..524da8884f88 100644 --- a/lib/cli/generators/RAX/template-csf/stories/1-Button.stories.js +++ b/lib/cli/generators/RAX/template-csf/stories/1-View.stories.js @@ -2,21 +2,22 @@ import { createElement } from 'rax'; import { action } from '@storybook/addon-actions'; import Text from 'rax-text'; +import View from 'rax-view'; export default { - title: 'Button', + title: 'View', }; export const text = () => ( - + + Hello view + ); export const Emoji = () => ( - + ); From 58a770c195ac35365c87d64de9503c5fa2ddd496 Mon Sep 17 00:00:00 2001 From: fushen Date: Tue, 21 Jan 2020 12:16:51 +0800 Subject: [PATCH 3/3] fix: readme --- ADDONS_SUPPORT.md | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/ADDONS_SUPPORT.md b/ADDONS_SUPPORT.md index 2beb525ba5cf..fe12b10d729e 100644 --- a/ADDONS_SUPPORT.md +++ b/ADDONS_SUPPORT.md @@ -1,25 +1,25 @@ ## Addon / Framework Support Table -| [React](app/react)|[React Native](app/react-native)|[Vue](app/vue)|[Angular](app/angular)| [Polymer](app/polymer)| [Mithril](app/mithril)| [HTML](app/html)| [Marko](app/marko)| [Svelte](app/svelte)| [Riot](app/riot)| [Ember](app/ember)| [Preact](app/preact)| [Rax](app/rax) | -| ----------- |:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:|:-------:| -|[a11y](addons/a11y) |+| |+|+|+|+|+|+|+|+|+|+|+| -|[actions](addons/actions) |+|+*|+|+|+|+|+|+|+|+|+|+|+| -|[backgrounds](addons/backgrounds) |+|*|+|+|+|+|+|+|+|+|+|+|+| -|[centered](addons/centered) |+| |+|+| |+|+| |+| |+|+|+| -|[contexts](addons/contexts) |+| |+| | | | | | | | |+|+| -|[events](addons/events) |+| |+|+|+|+|+|+| | |+|+|+| -|[design assets](addons/design-assets) |+| |+|+|+|+|+|+|+|+|+|+|+| -|[graphql](addons/graphql) |+| | | | | | | | | | | || -|[google-analytics](addons/google-analytics) |+|+|+|+|+|+|+|+|+|+|+|+|+| -|[info](addons/info) |+| | | | | | | | | | | | | -|[jest](addons/jest) |+|+|+|+|+|+|+|+|+|+|+|+|+| -|[knobs](addons/knobs) |+|+*|+|+|+|+|+|+|+|+|+|+|+| -|[links](addons/links) |+|+|+|+|+|+|+| |+|+|+|+|+| -|[notes](addons/notes) |+|+*|+|+|+|+|+| |+|+|+|+|+| -|[options](addons/options) |+|+|+|+|+|+|+| |+|+|+|+|+| -|[cssresources](addons/cssresources) |+| |+|+|+|+|+|+|+|+|+|+|+| -|[storyshots](addons/storyshots) |+|+|+|+| | |+| |+|+| |+|+| -|[storysource](addons/storysource) |+| |+|+|+|+|+|+|+|+|+|+|+| -|[viewport](addons/viewport) |+| |+|+|+|+|+|+|+|+|+|+|+| +| | [React](app/react) | [React Native](app/react-native) | [Vue](app/vue) | [Angular](app/angular) | [Polymer](app/polymer) | [Mithril](app/mithril) | [HTML](app/html) | [Marko](app/marko) | [Svelte](app/svelte) | [Riot](app/riot) | [Ember](app/ember) | [Preact](app/preact) | [Rax](app/rax) | +| ------------------------------------------- | :----------------: | :------------------------------: | :------------: | :--------------------: | :--------------------: | :--------------------: | :--------------: | :----------------: | :------------------: | :--------------: | :----------------: | :------------------: | -------------- | +| [a11y](addons/a11y) | + | | + | + | + | + | + | + | + | + | + | + | + | +| [actions](addons/actions) | + | +\* | + | + | + | + | + | + | + | + | + | + | + | +| [backgrounds](addons/backgrounds) | + | \* | + | + | + | + | + | + | + | + | + | + | + | +| [centered](addons/centered) | + | | + | + | | + | + | | + | | + | + | + | +| [contexts](addons/contexts) | + | | + | | | | | | | | | + | + | +| [events](addons/events) | + | | + | + | + | + | + | + | | | + | + | + | +| [design assets](addons/design-assets) | + | | + | + | + | + | + | + | + | + | + | + | + | +| [graphql](addons/graphql) | + | | | | | | | | | | | | | +| [google-analytics](addons/google-analytics) | + | + | + | + | + | + | + | + | + | + | + | + | + | +| [info](addons/info) | + | | | | | | | | | | | | | +| [jest](addons/jest) | + | + | + | + | + | + | + | + | + | + | + | + | + | +| [knobs](addons/knobs) | + | +\* | + | + | + | + | + | + | + | + | + | + | + | +| [links](addons/links) | + | + | + | + | + | + | + | | + | + | + | + | + | +| [notes](addons/notes) | + | +\* | + | + | + | + | + | | + | + | + | + | + | +| [options](addons/options) | + | + | + | + | + | + | + | | + | + | + | + | + | +| [cssresources](addons/cssresources) | + | | + | + | + | + | + | + | + | + | + | + | + | +| [storyshots](addons/storyshots) | + | + | + | + | | | + | | + | + | | + | + | +| [storysource](addons/storysource) | + | | + | + | + | + | + | + | + | + | + | + | + | +| [viewport](addons/viewport) | + | | + | + | + | + | + | + | + | + | + | + | + | -`*` - React Native on device addon (addons/onDevice-\) +`*` - React Native on device addon (addons/onDevice-\)