Closed OnkelTem closed 9 years ago
Oh, just noticed - there is no index.js, so it doesn't provide anything, right? No wonder it doesn't work with gulp-jade2php which tries to require() it. So what was the idea behind gulp-jade2php?
latest version of jade2php must require()-able without problem, please check
A moment
Ok, got the version from git (latest commit is 98d02c45)
Then I've replaced the contents of gulp-jade2php/node_modules/jade2php
directory with the version I got.
Still watching error :(
package.json
:
{
"dependencies": {
"jade2php": "^1.1.7"
}
}
index.js
:
var jade2php = require("jade2php");
if (jade2php) {
console.log("jade2php require() success");
} else {
console.log("jade2php require() failure");
}
$ npm install
$ node index.js
jade2php require() success
Not sure what's problem with gulp-jade2php
.
@FranzSkuffka , could you mind to assist with that?
The gulp-jade2php module is just crap tbh. I am going to unpublish it. I lacked some experience and understanding when i wrote this. Creating an adapter for https://github.com/jenius/accord is the way to go imho.
jade2php require() success
странно, так у меня тоже получилось
Creating an adapter for https://github.com/jenius/accord is the way to go imho.
Can't wait!
@OnkelTem, cloned git repo isn't same as fetching NPM module.
Git repo maintain sources (coffee, tests), while NPM module contain compiled output (js, no tests, no coffee).
To make your-way git-cloned repo work as an NPM module, do npm install ; npm run prepublish
in repo directory.
Does this issue actual yet?
There is a solution available: https://www.npmjs.com/package/gulp-jade2php
When using gulp-jade2php:
Also, it's not clear what do you mean under "temporary" solution here https://www.npmjs.com/package/gulp-jade2php and why do you suggest using gulp-accord which doesn't support jade2php or it does?