Skip to content

Commit

Permalink
Convert to use Vue
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedidomizio committed Jan 17, 2021
1 parent dc70b61 commit 81a1771
Show file tree
Hide file tree
Showing 44 changed files with 10,093 additions and 3,757 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/main.yml
Expand Up @@ -6,14 +6,26 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1
name: Checkout
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build project
run: |
# install yarn since we use yarn for lockfiles
npm install -g yarn
yarn install
yarn build
- name: Deploy static site to S3 bucket
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# sync to S3, ignore files/folders that we don't need to store in s3
# keep package.json it case of rebuilding the project if required
run: aws s3 sync ./ s3://www.mikedidomizio.com --exclude ".git*" --exclude ".idea*" --exclude "node_modules" --acl public-read
run: aws s3 sync ./dist s3://www.mikedidomizio.com --exclude "package*.json" --acl public-read
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,3 +1,3 @@
.idea/
node_modules/

dist/
24 changes: 15 additions & 9 deletions README.md
@@ -1,14 +1,20 @@
# mikedidomizio.com

## sync from S3
From parent directory
Uses Vue to build the website for mikedidomizio.com.

`aws s3 cp s3://www.mikedidomizio.com mikedidomizio.com --recursive`
On merge to master, deploys to S3 via GitHub actions.

## development
Development is easiest by mocking a server and accessing the URL through your browser
### Compiles and hot-reloads for development
```
yarn serve
```

- install [watch-http-server](https://www.npmjs.com/package/watch-http-server) globally
- run `watch-http-server -a 192.168.0.230 -p 8080` or use different address/port
- access the URL through your browser
- caching seems to be occurring with styling so use "Disable cache" in the Network panel
### Compiles and minifies for production
```
yarn build
```

### Lints and fixes files
```
yarn lint
```

0 comments on commit 81a1771

Please sign in to comment.