mirror of
https://github.com/remoteintech/remote-jobs
synced 2024-11-15 08:57:06 +00:00
58b9cf57b0
* Improve logging messages * Make local development easier; improve docs * Combine page-specific CSS files into one This file is small, and later it will also contain styles that need to apply to the whole site. * Add "Edit this page on GitHub" links * Remove an unneeded element * Assign table cell classes during parsing This way it will work with JavaScript disabled too. * Match font weights with other styles * Always show hovered links in gray Before this change, already-visited links would stay red on hover. * Minor CSS tweaks * In main table, show company names in bold * Add mobile styles for companies table * Remove a couple more empty profile sections
19 lines
502 B
JavaScript
Executable file
19 lines
502 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
|
|
const { spawnSync } = require( 'child_process' );
|
|
const path = require( 'path' );
|
|
|
|
// Build the static site
|
|
const result = spawnSync( process.execPath, [
|
|
path.join( __dirname, 'build-site.js' ),
|
|
], { stdio: 'inherit' } );
|
|
if ( result.error ) {
|
|
throw result.error;
|
|
}
|
|
if ( result.status > 0 ) {
|
|
process.exit( result.status );
|
|
}
|
|
|
|
// Serve the static site locally
|
|
process.argv.splice( 2, 0, path.join( __dirname, '..', 'site', 'build' ) );
|
|
require( 'http-server/bin/http-server' );
|