Skip to content

Commit

Permalink
Deployment
Browse files Browse the repository at this point in the history
- Install surge
  ``` bash
  npm add -D surge
  ```

- Create an icon for the application
  Use android icon generator tool: https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html

- Generate favicon and application meta
  Use favicon generator tool: https://realfavicongenerator.net

- Create `public/` directory
  Copy the favicon and meta files
  Create `index.html` file

- Add application name in `public/manifest.json` and `public/index.html`

- Add following npm scripts to package.json
  ``` json

  "build": "vue build src/index.js",
  "prebuild": "npm run test",
  "postbuild": "cp dist/index.html dist/200.html",
  "deploy": "surge -p ./dist",
  "predeploy": "npm run build"

  ```

- Add `CNAME` file to `public` directory

- Execute `npm run deploy`
  • Loading branch information
znck committed Feb 3, 2018
1 parent 9481358 commit b43729a
Show file tree
Hide file tree
Showing 16 changed files with 655 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
dist/

0 comments on commit b43729a

Please sign in to comment.