Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

Commit

Permalink
Solve the global npm module dependency problem
Browse files Browse the repository at this point in the history
  • Loading branch information
kongliangzhong committed Nov 9, 2017
1 parent 6ab969d commit ea85670
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,14 @@ npm install --global --production windows-build-tools
Then run the following commands from project's root directory:

```
npm install -g [email protected]
npm install -g [email protected]
npm install -g [email protected]
npm install
npm run compile
```

## Run Unit Tests
* run `npm run testrpc` from project's root directory in terminal.
* run `npm run test` from project's root directory in another terminal window.

* run single test: `npm run test -- transpiled/test/xxx.js`

## Run Unit Tests inside Docker

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"test": "test"
},
"scripts": {
"transpile": "rm -rf ./transpiled; copyfiles ./build/**/* ./transpiled; tsc",
"pretest": "solium --dir contracts",
"test": "npm run transpile; truffle test",
"transpile": "rm -rf ./transpiled; copyfiles ./build/**/* ./transpiled; ./node_modules/.bin/tsc",
"pretest": "./node_modules/.bin/solium --dir contracts",
"test": "npm run transpile; ./node_modules/.bin/truffle test",
"docker": "docker-compose up --build --abort-on-container-exit; docker-compose logs -f test",
"testdocker": "npm run transpile; truffle test --network docker",
"compile": "rm -rf build/contracts; truffle compile",
"migrate": "npm run transpile; truffle migrate",
"testdocker": "npm run transpile; ./node_modules/.bin/truffle test --network docker",
"compile": "rm -rf build/contracts; ./node_modules/.bin/truffle compile",
"migrate": "npm run transpile; ./node_modules/.bin/truffle migrate",
"deploy": "npm run migrate --network kovan",
"testrpc": "./testrpc.sh"
"testrpc": "./node_modules/.bin/testrpc"
},
"license": "ISC",
"devDependencies": {
Expand All @@ -27,9 +27,9 @@
"copyfiles": "^1.2.0",
"dirty-chai": "^2.0.0",
"ethereumjs-testrpc": "6.0.1",
"truffle": "4.0.1",
"solc": "0.4.18",
"solium": "^1.0.3",
"truffle": "^4.0.1",
"typescript": "2.4.2",
"web3-typescript-typings": "0.0.3",
"zeppelin-solidity": "^1.2.0"
Expand Down

0 comments on commit ea85670

Please sign in to comment.