Skip to content

Instantly share code, notes, and snippets.

View tmax818's full-sized avatar

Tyler Maxwell tmax818

View GitHub Profile
$ npm run-script build
"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"
},
$ git add .
$ git commit -m "init commit"
$ git remote add origin git@github.com:YOUR-USER-NAME/YOURAPP.git
$ git push -u origin master
$ mkdir dist
$ ng build --prod --output-path docs --base-href YOURAPP
$ cp -r docs/index.html docs/404.html
$ ng new YOURAPP
$ cd YOURAPP
$ 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
$ npm run deploy
$ npm i gh-pages
{
"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"
{
"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",