Skip to content

Commit

Permalink
Merge pull request #52 from infra-fe/feature-v4.18.5-rollback
Browse files Browse the repository at this point in the history
doc: create doc about 'how to attribute'
  • Loading branch information
zhanglei66 committed Feb 28, 2022
2 parents 0849ea4 + 69941e0 commit 7be29ca
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
18 changes: 18 additions & 0 deletions contribution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# How to contribute

If you want to contribute code to Infrad, you can follow the process below for your development and submission

### Process

1. Check out the development branch from the master branch, for example: `feature-xxxx`
2. Develop under your own branch
3. After development is complete, run the following command in the console
> `$ yarn test-all-develop`
4. If there is no problem, you can pull the latest content of the master branch to prevent your code from not including the latest changes of master, and then submit your code
5. Submit PR (MR) to the master branch on the github site, and fill in according to the PR template (type and changelog lists are required, others are optional)

### Feedback

If you still have questions about how to contribute code, feel free to contact us on SeaTalk

> `taofeng.yang@shopee.com lay.zhang@shopee.com`
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"test": "jest --config .jest.js --cache=false",
"test:update": "jest --config .jest.js --cache=false -u",
"test-all": "sh -e ./scripts/test-all.sh",
"test-all-develop": "sh -e ./scripts/test-all-develop.sh",
"test-node": "jest --config .jest.node.js --cache=false",
"tsc": "tsc --noEmit",
"site:test": "jest --config .jest.site.js --cache=false --force-exit",
Expand Down
37 changes: 37 additions & 0 deletions scripts/test-all-develop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/sh

# echo "[TEST ALL] test changlog"
# node ./scripts/check-version-md.js

echo "[TEST ALL] lint"
npm run lint

if [ "$1" != "--skip-build" ]; then
echo "[TEST ALL] dist"
npm run dist

echo "[TEST ALL] compile"
npm run compile
else
echo "Skip build..."
fi

echo "[TEST ALL] dekko dist"
node ./tests/dekko/dist.test.js

echo "[TEST ALL] dist test"
LIB_DIR=dist npm test

echo "[TEST ALL] dekko lib"

echo "[TEST ALL] test es"
LIB_DIR=es npm test

echo "[TEST ALL] test lib"
LIB_DIR=lib npm test

echo "[TEST ALL] test"
npm test

echo "[TEST ALL] test node"
npm run test-node

0 comments on commit 7be29ca

Please sign in to comment.