Skip to content
Browse files

Precompile before publishing, no longer requires Coffee-Script to run.

  • Loading branch information...
1 parent b06c832 commit 946ebf53578806a9874864cebfd721bbec6204ba @assaf committed May 2, 2012
Showing with 31 additions and 10 deletions.
  1. +1 −0 .gitignore
  2. +5 −0 CHANGELOG.md
  3. +24 −0 Makefile
  4. +0 −9 lib/replay.js
  5. +1 −1 package.json
View
1 .gitignore
@@ -1 +1,2 @@
node_modules
+lib/**/*.js
View
5 CHANGELOG.md
@@ -1,3 +1,8 @@
+## Version 1.4.3 2012-05-02
+
+Precompile before publishing, no longer requires Coffee-Script to run.
+
+
## Version 1.4.2 2012-05-02
Added support for HTTPS (Jerome Gravel-Niquet)
View
24 Makefile
@@ -0,0 +1,24 @@
+default : test
+.PHONY : clean setup test
+
+# Setup everything
+setup :
+ npm install
+
+# Run test suite
+test : setup clean
+ npm test
+
+# Remove temporary files
+clean :
+ rm -f lib/*.js
+ rm -f lib/replay/*.js
+
+# CoffeeScript to JavaScript
+build : clean
+ coffee -b -c -l -o lib/replay lib/replay/*.coffee
+
+# Publish new release to NPM
+publish : test build
+ git push
+ npm publish
View
9 lib/replay.js
@@ -1,9 +0,0 @@
-var coffee = require("coffee-script");
-var File = require("fs");
-if (!require.extensions[".coffee"]) {
- require.extensions[".coffee"] = function (module, filename) {
- var source = coffee.compile(File.readFileSync(filename, "utf8"));
- return module._compile(source, filename);
- };
-}
-module.exports = require(__filename.replace(/\.js$/, "/index.coffee"));
View
2 package.json
@@ -15,9 +15,9 @@
"test": "./node_modules/.bin/mocha"
},
"dependencies": {
- "coffee-script": "~1.3.1"
},
"devDependencies": {
+ "coffee-script": "~1.3.1",
"express": "~2.5.9",
"mocha": "~1.0.2",
"async": "~0.1.18"

0 comments on commit 946ebf5

Please sign in to comment.
Something went wrong with that request. Please try again.