Code Monkey home page Code Monkey logo

laravel-elixir-jade's People

Contributors

artemverbo avatar creeation avatar fidgetwidget avatar lazytyper avatar mastito03 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

laravel-elixir-jade's Issues

the "basedir" option is required to use "include" with "absolute" paths

Hi,
I have a problem. I try to include a file with mixins using an absolute path, but I am getting following error:
"the "basedir" option is required to use "include" with "absolute" paths"

However, .jade method in my gulpfile.js contains a defined basedir (it should be the default value anyway):
mix.jade({
baseDir: './resources',
pretty: true
})

Mixins work as expected when I use relative path.
Thx for inspecting this issue.

allow mixin to be auto included in jade

really nice plugin

I was wondering if it is possible to add an option to write an include statement in all the jade file as the compile for mixins?

example:

mix.jade({
  mixins: ['mixins/*.jade']
});

for all jades found it will take all jade files it compiles and add a:

include /path/to/mixins/test.jade
include /path/to/mixins/test2.jade

to the top of the jade file, before they compile.

i hope I made myself understandable.

Does not seem to work with elixir 3.0.0

I get this error when trying to implement laravel-elixir-jade into laravel with elixir 3.0.0
it works fine when using elixir 2.0.0

/Applications/MAMP/htdocs/github/laravel-test/node_modules/laravel-elixir-jade/index.js:59
    this.registerWatcher('jade', [
         ^
TypeError: undefined is not a function
    at Function.<anonymous> (/Applications/MAMP/htdocs/github/laravel-test/node_modules/laravel-elixir-jade/index.js:59:10)
    at Function.<anonymous> (/Applications/MAMP/htdocs/github/laravel-test/node_modules/laravel-elixir/index.js:46:18)
    at /Applications/MAMP/htdocs/github/laravel-test/gulpfile.js:6:9
    at Elixir (/Applications/MAMP/htdocs/github/laravel-test/node_modules/laravel-elixir/index.js:20:5)
    at Object.<anonymous> (/Applications/MAMP/htdocs/github/laravel-test/gulpfile.js:5:1)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

Use gulp-jade-php

I think we should use gulp-jade-php. It supports if, foreach etc. for PHP...
I'll work on it soon.

gulp-jade

Hi,

FYI the gulp-jade dependency is missing in the package.json, throwing an error if you are not setting the jadephp option to true.

https://github.com/CREEATION/laravel-elixir-jade/blob/master/index.js#L37

Error: Cannot find module 'gulp-jade'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Function.<anonymous> (/home/vagrant/node_modules/laravel-elixir-jade/index.js:37:57)
    at Function.<anonymous> (/home/vagrant/node_modules/laravel-elixir/index.js:40:18)
    at /home/vagrant/gulpfile.js:156:10
    at Elixir (/home/vagrant/node_modules/laravel-elixir/index.js:16:5)
    at Object.<anonymous> (/home/vagrant/gulpfile.js:76:1)
    at Module._compile (module.js:398:26)

Allow to exclude jade files

Hello, thanks for your great plugin!

It would be great if we could exclude a jade file from the pipe, I mean for example the mixins files which didn't have to be compiled into a blade file.

Gulp watch cancels if Jade encounters an error

Whenever I compile a jade template that has an error in it, gulp watch exits out completely and needs to be restarted. Other plugins (like the LESS-Compiler) do not do this. Is there a way to catch the error and let the watch script run? Thanks in advance!

Configure extensions

Hi

It would be awesome, if the produced extension could be configured.
Right now it's locked to php or blade.php.

If we could specify an extension instead of having a blade:true , maybe defaulting to blade.php it could be used to compile both backend and front-end templates, like AngularJS, etc.

Cheers, Sebi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.