run svg sprite locally
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2022-11-23 00:04:02 +01:00
parent ace61dc470
commit 070ebaaab1
3 changed files with 1048 additions and 217 deletions

View File

@ -49,10 +49,10 @@ steps:
commands:
- composer install --ignore-platform-reqs --no-dev
# - name: node
# image: node:17.9.0-slim
# commands:
# - npm install && npm run prod && rm -R node_modules
- name: node
image: node:17.9.0-slim
commands:
- npm ci && npm run prod && npm run img && rm -R node_modules
- name: compress
image: php:7.3

1254
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@
"hot": "npx mix watch --hot",
"prod": "npx mix build --production",
"production": "npm run prod",
"img": "rm -R public/img && cd resources/img/svg && svg-sprite -s --symbol-dest=sprite *.svg && mv sprite/svg/sprite.symbol.svg ../sprite.svg && rm -R sprite && cd ../../../ && cp -R resources/img public/img",
"img": "rm -R public/img && cd resources/img/svg && npx svg-sprite -s --symbol-dest=sprite *.svg && mv sprite/svg/sprite.css.svg ../sprite.svg && rm -R sprite && cd ../../../ && cp -R resources/img public/img",
"lint": "eslint \"resources/js/**/*.{js,vue}\"",
"fix": "eslint \"resources/js/**/*.{js,vue}\" --fix"
},
@ -29,6 +29,7 @@
"merge": "^2.1.1",
"postcss-import": "^14.0.1",
"query-string": "^7.0.0",
"svg-sprite": "^2.0.2",
"v-tooltip": "^2.1.3",
"wnumb": "^1.2.0"
}