modularize bundler and minify scripts
This commit is contained in:
parent
639967c767
commit
89492a4956
8 changed files with 173 additions and 124 deletions
|
|
@ -33,7 +33,7 @@ function traverseDirectory(pathname, callback) {
|
|||
traverseDirectory(".", function(pathname, stat, children) {
|
||||
if (pathname.indexOf("node_modules") > -1) return
|
||||
if (pathname.match(/(?:^|\/)tests\/.*\.js$/)) {
|
||||
require("../../" + pathname)
|
||||
require(path.normalize(process.cwd()) + "/" + pathname)
|
||||
}
|
||||
})
|
||||
.then(o.run)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue