New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile coffeescript #30
Conversation
Would you mind removing changes to dist/ in this PR. I only want those to change on version bump commits |
@@ -8,40 +8,40 @@ | |||
"email": "justin@testdouble.com", | |||
"url": "http://testdouble.com" | |||
}, | |||
"main": "index.js", | |||
"browser": "lib/testdouble.coffee", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no more "browser" entry?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope. the browser entry was only used to bypass the coffeescript registration being done in index.js. now that there is no coffeescript registration, the node entrypoint and browser entrypoint are the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fantastic
On Thu, Oct 1, 2015 at 2:38 PM Jason Karns notifications@github.com wrote:
In package.json
#30 (comment)
:@@ -8,40 +8,40 @@
"email": "justin@testdouble.com",
"url": "http://testdouble.com"
},
- "main": "index.js",
- "browser": "lib/testdouble.coffee",
nope. the browser entry was only used to bypass the coffeescript
registration being done in index.js. now that there is no coffeescript
registration, the node entrypoint and browser entrypoint are the same.—
Reply to this email directly or view it on GitHub
https://github.com/testdouble/testdouble.js/pull/30/files#r40949956.
Looks pretty exhaustive |
don't use .gitignore git ignores generated js, but we need generated js in the package git includes coffee but we don't want coffee in package git includes tests but we don't want tests in package
coffee already implicitly compiled before published because we use npm-version (which does a build which does a compile) is what kicks off a publish step. However, publish is also invoked whenever a package is installed at the top level. (Such as when `npm install` is run inside of a cloned repo) Compilation is necessary in this case so that a single npm-install will result in a requireable package. This is precisely why npm runs publish on `npm install` (with no args)
cc52887
to
ffb9753
Compare
The package.json diff looks bigger than it is.
Bigger picture:
mocha tests still point to coffee source, though this can be changed if desired. The important thing to me is that the same coffee compiler is used to compile for distribution ( |
In order to see what the published tarball will look like:
the tarball should include:
|
+1
|
Is this ready to merge? |
I think so, though it's been sufficiently purged from my memory |
Mind pushing to a @next tag or something? Just added you as owner |
sure thing On Mon, Oct 12, 2015 at 1:28 PM, Justin Searls notifications@github.com
|
merging because nobody knows if this works. |
Resolves #29