Skip to content

Commit 1ac81ef

Browse files
committed
chore: improve build system, minor changes to lint config
1 parent ff9d868 commit 1ac81ef

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
},
2222
plugins: ['react'],
2323
rules: {
24+
'arrow-parens': ["error", "as-needed"],
2425
indent: ['error', 2],
2526
'linebreak-style': ['error', 'unix'],
2627
quotes: ['error', 'single'],

.prettierrc

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"trailingComma": "es5",
3-
"semi": false,
4-
"singleQuote": true,
52
"overrides": [
63
{
74
"files": ".babelrc",
85
"options": {
96
"parser": "json"
107
}
118
}
12-
]
9+
],
10+
"semi": false,
11+
"singleQuote": true,
12+
"trailingComma": "es5"
1313
}

package.json

+4-9
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
"@aragon/os": "4.2.0",
1313
"@aragon/ui": "^1.2.1",
1414
"@githubprimer/octicons-react": "^8.5.0",
15-
"axios": "^0.19.0",
1615
"bignumber.js": "^7.2.1",
1716
"codemirror": "^5.50.2",
1817
"core-js": "^3.6.4",
1918
"dompurify": "^1.0.11",
2019
"drag-tracker": "^0.4.3",
21-
"ipfs-http-client": "^30.1.3",
20+
"ipfs-http-client": "^41.0.1",
2221
"prop-types": "^15.7.2",
2322
"react-dom": "^16.8.6",
2423
"react-markdown": "^4.2.2",
@@ -105,15 +104,15 @@
105104
"publish": "aragon apm publish",
106105
"start:app": "npm run sync-assets && parcel serve app/index.html -p 8001 -d ./dist --no-cache --no-autoinstall",
107106
"start:http:template": "npm run start:http -- --template Template --template-init 0x5d94e3e7aec542ab0f9129b9a7badeb5b3ca0f77 @ARAGON_ENS 0xd526b7aba39cccf76422835e7fd5327b98ad73c9 0xf1f8aac64036cdd399886b1c157b7e3b361093f3 --template-args MyToken TKN ['\"0xb4124cEB3451635DAcedd11767f004d8a28c6eE7\"'] ['\"1000000000000000000\"'] ['\"500000000000000000\",\"150000000000000000\",\"86400\"'] --template-new-instance newTokenAndInstance",
108-
"start:http": "aragon run --http localhost:8001 --http-served-from dist",
107+
"start:http": "npm run start:ipfs -- --http localhost:8001 --http-served-from dist",
109108
"start:ipfs:template": "npm run start:ipfs -- --template template --template-init 0x5d94e3e7aec542ab0f9129b9a7badeb5b3ca0f77 @ARAGON_ENS 0xd526b7aba39cccf76422835e7fd5327b98ad73c9 0xf1f8aac64036cdd399886b1c157b7e3b361093f3 --template-args MyToken TKN ['\"0xb4124cEB3451635DAcedd11767f004d8a28c6eE7\"'] ['\"1000000000000000000\"'] ['\"500000000000000000\",\"150000000000000000\",\"86400\"'] --template-new-instance newTokenAndInstance",
110109
"start:ipfs": "aragon run --files dist",
111110
"start": "npm run start:app",
112111
"sync-assets": "copy-aragon-ui-assets -n aragon-ui ./dist && npm run copy-public-assets",
113112
"test:gas": "GAS_REPORTER=true npm test",
114113
"test:script": "ava app/src/*.test.js --verbose",
115114
"test": "cross-env TRUFFLE_TEST=true npm run ganache-cli:test",
116-
"watch:script": "parcel watch app/script.js --out-dir ./dist/ --no-hmr"
115+
"watch:script": "parcel watch app/script.js store/**/*.js --out-dir ./dist/ --no-hmr"
117116
},
118117
"repository": {
119118
"type": "git",
@@ -123,11 +122,7 @@
123122
"license": "GPL-3.0",
124123
"author": "",
125124
"browserslist": [
126-
"> 1%",
127-
"last 3 versions",
128-
"ie >= 9",
129-
"ios >= 8",
130-
"android >= 4.2"
125+
"last 2 Chrome versions"
131126
],
132127
"lint-staged": {
133128
"*.js": [

0 commit comments

Comments
 (0)