mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #35622 from nextcloud/feat/auto-build-icons-sass-on-build
Automatically build sass and sass:icons after build
This commit is contained in:
commit
741f32ed5d
3 changed files with 1 additions and 12 deletions
6
.github/workflows/command-compile.yml
vendored
6
.github/workflows/command-compile.yml
vendored
|
|
@ -86,12 +86,6 @@ jobs:
|
|||
npm ci
|
||||
npm run build --if-present
|
||||
|
||||
- name: Build css
|
||||
run: npm run --if-present sass
|
||||
|
||||
- name: Build icons css
|
||||
run: npm run --if-present sass:icons
|
||||
|
||||
- name: Commit and push default
|
||||
if: ${{ needs.init.outputs.arg1 != 'fixup' && needs.init.outputs.arg1 != 'amend' }}
|
||||
run: |
|
||||
|
|
|
|||
6
.github/workflows/node.yml
vendored
6
.github/workflows/node.yml
vendored
|
|
@ -45,12 +45,6 @@ jobs:
|
|||
npm ci
|
||||
npm run build --if-present
|
||||
|
||||
- name: Build css
|
||||
run: npm run sass
|
||||
|
||||
- name: Build icons css
|
||||
run: npm run sass:icons
|
||||
|
||||
- name: Check webpack build changes
|
||||
run: |
|
||||
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please recompile and commit the assets, see the section \"Show changes on failure\" for details' && exit 1)"
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"build": "NODE_ENV=production webpack --progress --config webpack.prod.js",
|
||||
"postbuild": "npm run sass && npm run sass:icons",
|
||||
"dev": "NODE_ENV=development webpack --progress --config webpack.dev.js",
|
||||
"watch": "NODE_ENV=development webpack --progress --watch --config webpack.dev.js",
|
||||
"lint": "eslint 'apps/*/src/**/*.{vue,js}' 'core/src/**/*.{vue,js}'",
|
||||
|
|
|
|||
Loading…
Reference in a new issue