This repository has been archived by the owner on Jun 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
188 additions
and
1,657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
var fs = require("fs"); | ||
var browserify = require("browserify"); | ||
var watchify = require("watchify"); | ||
var babelify = require("babelify"); | ||
var bro = browserify({ debug: true, cache: {}, packageCache: {}, standalone: 'Exim'}); | ||
|
||
var bro = browserify({ debug: false, cache: {}, packageCache: {}}) | ||
function update () { | ||
bro | ||
.transform(babelify) | ||
.transform('exposify', { | ||
expose:{ | ||
'react':'React', | ||
'react-router':'ReactRouter' | ||
} | ||
}) | ||
.require("./src", { entry: true }) | ||
.bundle() | ||
.on("error", function (err) { console.log("Error : " + err.message); }) | ||
.pipe(fs.createWriteStream("./dist/exim.js")); | ||
} | ||
|
||
.pipe(fs.createWriteStream("./exim.js")) | ||
}; | ||
update(); | ||
|
||
// watchify({cache: {}}).on('update', update); | ||
|
Oops, something went wrong.