mirror of
https://github.com/NarrativeScience-old/log.io.git
synced 2026-04-25 17:15:52 +03:00
[GH-ISSUE #111] Cakefile appears to be invalid #90
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/log.io-NarrativeScience-old#90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JavaScriptDude on GitHub (Feb 9, 2014).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/111
I have been trying to tweak the project and need to run cake to re-build.
The Cakefile appears to have issues relating to the paths defined for BROWSERIFY, COFFEE, MOCHA and LESS.
For instance:
... will resolve to "/usr/bin/env browserify" which appears to be an invalid path.
I had to alter the ENV var to point to my NPM global root and fix the ENV to be a complete path to the NPM root and include backslash.
Am I wrong in assuming that the Cakefile checked in is invalid?
There is also an issue with running the lessc command. The current npm module less does not accept the -o parameter and its failing there for %cake build
The third issue is that the error handling on the exec callback can be improved. I had to change them as follows to improve the debugging:
Before:
After:
This improved syntax made sure that stdout and stderr are logged before the error is thrown and thus getting complete picture of the error.
Thanks.
@romanr commented on GitHub (Feb 17, 2014):
For me and some other people, this is fixed by entering command
export PATH=$PATH:./node_modules/.bin@JavaScriptDude commented on GitHub (Feb 17, 2014):
I was originally trying to build on Windows and now understand the first issue I noted about /user/bin/env.
I have followed the instruction: export PATH=$PATH:./node_modules/.bin
Following the cake errors, I installed the Node modules browserify, coffee-script, mocha and less.
I am stuck at 'less' task. The cake script is failing at the execution of LESS. I checked the stdout and stderr and apparently, the current version of less does not have -compress or -o options.
Here is the error:
The output matches the usage instructions for lessc.
Am I on the wrong version of less?
@JavaScriptDude commented on GitHub (Feb 17, 2014):
Minor correction: -compress will work because of they way that lessc wrote their parameter parsing. the -o option is not defined anywhere. I cannot find it in older versions either.
This issue is the same on Windohs and Linux with latest build of log.io and less.
@msmathers commented on GitHub (Aug 1, 2014):
This is an issue specific to Windows, which isn't officially supported yet. Builds on linux work fine as long as the correct version of less is used (~1.3.3) or the task is invoked via npm's
installorrun-script prepublish.