Coder Social home page Coder Social logo

Comments (4)

HerringtonDarkholme avatar HerringtonDarkholme commented on June 17, 2024

Can you provide example configuration? I'm sorry I cannot understand your problem.
I use gulp-progeny and gulp-stylus every day and nothing seems go wrong.

from gulp-progeny.

mogelbrod avatar mogelbrod commented on June 17, 2024

Sure!

mkdir test
cd test
mkdir styles

package.json:

{
  "name": "test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "gulp": "^3.9.0",
    "gulp-cached": "^1.1.0",
    "gulp-progeny": "^0.1.2",
    "gulp-rename": "^1.2.2",
    "gulp-stylus": "^2.0.6",
    "livescript": "^1.4.0"
  }
}

gulpfile.ls: (LiveScript, hope that's okay)

require! <[ gulp gulp-stylus gulp-progeny gulp-rename ]>

gulp.task \failing, ->
  gulp.src ['**/*.styl'], cwd: \styles
    .pipe gulp-stylus!
    .pipe gulp-progeny!
    .pipe gulp.dest \build

gulp.task \working, ->
  gulp.src ['**/*.styl'], cwd: \styles
    .pipe gulp-stylus!
    .pipe gulp-rename extname: \.styl
    .pipe gulp-progeny!
    .pipe gulp-rename extname: \.css
    .pipe gulp.dest \build

gulp.task \default, <[ failing ]>

styles/index.styl:

body
  background: green

Run the test cases:

npm install
gulp failing # Should throw "Error: no writecb in Transform class"
gulp working # Should work

from gulp-progeny.

HerringtonDarkholme avatar HerringtonDarkholme commented on June 17, 2024

Oops, I think progeny should go before stylus. Just like the #example.

Internally progeny checks whether dependency files exists, but if the file is provided by gulp, it skip checking.

from gulp-progeny.

mogelbrod avatar mogelbrod commented on June 17, 2024

Haha, what a dumb mistake by me :D
Thanks for pointing it out, and for the quick replies!

from gulp-progeny.

Related Issues (20)

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.