|
| 1 | +[](https://github.com/cdk/cdk.github.io/actions/workflows/ci.yaml) |
| 2 | +[](https://github.com/cdk/cdk.github.io/actions/workflows/deploy.yaml) |
| 3 | + |
1 | 4 | # Readme |
2 | 5 |
|
3 | | -Important! Currently you need to use Node v14. |
| 6 | +### Install instructions |
4 | 7 |
|
5 | | -#### Install instructions |
6 | | -###### Install all the project dependencies |
7 | | -```>$ npm install ``` |
| 8 | +#### Install all the project dependencies |
| 9 | +```>$ npm clean-install``` |
8 | 10 |
|
9 | | -###### Create a 'dist/' |
| 11 | +#### Create a 'dist/' |
10 | 12 | ```>$ npm run dev``` |
11 | 13 |
|
12 | | -###### Run a local development server with browser syncing |
| 14 | +#### Run a local development server with browser syncing |
13 | 15 | ```>$ npm run watch ``` |
14 | 16 |
|
15 | | -###### Build the code ('dist/') - Production (Uglify, minimise the code and the images) |
| 17 | +#### Build the code (outputs to 'dist/') - Production (Uglify, minimise the code and the images) |
16 | 18 | ```>$ npm run production ``` |
17 | 19 |
|
18 | | -To test the website it needs to be run on a HTTP server, a quick way of doing this is with python: |
| 20 | +To test the website it needs to be run on a HTTP server a quick way of doing this is with python is: |
19 | 21 |
|
20 | | -# http://localhost:8000 |
| 22 | +``` |
21 | 23 | $ python -m SimpleHTTPServer 8000 |
| 24 | +``` |
| 25 | + |
| 26 | +This makes the website available on `http://localhost:8000`. |
| 27 | + |
| 28 | +### Deployment to GitHub Pages |
| 29 | + |
| 30 | +> [!NOTE] |
| 31 | +> The default branch of this repository is `source`. |
| 32 | +> The branch `source` is used when building the website for deployment to GitHub pages. |
| 33 | +
|
| 34 | +Deployment to GitHub Pages can be |
22 | 35 |
|
23 | | -###### Copy dist to master/ branch |
| 36 | +1. manually run from [this Actions tab](https://github.com/cdk/cdk.github.io/actions/workflows/pages/pages-build-deployment) and |
| 37 | +2. runs automatically when a tagged [release](https://github.com/cdk/cdk.github.io/releases) is created on GitHub |
0 commit comments