mirror of
https://github.com/remoteintech/remote-jobs
synced 2024-12-26 12:23:09 +00:00
19 lines
401 B
JavaScript
Executable file
19 lines
401 B
JavaScript
Executable file
#!/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'
|
|
)
|
|
);
|