1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-13 16:45:14 +01:00

copy raw media folder after site build

This commit is contained in:
Matthias Kretschmann 2018-11-02 15:13:22 +01:00
parent c8c6c70bb0
commit bcfef9f6da
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -8,9 +8,10 @@
"main": "index.js",
"scripts": {
"start": "gatsby develop",
"build": "npm run rename:scrypt && gatsby build",
"build": "npm run rename:scrypt && gatsby build && npm run copy",
"ssr": "npm run build && serve -s public/",
"rename:scrypt": "sed -i -e 's|./build/Release/scrypt|scrypt|g' node_modules/scrypt/index.js",
"copy": "cp -R content/media/ public",
"format": "run-p format:js format:css format:md format:yaml",
"format:js": "prettier-eslint --write 'src/**/*.{js,jsx}'",
"format:css": "prettier-stylelint --write",