[chore] Update to yarn 4 (#90)
Update to yarn 4 and use `masto-fe-standalone-woodpecker-build` container for builds. Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/90 Co-authored-by: tobi <tobi.smethurst@protonmail.com> Co-committed-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -55,6 +55,9 @@ npm-debug.log
|
||||
yarn-error.log
|
||||
yarn-debug.log
|
||||
|
||||
# Ignore yarn state file
|
||||
.yarn/install-state.gz
|
||||
|
||||
# Ignore vagrant log files
|
||||
*-cloudimg-console.log
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
steps:
|
||||
lint:
|
||||
image: node:22-alpine
|
||||
image: docker.io/superseriousbusiness/masto-fe-standalone-woodpecker-build:0.1.0
|
||||
pull: true
|
||||
|
||||
# https://woodpecker-ci.org/docs/usage/volumes
|
||||
|
||||
1
.yarnrc.yml
Normal file
1
.yarnrc.yml
Normal file
@@ -0,0 +1 @@
|
||||
nodeLinker: node-modules
|
||||
@@ -4,7 +4,11 @@
|
||||
|
||||
## Dependencies
|
||||
|
||||
To work on the code decently, you should have Node and Yarn installed. To avoid fuckery, Node Version Manager is **highly recommended**: https://github.com/nvm-sh/nvm.
|
||||
To work on the code, you must have Node installed.
|
||||
|
||||
To avoid fuckery, Node Version Manager is **highly recommended**: https://github.com/nvm-sh/nvm. You can then install the latest `lts` version of node with `nvm install --lts && nvm use --lts`.
|
||||
|
||||
You should install yarn as described [here](https://yarnpkg.com/getting-started/install) and/or [here](https://yarnpkg.com/migration/guide).
|
||||
|
||||
## Testing Locally
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
### BUILDER IMAGE ###
|
||||
FROM node:lts-alpine AS builder
|
||||
FROM docker.io/superseriousbusiness/masto-fe-standalone-woodpecker-build:0.1.0 AS builder
|
||||
|
||||
# Prepare the build directory, copy
|
||||
# relevant source + config files over.
|
||||
|
||||
@@ -230,5 +230,6 @@
|
||||
"Capfile|Gemfile|*.{rb,ruby,ru,rake}": "bundle exec rubocop --force-exclusion -a",
|
||||
"*.{js,jsx,ts,tsx}": "eslint --fix",
|
||||
"*.{css,scss}": "stylelint --fix"
|
||||
}
|
||||
},
|
||||
"packageManager": "yarn@4.10.3"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user