Fix up build commands

This commit is contained in:
Aarni Koskela
2019-09-23 16:37:20 +03:00
parent 186f8744ff
commit a0dc44b133
4 changed files with 9 additions and 9 deletions

2
.gitignore vendored
View File

@@ -2,4 +2,4 @@
.DS_Store
.next
node_modules
public
out

View File

@@ -32,13 +32,13 @@
npm start
```
- Avaa selaimessasi: [`http://localhost:9001`](http://localhost:9001)
- Avaa selaimessasi: [`http://localhost:3000`](http://localhost:3000)
## Komennot
* `npm install`
* asentaa projektin riippuvuudet
* `npm start`
* kääntää lähdetiedostot ja palvelee sovellusta porttiin `9001`
* kääntää lähdetiedostot ja palvelee sovellusta porttiin `3000`
* `npm run build`
* kääntää lähdetiedostot
* kääntää lähdetiedostot -> `out/`

View File

@@ -3,3 +3,4 @@
* Prod ID `pk_live_xrnwdLNXbt20LMxpIDffJnnC`
* API integration (test backend `https://lit-plateau-4689.herokuapp.com/`)
* Hero video
* Deployment

View File

@@ -4,12 +4,11 @@
"description": "Koodiklinikka homepage",
"author": "Riku Rouvila <riku.rouvila@leonidasoy.fi>",
"license": "MIT",
"main": "gulpfile.js",
"scripts": {
"start": "rm -rf public && gulp",
"build": "rm -rf public && gulp build",
"dev": "SERVER=http://localhost:9000/ ENV=development npm start",
"prod": "ENV=production npm start",
"start": "next",
"build": "next build && next export",
"dev": "SERVER=http://localhost:9000/ ENV=development next",
"prod": "ENV=production next build && next export",
"lint": "eslint --ext .jsx --ext .js ."
},
"dependencies": {