-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.json
15 lines (15 loc) · 921 Bytes
/
publish.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"src_dir": "/Users/vincent_yuan/Documents/Indie_project/Blog/Spacecraft",
"dest_dir": "/Users/vincent_yuan/Documents/Indie_project/Blog/Spacecraft/docs",
"scripts": {
"reset": "rm -rf $npm_package_dest_dir/* && rm -rf $npm_package_src_dir/static/",
"paste-static-files": "cp -R $npm_package_src_dir/static/* $npm_package_dest_dir/",
"preview": "open $npm_package_dest_dir/index.html",
"push-to-origin-src": "cd $npm_package_src_dir && git add . && git commit -m 'automatic commit' && git push",
"push-to-origin-dest": "cd $npm_package_dest_dir && git add . && git commit -m 'automatic commit' && git push",
"generate-static-files": "./gssg.sh",
"prepublish": "npm run reset",
"publish": "npm run generate-static-files && npm run paste-static-files && npm run preview",
"postpublish": "npm run push-to-origin-src && npm run push-to-origin-dest"
}
}