Skip to content

Commit

Permalink
chore: improve build system, minor changes to lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
ottodevs committed Jan 24, 2020
1 parent ff9d868 commit 1ac81ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = {
},
plugins: ['react'],
rules: {
'arrow-parens': ["error", "as-needed"],
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
Expand Down
8 changes: 4 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"overrides": [
{
"files": ".babelrc",
"options": {
"parser": "json"
}
}
]
],
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
"@aragon/os": "4.2.0",
"@aragon/ui": "^1.2.1",
"@githubprimer/octicons-react": "^8.5.0",
"axios": "^0.19.0",
"bignumber.js": "^7.2.1",
"codemirror": "^5.50.2",
"core-js": "^3.6.4",
"dompurify": "^1.0.11",
"drag-tracker": "^0.4.3",
"ipfs-http-client": "^30.1.3",
"ipfs-http-client": "^41.0.1",
"prop-types": "^15.7.2",
"react-dom": "^16.8.6",
"react-markdown": "^4.2.2",
Expand Down Expand Up @@ -105,15 +104,15 @@
"publish": "aragon apm publish",
"start:app": "npm run sync-assets && parcel serve app/index.html -p 8001 -d ./dist --no-cache --no-autoinstall",
"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",
"start:http": "aragon run --http localhost:8001 --http-served-from dist",
"start:http": "npm run start:ipfs -- --http localhost:8001 --http-served-from dist",
"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",
"start:ipfs": "aragon run --files dist",
"start": "npm run start:app",
"sync-assets": "copy-aragon-ui-assets -n aragon-ui ./dist && npm run copy-public-assets",
"test:gas": "GAS_REPORTER=true npm test",
"test:script": "ava app/src/*.test.js --verbose",
"test": "cross-env TRUFFLE_TEST=true npm run ganache-cli:test",
"watch:script": "parcel watch app/script.js --out-dir ./dist/ --no-hmr"
"watch:script": "parcel watch app/script.js store/**/*.js --out-dir ./dist/ --no-hmr"
},
"repository": {
"type": "git",
Expand All @@ -123,11 +122,7 @@
"license": "GPL-3.0",
"author": "",
"browserslist": [
"> 1%",
"last 3 versions",
"ie >= 9",
"ios >= 8",
"android >= 4.2"
"last 2 Chrome versions"
],
"lint-staged": {
"*.js": [
Expand Down

0 comments on commit 1ac81ef

Please sign in to comment.