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! +

+ +