Skip to content

Commit

Permalink
chore: Deploy to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
simonguo committed Aug 17, 2022
1 parent da1502e commit e3b6184
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 19 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ node_modules
# Optional REPL history
.node_repl_history


# custom

.vscode
Expand All @@ -43,5 +42,4 @@ scripts
build
lib
dist
yarn.lock
package-lock.json
assets
3 changes: 2 additions & 1 deletion gh-pages.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/no-var-requires */
var ghpages = require('gh-pages');
var path = require('path');

ghpages.publish(path.join(__dirname, './dist'), function(err) {
ghpages.publish(path.join(__dirname, './assets'), function (err) {
console.log(err);
});
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"clear-dist": "rm -rf dist",
"build-webpack": "NODE_ENV=production webpack --mode production --progress && cp -R public/* ./dist/ ",
"build": "npm run clear-dist && npm run build-webpack",
"publish-github": "node gh-pages.js",
"flow": "flow"
"publish:gh-pages": "node gh-pages.js"
},
"keywords": [
"react",
Expand Down
6 changes: 0 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions src/tracker.ts

This file was deleted.

0 comments on commit e3b6184

Please sign in to comment.