Skip to content

Commit

Permalink
add gh-deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
mizok committed Mar 31, 2022
1 parent 4283104 commit fb4d432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: webpack-template
date:
author: Mizok
version: 0.1.0
version: 0.2.0
tags:
---

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "npx cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack-config.json\" webpack --config webpack.config.ts --mode production",
"dev": "npx cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack-config.json\" webpack serve --config webpack.config.ts --mode development"
"dev": "npx cross-env TS_NODE_PROJECT=\"tsconfig-for-webpack-config.json\" webpack serve --config webpack.config.ts --mode development",
"gh-deploy": "npm run build && git add dist -f && git commit -m 'dist subtree commit' && git subtree push --prefix dist origin gh-pages"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit fb4d432

Please sign in to comment.