Update build script

pull/1657/head
Kamran Ahmed 5 years ago
parent 4a4536117b
commit 4dae2d58df
  1. 4
      package.json
  2. 6
      scripts/build.sh

@ -5,10 +5,10 @@
"license": "BSD-4-Clause", "license": "BSD-4-Clause",
"scripts": { "scripts": {
"dev": "next", "dev": "next",
"html": "next build && next export && echo 'roadmap.sh' > out/CNAME && echo '' > out/.nojekyll", "html": "./scripts/build.sh",
"serve:out": "serve out", "serve:out": "serve out",
"sitemap": "node scripts/sitemap.js", "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": "jest",
"test:watch": "jest --watch" "test:watch": "jest --watch"
}, },

@ -0,0 +1,6 @@
#!/usr/bin/env bash
next build
next export
echo 'roadmap.sh' > out/CNAME
touch out/.nojekyll
Loading…
Cancel
Save