Skip to content

Commit

Permalink
Build tooling updates (#775)
Browse files Browse the repository at this point in the history
* Fix demo watch

* simplify website build

* update tooling deps

* update package.json files to include sourcemaps
  • Loading branch information
gpoitch authored Aug 31, 2022
1 parent c3a6523 commit 427f8bc
Show file tree
Hide file tree
Showing 9 changed files with 280 additions and 278 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,5 @@ Session.vim
keys.txt
export.sh
/dist
/website
/tmp
server.sh
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,7 @@ The demo website is hosted at

To publish a new version:

- `yarn run build:website` - This builds the website into `website/`
- `yarn run deploy:website` - Pushes the `website/` subtree to the `gh-pages`
branch of your `origin` at github
- `yarn run build:website` - This builds the website into `dist/website`
- `yarn run deploy:website` - Pushes the website to the `gh-pages` branch of the `origin` at github

_Development of Mobiledoc and the supporting libraries was generously funded by [BDG Media](https://www.bdg.com)._
14 changes: 0 additions & 14 deletions bin/build-website.sh

This file was deleted.

4 changes: 2 additions & 2 deletions bin/deploy-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ git branch -D gh-pages
git checkout -b gh-pages

CURRENT_SHA="$(git rev-parse HEAD)"
git add website/ -f
git add dist/website/ -f
git commit -m "Built website from $CURRENT_SHA"

git push origin `git subtree split --prefix website`:gh-pages --force
git push origin `git subtree split --prefix dist/website`:gh-pages --force
echo "Deployed to http://bustle.github.io/mobiledoc-kit/demo/"

git checkout master
Loading

0 comments on commit 427f8bc

Please sign in to comment.