Skip to content

Commit

Permalink
moved
Browse files Browse the repository at this point in the history
  • Loading branch information
craigspaeth committed Jan 10, 2014
1 parent ff6e048 commit 1f11afe
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/nap.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ module.exports = (options = {}) =>
throw new Error "You must specify an 'assets' obj with keys 'js', 'css', or 'jst'"
@assets = _.clone options.assets
@originalAssets = _.clone options.assets
@appDir = (if options.appDir? then options.appDir else process.cwd())
expandAssetGlobs()

# Config defaults
@appDir = (if options.appDir? then options.appDir else process.cwd())
@publicDir = path.resolve(@appDir, options.publicDir || 'public')
@mode = options.mode ? switch process.env.NODE_ENV
when 'staging' then 'production'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nap",
"version": "0.7.14",
"version": "0.7.15",
"author": {
"name": "Craig Spaeth",
"email": "craigspaeth@gmail.com",
Expand Down
6 changes: 6 additions & 0 deletions test/fixtures/app_dir/public/assets/src/boo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(function() {
var boo;

boo = 'bam';

}).call(this);
1 change: 1 addition & 0 deletions test/fixtures/app_dir/src/boo.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
boo = 'bam'
2 changes: 1 addition & 1 deletion test/nap_spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe 'appDir', ->
js:
foo: ['/src/*.coffee']
nap.js('foo').should
.equal "<script src='/assets/src/foo.js' type='text/javascript'></script>"
.include "<script src='/assets/src/foo.js' type='text/javascript'></script>"

describe '#js', ->

Expand Down

0 comments on commit 1f11afe

Please sign in to comment.