Skip to content

Commit

Permalink
Merge pull request #313 from ipfs/docker-build
Browse files Browse the repository at this point in the history
Adds `npm run docker-build` command, part of #306  effort
  • Loading branch information
lidel committed Nov 20, 2017
2 parents 6c97c94 + c161f93 commit 3f010d8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ firefox
cache
build
npm-debug.log
yarn-error.log
crowdin.yml
.*~
add-on/dist
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ Each `npm` task can be run separately. The most useful ones are:

- `npm install` -- install all NPM dependencies
- `npm run build` -- build the add-on (copy external libraries, create `.zip` bundle)
- `npm test` -- run entire test suite (both unit and functional tests)
- `npm test:unit` -- run unit tests only
- `npm test:functional` -- run functional tests only
- `npm run yarn-build` -- fast install+build with yarn
- `npm run docker-build` -- reproducible build using yarn.lock and specific version of yarn and node
- `npm test` -- run entire test suite
- `npm run lint` -- check for potential syntax problems (run all linters)
- `npm run lint:standard` -- run [standard](http://standardjs.com) linter ([IPFS JavaScript projects default to standard code style](https://github.com/ipfs/community/blob/master/js-project-guidelines.md#linting--code-style))
- `npm run lint:web-ext` -- run [addons-linter](https://github.com/mozilla/addons-linter) shipped with `web-ext` tool
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"postmerge": "run-s postcheckout",
"precommit": "run-s -s clean build lint",
"prepush": "run-s -s precommit test build",
"firefox": "web-ext run -s add-on/ --browser-console"
"firefox": "web-ext run -s add-on/ --browser-console",
"yarn-build": "npx yarn@1.2.1 && npx yarn@1.2.1 build",
"docker-build": "docker run -it --rm --name ipfs-companion-build -v \"$PWD\":/src -w /src node:8.9.1 /bin/bash -c \"npm run yarn-build\""
},
"private": true,
"preferGlobal": false,
Expand Down

0 comments on commit 3f010d8

Please sign in to comment.