Browse files

Adding files to turn mixable into a npm package

  • Loading branch information...
1 parent cb52a43 commit bb51603f1838d7d1e278c0f37ffe67785c7ca912 @petebrowne committed Jul 26, 2011
Showing with 20 additions and 4 deletions.
  1. +2 −0 .npmignore
  2. +1 −1 Cakefile
  3. +0 −1 VERSION
  4. +1 −1 dist/mixable.js
  5. +1 −1 dist/mixable.min.js
  6. +15 −0 package.json
View
2 .npmignore
@@ -0,0 +1,2 @@
+.eprj
+spec/*.js
View
2 Cakefile
@@ -5,7 +5,7 @@ uglify = require "uglify-js"
SOURCE_FILES = [ "src/mixable.coffee" ]
SPEC_FILES = [ "spec/include-spec.coffee", "spec/extend-spec.coffee", "spec/mixable-spec.coffee" ]
-VERSION = fs.readFileSync("VERSION", "utf8").replace /\s/g, ""
+VERSION = JSON.parse(fs.readFileSync "package.json", "utf8").version
HEADER = """
/**
* Modular.js v#{VERSION}
View
1 VERSION
@@ -1 +0,0 @@
-0.2.0
View
2 dist/mixable.js
@@ -1,5 +1,5 @@
/**
- * Modular.js v0.2.0
+ * Modular.js v0.3.0
* http://github.com/petebrowne/mixable
*
* Copyright (c) 2011, Pete Browne
View
2 dist/mixable.min.js
@@ -1,5 +1,5 @@
/**
- * Modular.js v0.2.0
+ * Modular.js v0.3.0
* http://github.com/petebrowne/mixable
*
* Copyright (c) 2011, Pete Browne
View
15 package.json
@@ -0,0 +1,15 @@
+{
+ "name": "mixable",
+ "version": "0.3.0",
+ "description": "A Ruby style mixin library for CoffeeScript & Javascript",
+ "homepage": "http://github.com/petebrowne/mixable",
+ "repository": { "type": "git", "url": "http://github.com/petebrowne/mixable" },
+ "main": "dist/mixable",
+ "keywords": [ "mixin", "extend" ],
+ "author": { "name": "Pete Browne", "email": "me@petebrowne.com", "url": "http://petebrowne.com" },
+ "devDependencies" : {
+ "coffee-script": "1.1.x",
+ "jasmine-node": "1.0.x",
+ "uglify-js": "1.0.x"
+ }
+}

0 comments on commit bb51603

Please sign in to comment.