Skip to content

Instantly share code, notes, and snippets.

@carsonfarmer
Created September 24, 2018 18:51
Show Gist options
  • Select an option

  • Save carsonfarmer/dc703cfc19baafae297d1174f96560e5 to your computer and use it in GitHub Desktop.

Select an option

Save carsonfarmer/dc703cfc19baafae297d1174f96560e5 to your computer and use it in GitHub Desktop.
scripts and deps section of package.json
...
"scripts": {
"setup": "yarn install",
"release": "npm version patch",
"postversion": "git push --follow-tags",
"build": "run-s build:*",
"build:copy": "run-p build:copy:*",
"build:copy:html": "shx mkdir -p dist && shx cp index.html dist/index.html",
"build:copy:images": "shx mkdir -p dist/img && shx cp img/* dist/img",
"build:copy:css": "shx mkdir -p dist/css && shx cp css/*.css dist/css",
"build:copy:fonts": "shx mkdir -p dist/webfonts && shx cp webfonts/*.{woff,css} dist/webfonts",
"build:copy:js": "shx mkdir -p dist/js && shx cp js/*.js dist/js"
},
"dependencies": {
"npm-run-all": "^4.1.3",
"shx": "^0.3.2"
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment