diff --git a/.drone.yml b/.drone.yml index b1c0f9b..fe9e6ec 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,15 +7,13 @@ trigger: steps: - name: build - image: node:11 + image: node:16 pull: true group: build-static commands: - - yarn --production=false - - yarn clean - - yarn build + - yarn --frozen-lockfile + - yarn prod - yarn release - - mv dist/*.tar.gz dist/vikunja-theme.tar.gz - name: release image: plugins/s3:1 diff --git a/.gitignore b/.gitignore index 4a61e38..6ee77fb 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules/ static/css/*.css dist/ +yarn-error.log diff --git a/package.json b/package.json index 071e618..0867661 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ }, "scripts": { "prod": "tailwindcss -i src/style.css -o static/css/styles.css", - "watch": "tailwindcss -i src/style.css -o static/css/styles.css --watch" + "watch": "tailwindcss -i src/style.css -o static/css/styles.css --watch", + "clean": "rm -rf dist && mkdir dist", + "release": "tar -czvf dist/vikunja-theme.tar.gz archetypes layouts static LICENSE README.md theme.toml" }, "devDependencies": { "@tailwindcss/typography": "^0.5.0",