This file contains hidden or 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
| async function starting() { | |
| print.info(`creating a react project`) | |
| } | |
| module.exports = { | |
| name: 'init', | |
| alias: ['init'], | |
| run: async (toolbox: GluegunToolbox) => { | |
| /** | |
| * initing global/local variables |
This file contains hidden or 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
| Machine({ | |
| id: 'authentication', | |
| initial: 'unauthorized', | |
| context: { | |
| user: null, | |
| error: null, | |
| }, | |
| states: { | |
| unauthorized: { | |
| on: { |
This file contains hidden or 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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions | |
| // - XState (all XState exports) |
This file contains hidden or 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
| module.exports = { | |
| presets: ['module:metro-react-native-babel-preset'], | |
| plugins: [ | |
| [ | |
| require.resolve('babel-plugin-module-resolver'), | |
| { | |
| alias: { | |
| '@mycooluilib/assets': './src/assets', | |
| '@mycooluilib/components': './src/components', | |
| '@mycooluilib/utils': './src/utils', |
This file contains hidden or 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
| import {AppRegistry} from 'react-native'; | |
| import {getStorybookUI, configure} from '@storybook/react-native'; | |
| import {loadStories} from './storyLoader'; | |
| import './rn-addons'; | |
| // import stories | |
| configure(() => { | |
| loadStories(); | |
| }, module); |
This file contains hidden or 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
| { | |
| "extends": "./tsconfig.json", | |
| "compilerOptions": { | |
| "jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ | |
| "declaration": true, /* Generates corresponding '.d.ts' file. */ | |
| "sourceMap": true, /* Generates corresponding '.map' file. */ | |
| "outDir": "./build", /* Redirect output structure to the directory. */ | |
| "noEmit": false, /* Do not emit outputs. */ | |
| "skipLibCheck": true |
This file contains hidden or 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
| /** | |
| * @format | |
| */ | |
| import {AppRegistry} from 'react-native'; | |
| import App from './storybook'; | |
| import {name as appName} from './app.json'; | |
| AppRegistry.registerComponent(appName, () => App); |