Permalink
Browse files

0.3alpha21 - preliminary dependencies.noWeb

  • Loading branch information...
1 parent ce46ce4 commit 1bf1a8193fad5ddc531b44bd48f5f0d7ccbd1bd1 @anodynos committed Apr 4, 2013

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,8 +1,8 @@
#!/usr/bin/env node
/*!
-* urequire - version 0.3.0alpha21
-* Compiled on 2013-02-13
+* urequire - version 0.3.0alpha22
+* Compiled on 2013-04-04
* git://github.com/anodynos/urequire
* Copyright(c) 2013 Agelos Pikoulas (agelos.pikoulas@gmail.com )
* Licensed MIT http://www.opensource.org/licenses/mit-license.php
@@ -1,4 +1,4 @@
-var VERSION = '0.3.0alpha21'; //injected by grunt:concat
+var VERSION = '0.3.0alpha22'; //injected by grunt:concat
// Generated by CoffeeScript 1.4.0
var Logger, _,
View
@@ -1,7 +1,7 @@
{
"name": "urequire",
"description": "Module converter: write modular code once, convert to UMD and run/test on AMD (browser/requirejs) & nodejs.",
- "version": "0.3.0alpha21",
+ "version": "0.3.0alpha22",
"homepage": "https://github.com/anodynos/urequire",
"author": {
"name": "Agelos Pikoulas",
@@ -26,7 +26,7 @@ class BundleBuilder
Function::staticProperty = (p)=> Object.defineProperty @::, n, d for n, d of p
constructor: -> @_constructor.apply @, arguments
- _constructor: (configs...)->
+ _constructor: (@configs...)->
# Create our 2 main config objects : 'bundle' & 'build'
@bundleCfg = {}
@@ -45,8 +45,6 @@ class BundleBuilder
# in each config, we might have nested configFiles
# todo: read configFiles with the proper recursion above
for cfgFilename in _B.arrayize config.configFiles when cfgFilename # no nulls/empty strings
- # assume bundlePath, if its empty, from the 1st configFile that comes along
- @bundleCfg.bundlePath or= upath.dirname cfgFilename
# get deep defaults to current configuration
@storeCfgDefaults require _fs.realpathSync cfgFilename
# ? add configFile to exclude'd files ?
@@ -155,10 +153,16 @@ class BundleBuilder
isCheckAndFixPaths: ->
if not @bundleCfg.bundlePath
- l.err """
- Quitting build, no bundlePath specified.
- Use -h for help"""
- return false
+ # assume bundlePath, from the 1st configFile that come along
+ if cfgFile = @configs[0]?.configFiles[0]
+ l.debug 40, "Assuming bundlePath = '#{upath.dirname cfgFile}' from 1st configFile: '#{cfgFile}'"
+ @bundleCfg.bundlePath = upath.dirname cfgFile
+ return true
+ else
+ l.err """
+ Quitting build, no bundlePath specified.
+ Use -h for help"""
+ return false
else
if @buildCfg.forceOverwriteSources
@buildCfg.outputPath = @bundleCfg.bundlePath

0 comments on commit 1bf1a81

Please sign in to comment.