Skip to content

Commit

Permalink
build: update build system and tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
ottodevs committed Jan 24, 2020
1 parent a0acc27 commit bfab5ef
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 16 deletions.
19 changes: 17 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
{
"presets": [
["@babel/preset-env", { "modules": false, "useBuiltIns": false }]
["@babel/preset-env", {
"modules": false,
"targets": {
"browsers": [
"> 1%",
"last 3 versions",
"ie >= 9",
"ios >= 8",
"android >= 4.2"
]
},
"useBuiltIns": false
}]
],
"plugins": [
["styled-components", { "displayName": true }],
["babel-plugin-styled-components", {
"displayName": true,
"pure": true
}],
"@babel/plugin-proposal-class-properties",
"react-hot-loader/babel"
]
Expand Down
1 change: 1 addition & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"rules": {
"comment-empty-line-before": null,
"declaration-colon-newline-after": null,
"property-no-vendor-prefix": true,
"rule-empty-line-before": null
}
}
31 changes: 17 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@
"@aragon/api": "2.0.0-beta.8",
"@aragon/os": "4.2.0",
"@aragon/ui": "^1.2.1",
"@babel/polyfill": "^7.2.5",
"@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",
"prop-types": "^15.7.2",
"react-dom": "^16.8.6",
"react-markdown": "^4.2.2",
"react": "^16.8.6",
"rxjs": "^6.4.0",
"regenerator-runtime": "^0.13.2",
"rxjs": "^6.5.2",
"styled-components": "4.1.3",
"web3-utils": "^1.0.0"
},
Expand All @@ -34,17 +35,17 @@
"@aragon/apps-voting": "2.1.0",
"@aragon/templates-shared": "1.0.1",
"@aragon/test-helpers": "^2.0.0",
"@babel/core": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"@babel/core": "^7.5.4",
"@babel/plugin-proposal-class-properties": "^7.5.0",
"@babel/preset-env": "^7.5.4",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@types/react": "^16.8.6",
"acorn": "^6.1.1",
"ava": "^1.4.1",
"babel-eslint": "^10.0.1",
"babel-plugin-styled-components": "^1.10.0",
"copyfiles": "^2.1.1",
"coveralls": "3.0.2",
"cross-env": "^5.2.0",
"eslint": "^5.16.0",
Expand All @@ -63,7 +64,7 @@
"homedir": "^0.6.0",
"husky": "^3.0.0",
"lint-staged": "^9.2.0",
"parcel-bundler": "1.12.3",
"parcel-bundler": "1.12.4",
"prettier-eslint": "^9.0.0",
"react-axe": "^3.0.1",
"react-hot-loader": "^4.12.7",
Expand All @@ -87,14 +88,15 @@
"clean:build": "npm run clean -- $npm_package_build_exclude_pattern",
"clean": "git clean -fXd",
"compile": "truffle compile",
"copy-public-assets": "rsync -rtu ./public/ ./dist",
"copy-public-assets": "copyfiles -u 1 './public/**/*' ./dist",
"coverage": "cross-env SOLIDITY_COVERAGE=true npm run ganache-cli:test",
"coveralls": "cat coverage/lcov.info | coveralls",
"ganache-cli:test": "sh ./node_modules/@aragon/test-helpers/ganache-cli.sh",
"lint:contracts": "solium --dir ./contracts",
"lint:css": "stylelint './**/*.js'",
"lint:files": "eslint .",
"lint:fix": "npm run lint:contracts --fix && npm run lint:files --fix",
"lint": "npm run lint:contracts && npm run lint:files",
"lint:fix": "npm run lint:contracts -- --fix && npm run lint:files -- --fix && npm run lint:css",
"lint": "npm run lint:contracts && npm run lint:files && npm run lint:css",
"precommit": "lint-staged",
"prepublishOnly": "truffle compile && npm run abi:extract -- --no-compile",
"publish:major": "npm run publish -- major --files dist",
Expand All @@ -121,10 +123,11 @@
"license": "GPL-3.0",
"author": "",
"browserslist": [
">2%",
"last 1 edge versions",
"not ie > 0",
"not op_mini all"
"> 1%",
"last 3 versions",
"ie >= 9",
"ios >= 8",
"android >= 4.2"
],
"lint-staged": {
"*.js": [
Expand Down

0 comments on commit bfab5ef

Please sign in to comment.