Skip to content

Commit

Permalink
fix: clean gh-pages cache before deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
TheodoreChu committed Nov 22, 2020
1 parent 3acc1af commit 3216b42
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ The general instructions setting up an environment to develop Standard Notes ext
3. Run `cd append-editor` to enter the `append-editor` directory.
4. Run `yarn install` to install the dependencies on your machine as they are described in `yarn.lock`.
5. In the `public` directory, create `ext.json` as explained [here](https://docs.standardnotes.org/extensions/local-setup) with `url: "http://localhost:3000/index.html"`, create `ext.json` as a copy of `sample.ext.json` or use the sample.
6. Install http-server using `sudo npm install -g http-server` then run `yarn serve-public` to serve the `./public` directory at http://localhost:3000.
6. Install http-server using `sudo npm install -g http-server` then run `yarn server-public` to serve the `./public` directory at http://localhost:3000.
7. Install the editor into the [web](https://app.standardnotes.org) or [desktop](https://standardnotes.org/download) app with `http://localhost:3000/sample.ext.json` or with your custom `ext.json`. Press `ctrl/cmd + C` to shut down the server.
8. To run the app in development mode, run `yarn start`. Press `ctrl/cmd + C` to exit development mode.
9. To make the source code prettier, run `yarn pretty`.
Expand Down
2 changes: 1 addition & 1 deletion build/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ The general instructions setting up an environment to develop Standard Notes ext
3. Run `cd append-editor` to enter the `append-editor` directory.
4. Run `yarn install` to install the dependencies on your machine as they are described in `yarn.lock`.
5. In the `public` directory, create `ext.json` as explained [here](https://docs.standardnotes.org/extensions/local-setup) with `url: "http://localhost:3000/index.html"`, create `ext.json` as a copy of `sample.ext.json` or use the sample.
6. Install http-server using `sudo npm install -g http-server` then run `yarn serve-public` to serve the `./public` directory at http://localhost:3000.
6. Install http-server using `sudo npm install -g http-server` then run `yarn server-public` to serve the `./public` directory at http://localhost:3000.
7. Install the editor into the [web](https://app.standardnotes.org) or [desktop](https://standardnotes.org/download) app with `http://localhost:3000/sample.ext.json` or with your custom `ext.json`. Press `ctrl/cmd + C` to shut down the server.
8. To run the app in development mode, run `yarn start`. Press `ctrl/cmd + C` to exit development mode.
9. To make the source code prettier, run `yarn pretty`.
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"predeploy": "yarn run pretty && cp README.md public/README.txt && cp LICENSE public/LICENSE.txt && yarn run build",
"deploy-dev": "yarn run predeploy && gh-pages -b dev -d build",
"clean-deploy-cache": "rm -rf node_modules/.cache/gh-pages",
"predeploy": "yarn run pretty && cp README.md public/README.txt && cp LICENSE public/LICENSE.txt && yarn run build && yarn clean-deploy-cache",
"deploy-build": "yarn run predeploy && gh-pages -b build -d build",
"deploy-dev": "yarn run predeploy && gh-pages -b dev -d build",
"deploy-stable": "yarn run predeploy && gh-pages -b gh-pages -d build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"serve": "serve -s -p 3000 build",
"serve-public": "http-server -p 3000 --cors",
"serve-root": "http-server ./ -p 3000 --cors",
"server-public": "http-server -p 3000 --cors",
"server-root": "http-server ./ -p 3000 --cors",
"server": "http-server ./build -p 3000 --cors",
"pretty": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}'"
},
Expand Down
2 changes: 1 addition & 1 deletion public/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ The general instructions setting up an environment to develop Standard Notes ext
3. Run `cd append-editor` to enter the `append-editor` directory.
4. Run `yarn install` to install the dependencies on your machine as they are described in `yarn.lock`.
5. In the `public` directory, create `ext.json` as explained [here](https://docs.standardnotes.org/extensions/local-setup) with `url: "http://localhost:3000/index.html"`, create `ext.json` as a copy of `sample.ext.json` or use the sample.
6. Install http-server using `sudo npm install -g http-server` then run `yarn serve-public` to serve the `./public` directory at http://localhost:3000.
6. Install http-server using `sudo npm install -g http-server` then run `yarn server-public` to serve the `./public` directory at http://localhost:3000.
7. Install the editor into the [web](https://app.standardnotes.org) or [desktop](https://standardnotes.org/download) app with `http://localhost:3000/sample.ext.json` or with your custom `ext.json`. Press `ctrl/cmd + C` to shut down the server.
8. To run the app in development mode, run `yarn start`. Press `ctrl/cmd + C` to exit development mode.
9. To make the source code prettier, run `yarn pretty`.
Expand Down

0 comments on commit 3216b42

Please sign in to comment.