Browse files

restructured package to get around build/ directory being ignored by …

…npm package
  • Loading branch information...
1 parent d0f13ee commit 31afd344947bf28477a30aecd36d36e336d77a55 @JamesMaroney JamesMaroney committed Mar 12, 2012
Showing with 6 additions and 10 deletions.
  1. +0 −1 .gitignore
  2. +2 −3 .npmignore
  3. +1 −3 Guardfile
  4. +2 −2 Rakefile
  5. +1 −1 package.json
View
1 .gitignore
@@ -1,2 +1 @@
-build
*.js
View
5 .npmignore
@@ -1,10 +1,9 @@
+!isolate.js
src/
-build/
-!build/isolate.js
.npmignore
.gitignore
Guardfile
Rakefile
bootstrap.*
-node_modules
+node_modules/
spec-fixtures/
View
4 Guardfile
@@ -1,10 +1,8 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
-guard 'coffeescript', :output => 'build' do
- watch(%r{^src/(.+\.coffee)})
-end
guard 'coffeescript', :output => '.' do
+ watch(%r{^src/(isolate.coffee)})
watch(%r{^([^/]+\.coffee)})
watch(%r{^(spec-fixtures.*.coffee)})
end
View
4 Rakefile
@@ -2,7 +2,7 @@ root=File.dirname __FILE__
task :default => [:build]
task :build do
- system("cd #{root} && coffee --compile --output build/ src/")
+ system("cd #{root} && coffee --compile --output . src/isolate.coffee")
system("cd #{root} && coffee --compile bootstrap.coffee")
end
@@ -11,5 +11,5 @@ task :test => [:build] do
end
task :clean do
- system "cd #{root} && rm -rf ./build ./bootstrap.js"
+ system "cd #{root} && rm -rf ./isolate.js ./bootstrap.js"
end
View
2 package.json
@@ -4,7 +4,7 @@
"author": "The Network, Inc",
"description": "IoC / Injection framework for CommonJs and AMD module dependencies to support Test Driven Development.",
"homepage": "https://github.com/tnwinc/Isolate",
- "main": "./build/isolate.js",
+ "main": "./isolate.js",
"scripts": {
"test": "rake test"
},

0 comments on commit 31afd34

Please sign in to comment.