global build script

This commit is contained in:
Matthias Kretschmann 2019-03-23 22:18:53 -03:00
parent 7e42991706
commit 18741c02aa
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 16 additions and 10 deletions

View File

@ -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

View File

@ -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
View 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