forked from elderfo/react-native-storybook-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
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 elderfo#13 from Naturalclar/feature/addScaffdog
Add Scaffdog
- Loading branch information
Showing
7 changed files
with
1,875 additions
and
60 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,51 @@ | ||
--- | ||
name: "atom" | ||
description: "Atom component template" | ||
message: "Please enter the name of component to be created" | ||
root: "./src/atoms" | ||
output: "**/*" | ||
ignore: [] | ||
--- | ||
|
||
# `{{ input }}.tsx` | ||
|
||
```jsx | ||
import * as React from 'react' | ||
import { View, StyleSheet } from 'react-native' | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1 | ||
} | ||
}) | ||
|
||
interface Props {} | ||
|
||
const {{ input }} = ({}: Props) => ( | ||
<View style={styles.container}></View> | ||
) | ||
|
||
class {{ input }} extends React.Component<Props> { | ||
render() { | ||
return ( | ||
<View style={styles.container}> | ||
</View> | ||
) | ||
} | ||
} | ||
|
||
export default {{ input }} | ||
|
||
``` | ||
|
||
# `{{ input }}.story.tsx` | ||
|
||
```jsx | ||
import * as React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import {{ input }} from './{{input}}' | ||
|
||
storiesOf("atoms", module).add("{{input}}", () => ( | ||
<{{ input }} /> | ||
)); | ||
``` |
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,51 @@ | ||
--- | ||
name: "molecule" | ||
description: "molecule component template" | ||
message: "Please enter the name of component to be created" | ||
root: "./src/molecules" | ||
output: "**/*" | ||
ignore: [] | ||
--- | ||
|
||
# `{{ input }}.tsx` | ||
|
||
```jsx | ||
import * as React from 'react' | ||
import { View, StyleSheet } from 'react-native' | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1 | ||
} | ||
}) | ||
|
||
interface Props {} | ||
|
||
const {{ input }} = ({}: Props) => ( | ||
<View style={styles.container}></View> | ||
) | ||
|
||
class {{ input }} extends React.Component<Props> { | ||
render() { | ||
return ( | ||
<View style={styles.container}> | ||
</View> | ||
) | ||
} | ||
} | ||
|
||
export default {{ input }} | ||
|
||
``` | ||
|
||
# `{{ input }}.story.tsx` | ||
|
||
```jsx | ||
import * as React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import {{ input }} from './{{input}}' | ||
|
||
storiesOf("molecules", module).add("{{input}}", () => ( | ||
<{{ input }} /> | ||
)); | ||
``` |
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,51 @@ | ||
--- | ||
name: "organism" | ||
description: "organism component template" | ||
message: "Please enter the name of component to be created" | ||
root: "./src/organisms" | ||
output: "**/*" | ||
ignore: [] | ||
--- | ||
|
||
# `{{ input }}.tsx` | ||
|
||
```jsx | ||
import * as React from 'react' | ||
import { View, StyleSheet } from 'react-native' | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1 | ||
} | ||
}) | ||
|
||
interface Props {} | ||
|
||
const {{ input }} = ({}: Props) => ( | ||
<View style={styles.container}></View> | ||
) | ||
|
||
class {{ input }} extends React.Component<Props> { | ||
render() { | ||
return ( | ||
<View style={styles.container}> | ||
</View> | ||
) | ||
} | ||
} | ||
|
||
export default {{ input }} | ||
|
||
``` | ||
|
||
# `{{ input }}.story.tsx` | ||
|
||
```jsx | ||
import * as React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import {{ input }} from './{{input}}' | ||
|
||
storiesOf("organisms", module).add("{{input}}", () => ( | ||
<{{ input }} /> | ||
)); | ||
``` |
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,51 @@ | ||
--- | ||
name: "screen" | ||
description: "screen component template" | ||
message: "Please enter the name of component to be created" | ||
root: "./src/screens" | ||
output: "**/*" | ||
ignore: [] | ||
--- | ||
|
||
# `{{ input }}.tsx` | ||
|
||
```jsx | ||
import * as React from 'react' | ||
import { View, StyleSheet } from 'react-native' | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1 | ||
} | ||
}) | ||
|
||
interface Props {} | ||
|
||
const {{ input }} = ({}: Props) => ( | ||
<View style={styles.container}></View> | ||
) | ||
|
||
class {{ input }} extends React.Component<Props> { | ||
render() { | ||
return ( | ||
<View style={styles.container}> | ||
</View> | ||
) | ||
} | ||
} | ||
|
||
export default {{ input }} | ||
|
||
``` | ||
|
||
# `{{ input }}.story.tsx` | ||
|
||
```jsx | ||
import * as React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import {{ input }} from './{{input}}' | ||
|
||
storiesOf("sceens", module).add("{{input}}", () => ( | ||
<{{ input }} /> | ||
)); | ||
``` |
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,51 @@ | ||
--- | ||
name: "template" | ||
description: "template component template" | ||
message: "Please enter the name of component to be created" | ||
root: "./src/templates" | ||
output: "**/*" | ||
ignore: [] | ||
--- | ||
|
||
# `{{ input }}.tsx` | ||
|
||
```jsx | ||
import * as React from 'react' | ||
import { View, StyleSheet } from 'react-native' | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1 | ||
} | ||
}) | ||
|
||
interface Props {} | ||
|
||
const {{ input }} = ({}: Props) => ( | ||
<View style={styles.container}></View> | ||
) | ||
|
||
class {{ input }} extends React.Component<Props> { | ||
render() { | ||
return ( | ||
<View style={styles.container}> | ||
</View> | ||
) | ||
} | ||
} | ||
|
||
export default {{ input }} | ||
|
||
``` | ||
|
||
# `{{ input }}.story.tsx` | ||
|
||
```jsx | ||
import * as React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import {{ input }} from './{{input}}' | ||
|
||
storiesOf("templates", module).add("{{input}}", () => ( | ||
<{{ input }} /> | ||
)); | ||
``` |
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
Oops, something went wrong.