From 4dae2d58df3138f0576a14f3030a6d222dafda46 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 16 Nov 2019 14:02:16 +0400 Subject: [PATCH] Update build script --- package.json | 4 ++-- scripts/build.sh | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 scripts/build.sh diff --git a/package.json b/package.json index b5c310eab..4532499cb 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,10 @@ "license": "BSD-4-Clause", "scripts": { "dev": "next", - "html": "next build && next export && echo 'roadmap.sh' > out/CNAME && echo '' > out/.nojekyll", + "html": "./scripts/build.sh", "serve:out": "serve out", "sitemap": "node scripts/sitemap.js", - "deploy": "NODE_DEBUG=gh-pages gh-pages -d out", + "deploy": "NODE_DEBUG=gh-pages gh-pages -d out -t", "test": "jest", "test:watch": "jest --watch" }, diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 000000000..8be7acb51 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +next build +next export +echo 'roadmap.sh' > out/CNAME +touch out/.nojekyll