diff --git a/.drone.yml b/.drone.yml index 739047a66..aa292259d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -54,7 +54,7 @@ steps: - name: yarn_cache path: /tmp/cache commands: - - yarn --frozen-lockfile --cache-folder /tmp/cache + - yarn --frozen-lockfile --cache-folder /tmp/cache web/source - name: web-lint image: node:14-alpine @@ -65,7 +65,7 @@ steps: depends_on: - web-setup commands: - - eslint web/source + - cd web/source && yarn run lint - name: web-build image: node:14-alpine @@ -76,7 +76,7 @@ steps: depends_on: - web-setup commands: - - node web/source + - cd web/source && yarn run build - name: snapshot image: superseriousbusiness/gotosocial-drone-build:0.0.7 # https://github.com/superseriousbusiness/gotosocial-drone-build diff --git a/web/source/package.json b/web/source/package.json index 6625c4fd7..7806ff126 100644 --- a/web/source/package.json +++ b/web/source/package.json @@ -5,6 +5,11 @@ "main": "index.js", "author": "f0x", "license": "AGPL-3.0", + "scripts": { + "lint": "eslint .", + "build": "node index.js", + "dev": "NODE_ENV=development node index.js" + }, "dependencies": { "@reduxjs/toolkit": "^1.8.6", "bluebird": "^3.7.2",