Compare commits

..

1 Commits

Author SHA1 Message Date
04c3c926ff Update files locations
All checks were successful
continuous-integration/drone/push Build is passing
* use npm instead of yarn
* group frontend stuff
* group backend stuff
2020-02-26 14:38:33 +01:00
4 changed files with 4 additions and 11 deletions

View File

@ -12,7 +12,7 @@ steps:
commands:
- cd frontend
- npm install
- npm build
- npm run-script build
- name: backend
image: golang:1.14.0-alpine3.11

View File

@ -1,17 +1,10 @@
## Install dependencies
### Install node
### Install node and npm
You'll need node v6+, here's a link to install it:
https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
### Install yarn and dependencies
```
sudo npm install -g yarn
yarn install
```
## Dev
#### Check your config.yml file

2
dev.sh
View File

@ -144,7 +144,7 @@ case $1 in
docker-compose -f "$DOCKER_COMPOSE_FILE" "$@"
;;
front)
(cd frontend && npm install && npm start)
(cd frontend && npm install && npm run-script start)
;;
db-init)
_ensure_command jq

View File

@ -3,7 +3,7 @@
"scripts": {
"start": "NODE_ENV=development ./node_modules/webpack/bin/webpack.js -d --progress --colors --watch",
"build": "NODE_ENV=production ./node_modules/webpack/bin/webpack.js -p --progress --colors",
"lint": "./node_modules/eslint/bin/eslint.js frontend/."
"lint": "./node_modules/eslint/bin/eslint.js ."
},
"dependencies": {
"bootstrap": "^4.3.1",