From c80a1776f5ba7484b56c93215e5f85369cae1754 Mon Sep 17 00:00:00 2001 From: James Nylen Date: Sat, 9 Jun 2018 02:35:26 -0500 Subject: [PATCH] Add a "Coming Soon" page to the Netlify site (#430) --- .gitignore | 1 + bin/build-site.js | 19 +++++++++++++++++++ package.json | 3 +++ site/coming-soon.html | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100755 bin/build-site.js create mode 100644 site/coming-soon.html diff --git a/.gitignore b/.gitignore index c2658d7d..402ce445 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules/ +site/build/ diff --git a/bin/build-site.js b/bin/build-site.js new file mode 100755 index 00000000..2d989b99 --- /dev/null +++ b/bin/build-site.js @@ -0,0 +1,19 @@ +#!/usr/bin/env node + +const fs = require( 'fs' ); +const path = require( 'path' ); + +const siteDir = path.join( __dirname, '..', 'site' ); +const siteBuildDir = path.join( siteDir, 'build' ); + +if ( ! fs.existsSync( siteBuildDir ) ) { + fs.mkdirSync( siteBuildDir ); +} + +fs.writeFileSync( + path.join( siteBuildDir, 'index.html' ), + fs.readFileSync( + path.join( siteDir, 'coming-soon.html' ), + 'utf8' + ) +); diff --git a/package.json b/package.json index d9cf23e7..7a0ff69b 100644 --- a/package.json +++ b/package.json @@ -2,5 +2,8 @@ "devDependencies": { "cheerio": "^1.0.0-rc.2", "marked": "^0.3.12" + }, + "scripts": { + "build": "bin/build-site.js" } } diff --git a/site/coming-soon.html b/site/coming-soon.html new file mode 100644 index 00000000..6fdf4a12 --- /dev/null +++ b/site/coming-soon.html @@ -0,0 +1,37 @@ + + + + + + Remote Jobs + + + +

+ This site (the Netlify site for + remoteintech/remote-jobs) +
+ is still under construction. Check back later! +

+ +