WIP: Use yarn instead of npm #98

Closed
fsmanuel wants to merge 1 commits from chore/yarn into master
14 changed files with 40829 additions and 71735 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ node_modules
**/node_modules **/node_modules
.ganache-db .ganache-db
.tm_properties .tm_properties
yarn-error.log

View File

@ -16,12 +16,12 @@ framework](http://truffleframework.com/) for some things.
All requirements are defined in `package.json`. All requirements are defined in `package.json`.
$ npm install $ yarn install
Each of the aragon apps are separate packages: Each of the aragon apps are separate packages:
$ cd apps/[app] $ cd apps/[app]
$ npm install $ yarn install
You can use `npm run install-all` to install all app dependencies at once. You can use `npm run install-all` to install all app dependencies at once.
@ -52,7 +52,7 @@ Ethereum RPC port.
2. Deploy each app to the devchain 2. Deploy each app to the devchain
(make sure you've run `npm install` for every app - see installation) (make sure you've run `yarn install` for every app - see installation)
$ npm run deploy:apps $ npm run deploy:apps
3. Deploy a new KreditsKit and create a new DAO with the latest app versions 3. Deploy a new KreditsKit and create a new DAO with the latest app versions
@ -168,7 +168,7 @@ configured through the `KREDITS_KIT` environment variable.
### deploy-apps.sh ### deploy-apps.sh
Runs `npm install` for each app and publishes a new version. Runs `yarn install` for each app and publishes a new version.
$ ./scripts/deploy-apps.sh $ ./scripts/deploy-apps.sh
or or

File diff suppressed because it is too large Load Diff

8145
apps/contribution/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

8145
apps/contributor/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

8145
apps/proposal/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

8145
apps/token/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

15821
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@
"test": "test" "test": "test"
}, },
"scripts": { "scripts": {
"install-all": "./scripts/every-app.sh \"npm install\"", "install-all": "./scripts/every-app.sh \"yarn install\"",
"build-json": "npm run compile-contracts && node ./scripts/build-json.js", "build-json": "npm run compile-contracts && node ./scripts/build-json.js",
"repl": "truffle exec scripts/repl.js", "repl": "truffle exec scripts/repl.js",
"seeds": "truffle exec scripts/seeds.js", "seeds": "truffle exec scripts/seeds.js",

View File

@ -10,7 +10,7 @@ echo "Setting up each aragon app in ./apps"
echo "a new app version will be deployed" echo "a new app version will be deployed"
echo "----" echo "----"
./scripts/every-app.sh "npm install" ./scripts/every-app.sh "yarn install"
./scripts/every-app.sh "aragon apm publish major" ./scripts/every-app.sh "aragon apm publish major"
echo "Done, new versions of all apps deployed" echo "Done, new versions of all apps deployed"

8242
yarn.lock Normal file

File diff suppressed because it is too large Load Diff