From a0dc44b133da013e75d8842157b242cfaa40bb96 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Mon, 23 Sep 2019 16:37:20 +0300 Subject: [PATCH] Fix up build commands --- .gitignore | 2 +- README.md | 6 +++--- TODO.md | 1 + package.json | 9 ++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index d7e8c53..d977176 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ .DS_Store .next node_modules -public +out diff --git a/README.md b/README.md index 701b5f0..b08e74c 100644 --- a/README.md +++ b/README.md @@ -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/` diff --git a/TODO.md b/TODO.md index 82eb084..4fbb7a5 100644 --- a/TODO.md +++ b/TODO.md @@ -3,3 +3,4 @@ * Prod ID `pk_live_xrnwdLNXbt20LMxpIDffJnnC` * API integration (test backend `https://lit-plateau-4689.herokuapp.com/`) * Hero video +* Deployment diff --git a/package.json b/package.json index 18600cf..37489b8 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,11 @@ "description": "Koodiklinikka homepage", "author": "Riku Rouvila ", "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": {