1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-02-24 19:42:51 +01:00

Update build script

This commit is contained in:
Kamran Ahmed 2019-11-16 14:02:16 +04:00
parent 4a4536117b
commit 4dae2d58df
2 changed files with 8 additions and 2 deletions

View File

@ -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"
},

6
scripts/build.sh Executable file
View File

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