Live site can be found at https://security.mycrypto.com.
To build this project locally, you need to have Node.js installed. Clone the project with Git and run:
$ cd security.mycrypto.com
$ yarn install
$ gulp
(if this fails, make dependancy [email protected]
and rerun yarn install
)
This will run Gulp to build the project and watch for changes. You can open dist/index.html
to view your local copy.
- Open 2 terminal windows
- On the first terminal, be in
./dist
and run;- Create a new git repo:
git init
- Add the same remote:
git remote add dist [email protected]:MyCryptoHQ/security.mycrypto.com.git
- Checkout into the current live version:
git checkout gh-pages
- Create a new branch for the release:
git checkout -b gh-pages-release-<date>
- Create a new git repo:
- On the second terminal, be in
./
and rungulp
to build the project
- On the first terminal, be in
- Check to see if the build was successful by opening
./dist/index.html
in the browser - Navigate to the first terminal
- Add all the changed files:
git add .
- Commit them:
git commit -m "Compile for release
- Push to remote:
git push dist gh-pages-release-<date>
- Add all the changed files:
- Now create a PR from
gh-pages-release-<date>
intogh-pages
(like: MyCryptoHQ/about.mycrypto.com#42) - Get Infra to clear CF caches (project is live at https://mycryptohq.github.io/security.mycrypto.com/ without this though)