A visual management tool for React/ React Native components. https://github.com/SeanChenU/component_wall
Add comments with
@cpn-
prefix in your component .js file
Result
As the React/ React Native project getting larger, the components will soon become unmanageble. Usually requires developer spend extra hours on document. So we came up a more automatic way to manage them.
The component wall shows:
- name of the components class
- screenshots
- description
- tag
npm install -g component-wall
By adding the following comments with @cpn-
to your component .js file, it will automatically display on Component Wall.
Add
// @cpn-scr
for screenshot of component
Add
// @cpn-des
for description of compoent
Add
// @cpn-tag
for tags of component (underconstruction)
Note: for screenshot links, we use Evernote Skitch. It's a great tool for screenshots and notation. Also it can upload image to its cloud and generate link for it. Press
cmd + shift + 5
to start clipping screenshot and presscmd + /
to copy the image link. Make sure you select the 'Direct Image URL' option for image link copy.
Go to your project root directory or any folder that contains your component .js files
run
cpnwall
Open
http://localhost:7008
If you have any idea or thoughts, feel free to say hi sean@appar.com.tw