squarespace-node-server
Version:
A local Squarespace development server in node.js for folks using the developer platform.
16 lines (14 loc) • 393 B
JavaScript
/*!
*
* Squarespace executable startup javascript file...
*
*/
var fs = require( "fs" ),
cwd = process.cwd(),
path = require( "path" ),
args = [].slice.call( process.argv, 2 ),
server = require( "./squarespace-server" ),
config = path.join( cwd, "template.conf" );
config = ("" + fs.readFileSync( config ));
config = JSON.parse( config );
server.init( config, args );