forked from ctrl-alt-del-world/midway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
23 lines (23 loc) · 1.08 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"private": true,
"name": "@p10e/sanity-template-midway",
"scripts": {
"build": "sanity-template build --template-values dev/template-values-production.json",
"dev": "sanity-template watch --template-values dev/template-values-development.json",
"copy-node-modules": "npm run copy-studio-node-modules && npm run copy-web-node-modules",
"copy-studio-node-modules": "cp -R build/studio/node_modules template/studio/node_modules",
"copy-web-node-modules": "cp -R build/web/node_modules template/web/node_modules",
"export": "cd build/studio && sanity dataset export landing-pages ../../data/production.tar.gz",
"lint-build": "npm run build && (cd build && npm install && npm run lint)",
"test": "sanity-template check"
},
"devDependencies": {
"husky": "^3.0.1",
"sanity-template": "^2.0.0"
},
"husky": {
"hooks": {
"post-commit": "([ -z \"$SKIP_HOOK\" ] && sanity-template lockfiles && git add '*package-lock.json*' && git diff --quiet && SKIP_HOOK=1 git commit -m 'Generate lockfiles') && echo 'Committed lockfiles' || echo ''"
}
}
}