mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
global build script
This commit is contained in:
parent
7e42991706
commit
18741c02aa
@ -1,10 +1,10 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- '11.10.1'
|
||||
node_js: node
|
||||
|
||||
script:
|
||||
- ./scripts/install.sh
|
||||
- ./scripts/test.sh
|
||||
- ./scripts/build.sh
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
|
10
package.json
10
package.json
@ -5,7 +5,7 @@
|
||||
"scripts": {
|
||||
"install": "./scripts/install.sh",
|
||||
"start": "cd client && npm run start",
|
||||
"build": "cd client && npm run build",
|
||||
"build": "./scripts/build.sh",
|
||||
"test": "npm run lint && scripts/test.sh",
|
||||
"format:js": "prettier --parser typescript --write '**/*.{js,jsx,ts,tsx}'",
|
||||
"format:css": "prettier-stylelint --write --quiet '**/*.{css,scss}'",
|
||||
@ -30,11 +30,5 @@
|
||||
"stylelint-config-css-modules": "^1.3.0",
|
||||
"stylelint-config-standard": "^18.2.0",
|
||||
"typescript": "^3.3.3333"
|
||||
},
|
||||
"browserslist": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not ie <= 11",
|
||||
"not op_mini all"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
12
scripts/build.sh
Executable file
12
scripts/build.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#/usr/bin/env/sh
|
||||
set -e
|
||||
|
||||
components="server client"
|
||||
|
||||
for component in $components
|
||||
do
|
||||
echo "Building: $component"
|
||||
cd $component
|
||||
npm run build
|
||||
cd ..
|
||||
done
|
Loading…
Reference in New Issue
Block a user