- CI
- Release Flow
- I18n Workflow
- Technology Stack
- Packages Relation
- DataChannelAdapter Design
- How To Add New Icon?
We use two CIs at same time.
test.sh
: For unit testing of all packages.test-page.sh
: For building demo page.
Note: Required status checks have been enabled to ensure both CI tests are passing.
- prerelease
- run
tasks/build.sh
-npm run build
for all packages
- Version of package.json will be updated.
- Create git tags.
npm run prepack
for all projects (mcs-lite-*-web)- Publish to npm.
Further readings: I18n Workflow for React Project 中文
Extract messages from source code as PO format.
# packages/mcs-lite-mobile-web
$ yarn run extract:messages
$ yarn run extract:pot
If you forget to extract the messages, the DangerJS checker will FAIL the build in Travis CI.
Update POT file using Poedit editor.
Step 1 | Step 2 | Step 3 |
---|---|---|
The translation file will be generated automatically at mcs-lite-translation building phase ($ npm run build
).
When release, the flow will be:
npm run release
(lerna)- run
tasks/build.sh
(prerelease)npm run build
for all packages (mcs-lite-translation)
- NPM publish
npm run prepack
for all projects (mcs-lite-*-web)
Further readings: Build A Web App in MediaTek (中文)
- create-react-app
- react-router
- react-helmet
- react-motion
- redux
- redux-cycles
- styled-components
- react-storybook
- react-intl
- recompose
Step 1 | Step 2 | Step 3 |
---|---|---|
Step 4 | Step 5 |
---|---|