Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.publish
static/css/*.css*
node_modules/
package-lock.json
npm-debug.log
rev-manifest.json
coverage
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,38 @@ Visit [wiki](https://github.com/binary-com/binary-bot/wiki) for more info.
git clone https://github.com/binary-com/binary-bot.git
cd binary-bot
git checkout dev
yarn install
yarn start
npm install
npm run start
```

**Note:** Please branch your work from dev, and make sure your local dev is up-to-date with upstream

### Deploying to local gh-pages

```
yarn deploy [branchname] # can contain /
npm run deploy [branchname] # can contain /
```

## Deployment/Release

```
gulp test-deploy # for local test deploy
yarn deploy <branch-name> # to deploy a branch (eg., beta) and master
yarn deploy-all # to deploy master, translations and beta
npm run deploy <branch-name> # to deploy a branch (eg., beta) and master
npm run deploy-all # to deploy master, translations and beta
```

## Publishing a new version

```
yarn version --new-version patch
npm run version --new-version patch
npm publish
```

## To update to latest version

```
git pull --rebase upstream dev
yarn install
npm install
```

## Running the CLI command
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@
"scripts": {
"start": "gulp watch",
"test": "eslint src/ && jest -w 10 --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"gen-branch": "gb() { b=$1; test -z $b && exit 0; (git branch | grep $b) || exit 1; git stash; git checkout $b; yarn install --force --frozen-lockfile; gulp build-min; rm -rf branch/$b; mkdir -p branch/$b ; cp -r www/ branch/$b;}; gb",
"deploy": "d() { yarn gen-branch $1 || exit 1; git checkout master ; yarn install --force --frozen-lockfile; gulp deploy;}; d",
"deploy-all": "yarn gen-branch beta; yarn gen-branch translation; yarn deploy",
"gen-branch": "gb() { b=$1; test -z $b && exit 0; (git branch | grep $b) || exit 1; git stash; git checkout $b; rm -rf node_modules/; rm package-lock.json;npm install; gulp build-min; rm -rf branch/$b; mkdir -p branch/$b ; cp -r www/ branch/$b;}; gb",
"deploy": "d() { npm run gen-branch $1 || exit 1; git checkout master;rm -rf node_modules/;rm package-lock.json; npm install; gulp deploy;}; d",
"deploy-all": "npm run gen-branch beta; npm run gen-branch translation; npm run deploy",
"build": "webpack --config webpack.config.cli.js",
"prepublishOnly": "yarn build",
"prepublishOnly": "npm run build",
"precommit": "lint-staged"
},
"author": "Binary.com",
Expand Down