1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-14 09:05:17 +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", "main": "index.js",
"scripts": { "scripts": {
"start": "gatsby develop", "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/", "ssr": "npm run build && serve -s public/",
"rename:scrypt": "sed -i -e 's|./build/Release/scrypt|scrypt|g' node_modules/scrypt/index.js", "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": "run-p format:js format:css format:md format:yaml",
"format:js": "prettier-eslint --write 'src/**/*.{js,jsx}'", "format:js": "prettier-eslint --write 'src/**/*.{js,jsx}'",
"format:css": "prettier-stylelint --write", "format:css": "prettier-stylelint --write",