This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ npm run-script build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "scripts": { | |
| "ng": "ng", | |
| "start": "ng serve -o", | |
| "build": "ng build --prod --output-path docs --base-href YOURAPP", //add this | |
| "postbuild": "cp -r docs/index.html docs/404.html", //add this | |
| "test": "ng test", | |
| "lint": "ng lint", | |
| "e2e": "ng e2e" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git add . | |
| $ git commit -m "init commit" | |
| $ git remote add origin git@github.com:YOUR-USER-NAME/YOURAPP.git | |
| $ git push -u origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ mkdir dist | |
| $ ng build --prod --output-path docs --base-href YOURAPP | |
| $ cp -r docs/index.html docs/404.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ng new YOURAPP | |
| $ cd YOURAPP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ ng new day24 | |
| $ cd day24 | |
| $ mkdir dist | |
| $ ng build --prod --output-path docs --base-href day24 | |
| $ cp -r docs/index.html docs/404.html | |
| $ git add . | |
| $ git commit -m "init commit" | |
| $ git remote add origin git@github.com:tmax818/day24.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ npm run deploy | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ npm i gh-pages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "day23", | |
| "homepage": "https://www.tylermaxwell.co/day23/", | |
| "version": "0.1.0", | |
| "private": true, | |
| "dependencies": { | |
| "gh-pages": "^2.0.1", | |
| "react": "^16.8.6", | |
| "react-dom": "^16.8.6", | |
| "react-scripts": "3.0.1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "day20", | |
| "homepage": "https://YOUR-WEBSITE/YOUR-REPOSITORY/", // add this | |
| "version": "0.1.0", | |
| "private": true, | |
| "dependencies": { | |
| "bootstrap": "^4.3.1", | |
| "gh-pages": "^2.0.1", | |
| "react": "^16.8.6", | |
| "react-bootstrap": "^1.0.0-beta.8", |
NewerOlder