mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
chore: replace npm with yarn
This commit is contained in:
parent
4101310b89
commit
225f46bc0d
2 changed files with 7 additions and 5 deletions
|
@ -9,8 +9,8 @@
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"lint:js": "eslint --ext \".ts,.vue,.cjs,.js\" --ignore-path ../.gitignore .",
|
"lint:js": "eslint --ext \".ts,.vue,.cjs,.js\" --ignore-path ../.gitignore .",
|
||||||
"lint:prettier": "prettier --check .",
|
"lint:prettier": "prettier --check .",
|
||||||
"lint": "npm run lint:js && npm run lint:prettier",
|
"lint": "yarn lint:js && yarn lint:prettier",
|
||||||
"lintfix": "prettier --write --list-different . && npm run lint:js --fix"
|
"lintfix": "prettier --write --list-different . && yarn lint:js --fix"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/fira-code": "^4.5.13",
|
"@fontsource/fira-code": "^4.5.13",
|
||||||
|
|
8
debian/rules
vendored
8
debian/rules
vendored
|
@ -16,11 +16,13 @@ TMPDIR = $$(pwd)/debian/yunohost-admin
|
||||||
|
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
/usr/bin/curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
|
/usr/bin/curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor | tee /usr/share/keyrings/nodesource.gpg >/dev/null
|
||||||
|
/usr/bin/curl -s https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /etc/apt/trusted.gpg.d/yarn.gpg >/dev/null
|
||||||
echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x bullseye main' > /etc/apt/sources.list.d/nodesource.list
|
echo 'deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x bullseye main' > /etc/apt/sources.list.d/nodesource.list
|
||||||
|
echo "deb [signed-by=/etc/apt/trusted.gpg.d/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
|
||||||
/usr/bin/apt update
|
/usr/bin/apt update
|
||||||
/usr/bin/apt install nodejs -y
|
/usr/bin/apt install nodejs yarn -y
|
||||||
cd app ; /usr/bin/npm --progress false ci
|
cd app ; /usr/bin/yarn install --frozen-lockfile --non-interactive
|
||||||
cd app ; /usr/bin/npm run build
|
cd app ; /usr/bin/yarn build
|
||||||
|
|
||||||
|
|
||||||
override_dh_clean:
|
override_dh_clean:
|
||||||
|
|
Loading…
Reference in a new issue