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
Show hidden characters
| { | |
| ... | |
| "resolutions": { | |
| "react": "~16.11.0", | |
| "react-dom": "~16.11.0" | |
| } | |
| } |
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
| export * from "./components/XPButton"; |
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
| $ mkdir docs # Create folder for storybook stories | |
| $ mkdir src # Create folder for component library | |
| $ touch src/index.ts # Create entry point for component library |
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
| $ mkdir .storybook # Create storybook folder | |
| $ touch .storybook/main.js # Create main entry point for storybook |
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
| # Inside of the ui folder, otherwise you'll need to prefix it by yarn workspace @xproduct/ui add ... | |
| $ yarn add react-native-web@~0.11.7 | |
| $ yarn add --peer react@~16.11.0\ | |
| react-dom@~16.11.0\ | |
| react-native@~0.62.2 | |
| $ yarn add --dev @storybook/react\ | |
| react@~16.11.0\ | |
| react-dom@~16.11.0\ | |
| react-native@~0.62.2\ | |
| @types/react-native@~0.62.2\ |
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
| { | |
| # ... | |
| "scripts": { | |
| "dev": "tsc -p tsconfig.build.json --watch", | |
| "dev:docs": "start-storybook -p 4000", | |
| "clean": "rm -rf ./dist && rm -rf ./build", | |
| "build": "tsc -p tsconfig.build.json && build-storybook -c .storybook -o build" | |
| } | |
| } |
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
| $ yarn init | |
| # Name it @xproduct/ui | |
| # Set the entrypoint (main) to dist/index.js | |
| # Set the version to 0.1.0 | |
| # Make it private: 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
| $ mkdir libraries/ui && cd libraries/ui |
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
| $ yarn workspace @xproduct/mobile add expo-yarn-wokspaces -D |