package: move launcher js to src
This commit is contained in:
parent
204bf2895e
commit
1db251a779
10 changed files with 41 additions and 23 deletions
|
|
@ -28,7 +28,7 @@ var ignoreList = ['**/mathjs/dist/math.min.js', '**/jquery.slim.min.js', '**/jqu
|
|||
|
||||
if (prod) console.warn('\x1b[36m%s\x1b[0m', 'Building minified js bundle for production... This may take a while... ');
|
||||
|
||||
b = browserify(path.resolve(__dirname + '/../src/browser/js/browser.js'), {debug:!fast, insertGlobals:fast, noParse: ignoreList})
|
||||
b = browserify(path.resolve(__dirname + '/../src/browser/js/index.js'), {debug:!fast, insertGlobals:fast, noParse: ignoreList})
|
||||
|
||||
b = b.transform(ignoreWrapper(babelify), {presets: ["env"]})
|
||||
|
||||
16
scripts/build-launcher.js
Normal file
16
scripts/build-launcher.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
var browserify = require('browserify'),
|
||||
licensify = require('licensify'),
|
||||
path = require('path'),
|
||||
ignoreList = ['**/mathjs/dist/math.min.js']
|
||||
|
||||
|
||||
browserify(path.resolve(__dirname + '/../src/launcher/index.js'), {
|
||||
debug: true,
|
||||
ignoreMissing: false ,
|
||||
detectGlobals: false,
|
||||
bare: true,
|
||||
noParse: ignoreList
|
||||
})
|
||||
.plugin(licensify)
|
||||
.bundle()
|
||||
.pipe(process.stdout)
|
||||
Loading…
Add table
Add a link
Reference in a new issue