mirror of
https://github.com/remoteintech/remote-jobs
synced 2025-01-13 04:58:43 +00:00
20 lines
401 B
JavaScript
20 lines
401 B
JavaScript
|
#!/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'
|
||
|
)
|
||
|
);
|