Skip to content

Commit

Permalink
Add prepublish script before publishing to aragonPM
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai committed Jul 5, 2019
1 parent 4207ef0 commit a0ee042
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 28 deletions.
9 changes: 5 additions & 4 deletions apps/agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"main": "index.js",
"scripts": {
"compile": "truffle compile",
"apm:publish:major": "aragon apm publish major",
"apm:publish:minor": "aragon apm publish minor",
"apm:publish:patch": "aragon apm publish patch",
"apm:prepublish": "npm run compile",
"apm:publish:major": "aragon apm publish major --files public/ --prepublish-script apm:prepublish",
"apm:publish:minor": "aragon apm publish minor --files public/ --prepublish-script apm:prepublish",
"apm:publish:patch": "aragon apm publish patch --files public/ --prepublish-script apm:prepublish",
"lint": "solium --dir ./contracts",
"test": "TRUFFLE_TEST=true npm run ganache-cli:test",
"test:gas": "GAS_REPORTER=true npm test",
Expand All @@ -32,7 +33,7 @@
"description": "",
"devDependencies": {
"@aragon/apps-shared-migrations": "1.0.0",
"@aragon/cli": "~5.6.0",
"@aragon/cli": "~5.10.0",
"@aragon/test-helpers": "^2.0.0",
"eth-gas-reporter": "^0.2.0",
"ethereumjs-testrpc-sc": "^6.1.6",
Expand Down
9 changes: 5 additions & 4 deletions apps/finance/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"scripts": {
"compile": "truffle compile",
"build": "cd app && npm run build",
"apm:publish:major": "aragon apm publish major --files app/build/",
"apm:publish:minor": "aragon apm publish minor --files app/build/",
"apm:publish:patch": "aragon apm publish patch --files app/build/",
"apm:prepublish": "npm run compile",
"apm:publish:major": "aragon apm publish major --files app/build/ --prepublish-script apm:prepublish",
"apm:publish:minor": "aragon apm publish minor --files app/build/ --prepublish-script apm:prepublish",
"apm:publish:patch": "aragon apm publish patch --files app/build/ --prepublish-script apm:prepublish",
"lint": "solium --dir ./contracts",
"test": "TRUFFLE_TEST=true npm run ganache-cli:test",
"test:gas": "GAS_REPORTER=true npm test",
Expand Down Expand Up @@ -39,7 +40,7 @@
"devDependencies": {
"@aragon/apps-shared-migrations": "1.0.0",
"@aragon/apps-shared-scripts": "^1.0.0",
"@aragon/cli": "~5.6.0",
"@aragon/cli": "~5.10.0",
"@aragon/test-helpers": "^2.0.0",
"eth-gas-reporter": "^0.2.0",
"ethereumjs-testrpc-sc": "^6.1.6",
Expand Down
9 changes: 5 additions & 4 deletions apps/survey/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"scripts": {
"compile": "truffle compile",
"build": "cd app && npm run build",
"apm:publish:major": "aragon apm publish major --files app/build/",
"apm:publish:minor": "aragon apm publish minor --files app/build/",
"apm:publish:patch": "aragon apm publish patch --files app/build/",
"apm:prepublish": "npm run compile",
"apm:publish:major": "aragon apm publish major --files app/build/ --prepublish-script apm:prepublish",
"apm:publish:minor": "aragon apm publish minor --files app/build/ --prepublish-script apm:prepublish",
"apm:publish:patch": "aragon apm publish patch --files app/build/ --prepublish-script apm:prepublish",
"lint": "solium --dir ./contracts",
"test": "TRUFFLE_TEST=true npm run ganache-cli:test",
"test:gas": "GAS_REPORTER=true npm test",
Expand All @@ -33,7 +34,7 @@
"devDependencies": {
"@aragon/apps-shared-migrations": "1.0.0",
"@aragon/apps-shared-scripts": "^1.0.0",
"@aragon/cli": "~5.6.0",
"@aragon/cli": "~5.10.0",
"@aragon/test-helpers": "^2.0.0",
"eth-gas-reporter": "^0.2.0",
"ethereumjs-testrpc-sc": "^6.1.6",
Expand Down
9 changes: 5 additions & 4 deletions apps/token-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"scripts": {
"compile": "truffle compile",
"build": "cd app && npm run build",
"apm:publish:major": "aragon apm publish major --files app/build/",
"apm:publish:minor": "aragon apm publish minor --files app/build/",
"apm:publish:patch": "aragon apm publish patch --files app/build/",
"apm:prepublish": "npm run compile",
"apm:publish:major": "aragon apm publish major --files app/build/ --prepublish-script apm:prepublish",
"apm:publish:minor": "aragon apm publish minor --files app/build/ --prepublish-script apm:prepublish/",
"apm:publish:patch": "aragon apm publish patch --files app/build/ --prepublish-script apm:prepublish/",
"lint": "solium --dir ./contracts",
"test": "TRUFFLE_TEST=true npm run ganache-cli:test",
"test:gas": "GAS_REPORTER=true npm test",
Expand Down Expand Up @@ -39,7 +40,7 @@
"devDependencies": {
"@aragon/apps-shared-migrations": "1.0.0",
"@aragon/apps-shared-scripts": "^1.0.0",
"@aragon/cli": "~5.6.0",
"@aragon/cli": "~5.10.0",
"@aragon/test-helpers": "^2.0.0",
"eth-gas-reporter": "^0.2.0",
"ethereumjs-testrpc-sc": "^6.1.6",
Expand Down
9 changes: 5 additions & 4 deletions apps/vault/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"main": "index.js",
"scripts": {
"compile": "truffle compile",
"apm:publish:major": "aragon apm publish major --files public/",
"apm:publish:minor": "aragon apm publish minor --files public/",
"apm:publish:patch": "aragon apm publish patch --files public/",
"apm:prepublish": "npm run compile",
"apm:publish:major": "aragon apm publish major --files public/ --prepublish-script apm:prepublish",
"apm:publish:minor": "aragon apm publish minor --files public/ --prepublish-script apm:prepublish",
"apm:publish:patch": "aragon apm publish patch --files public/ --prepublish-script apm:prepublish",
"lint": "solium --dir ./contracts",
"test": "TRUFFLE_TEST=true npm run ganache-cli:test",
"test:gas": "GAS_REPORTER=true npm test",
Expand Down Expand Up @@ -35,7 +36,7 @@
"description": "",
"devDependencies": {
"@aragon/apps-shared-migrations": "1.0.0",
"@aragon/cli": "~5.6.0",
"@aragon/cli": "~5.10.0",
"@aragon/test-helpers": "^2.0.0",
"eth-ens-namehash": "^2.0.8",
"eth-gas-reporter": "^0.2.0",
Expand Down
9 changes: 5 additions & 4 deletions apps/voting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
"scripts": {
"compile": "truffle compile",
"build": "cd app && npm run build",
"apm:publish:major": "aragon apm publish major --files app/build/",
"apm:publish:minor": "aragon apm publish minor --files app/build/",
"apm:publish:patch": "aragon apm publish patch --files app/build/",
"apm:prepublish": "npm run compile",
"apm:publish:major": "aragon apm publish major --files app/build/ --prepublish-script apm:prepublish",
"apm:publish:minor": "aragon apm publish minor --files app/build/ --prepublish-script apm:prepublish",
"apm:publish:patch": "aragon apm publish patch --files app/build/ --prepublish-script apm:prepublish",
"lint": "solium --dir ./contracts",
"test": "TRUFFLE_TEST=true npm run ganache-cli:test",
"test:gas": "GAS_REPORTER=true npm test",
Expand Down Expand Up @@ -40,7 +41,7 @@
"devDependencies": {
"@aragon/apps-shared-migrations": "1.0.0",
"@aragon/apps-shared-scripts": "^1.0.0",
"@aragon/cli": "~5.6.0",
"@aragon/cli": "~5.10.0",
"@aragon/test-helpers": "^2.0.0",
"eth-gas-reporter": "^0.2.0",
"ethereumjs-testrpc-sc": "^6.1.6",
Expand Down
9 changes: 5 additions & 4 deletions future-apps/payroll/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
"scripts": {
"compile": "truffle compile",
"build": "cd app && npm run build",
"apm:publish:major": "aragon apm publish major --files app/build/",
"apm:publish:minor": "aragon apm publish minor --files app/build/",
"apm:publish:patch": "aragon apm publish patch --files app/build/",
"apm:prepublish": "npm run compile",
"apm:publish:major": "aragon apm publish major --files app/build/ --prepublish-script apm:prepublish",
"apm:publish:minor": "aragon apm publish minor --files app/build/ --prepublish-script apm:prepublish",
"apm:publish:patch": "aragon apm publish patch --files app/build/ --prepublish-script apm:prepublish",
"lint": "solium --dir ./contracts",
"dev": "npm start -- --http localhost:8001 --http-served-from ./app/build",
"dev:reset": "npm run dev -- --reset",
Expand Down Expand Up @@ -53,7 +54,7 @@
"@aragon/apps-shared-scripts": "^1.0.0",
"@aragon/apps-token-manager": "2.0.0",
"@aragon/apps-vault": "4.0.0",
"@aragon/cli": "~5.6.0",
"@aragon/cli": "~5.10.0",
"@aragon/test-helpers": "^2.0.0",
"eth-gas-reporter": "^0.2.0",
"ethereumjs-testrpc-sc": "^6.1.6",
Expand Down

0 comments on commit a0ee042

Please sign in to comment.