forked from enviPath/enviPy
Current Dev State
This commit is contained in:
37
static/js/ketcher2/node_modules/budo/bin/bundle-livereload-client.js
generated
vendored
Normal file
37
static/js/ketcher2/node_modules/budo/bin/bundle-livereload-client.js
generated
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
var browserify = require('browserify')
|
||||
var path = require('path')
|
||||
var fs = require('fs')
|
||||
var UglifyJS = require('uglify-js')
|
||||
|
||||
var buildFolder = path.resolve(__dirname, '..', 'build')
|
||||
var buildFile = path.resolve(buildFolder, 'bundled-livereload-client.js')
|
||||
var clientFile = path.resolve(__dirname, '..', 'lib', 'reload', 'client.js')
|
||||
|
||||
mkdir(buildFolder, function (err) {
|
||||
if (err) return error(err)
|
||||
browserify().add(clientFile).bundle(function (err, src) {
|
||||
if (err) return error(err)
|
||||
var result
|
||||
try {
|
||||
result = UglifyJS.minify(src.toString(), { fromString: true }).code
|
||||
} catch (err) {
|
||||
return error(err)
|
||||
}
|
||||
fs.writeFile(buildFile, result, function (err) {
|
||||
if (err) error(err)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
function mkdir (path, cb) {
|
||||
fs.mkdir(path, function (err) {
|
||||
if (err && err.code === 'EEXIST') err = null
|
||||
cb(err)
|
||||
})
|
||||
}
|
||||
|
||||
function error (err) {
|
||||
console.error('ERROR: Could not bundle LiveReload client, budo ' +
|
||||
'will fall back to browserifying it on the fly.')
|
||||
console.error(err)
|
||||
}
|
||||
7
static/js/ketcher2/node_modules/budo/bin/cmd.js
generated
vendored
Executable file
7
static/js/ketcher2/node_modules/budo/bin/cmd.js
generated
vendored
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
// Starts budo with stdout
|
||||
// Handles --help and error messaging
|
||||
// Uses auto port-finding
|
||||
var args = process.argv.slice(2)
|
||||
require('../').cli(args)
|
||||
32
static/js/ketcher2/node_modules/budo/bin/help.txt
generated
vendored
Normal file
32
static/js/ketcher2/node_modules/budo/bin/help.txt
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
Usage:
|
||||
budo index.js [opts] -- [browserify opts]
|
||||
|
||||
Options:
|
||||
--help, -h show help message
|
||||
--version show version
|
||||
--port, -p the port to run, default 9966
|
||||
--host, -H the host, default internal IP (localhost)
|
||||
--dir, -d a path, or array of paths for base static content
|
||||
--serve, -s override the bundle path being served
|
||||
--live, -l enable default LiveReload integration
|
||||
--live-port, -L the LiveReload port, default 35729
|
||||
--open, -o launch the browser once connected
|
||||
--pushstate, -P always render the index page instead of a 404 page
|
||||
--base set the base path for the generated HTML, default to '/'
|
||||
--onupdate a shell command to trigger on bundle update
|
||||
--poll=N use polling for file watch, with optional interval N
|
||||
--title optional title for default index.html
|
||||
--css optional stylesheet href for default index.html
|
||||
--ssl, -S create an HTTPS server instead of HTTP
|
||||
--cert, -C the cert for SSL (default cert.pem)
|
||||
--key, -K the key for SSL (default key.pem)
|
||||
--cors set header to use CORS (Access-Control-Allow-Origin: *)
|
||||
--ndjson print ndjson instead of pretty-printed logs
|
||||
--verbose, -v also include debug messages
|
||||
--force-default-index always serve a generated index.html instead of a static one
|
||||
--no-stream do not print messages to stdout
|
||||
--no-debug do not use inline source maps
|
||||
--no-portfind will not attempt auto-portfinding
|
||||
--no-error-handler disable default DOM error handling
|
||||
--watch-glob, --wg glob(s) to watch for reloads, default '**/*.{html,css}'
|
||||
--static-options subarg options to pass to serve-static module
|
||||
Reference in New Issue
Block a user