Giter Site home page Giter Site logo

Comments (7)

yocontra avatar yocontra commented on July 17, 2024 1

Did anyone ever make a gulp init command or a useful help command? We can get rid of the touch command from the example if the CLI had a really helpful view.

from gulpjs.github.io.

phated avatar phated commented on July 17, 2024 1

Yeah, I was pretty sure echo wasn't a "proper" echo in windows. 😦 I'm still considering a flag (like --init or something) to make this more cross-platform friendly.

from gulpjs.github.io.

ansballard avatar ansballard commented on July 17, 2024

Well I haven't come up with any great options. There's the type command that's almost perfect, but the usage is different between OS's. The windows command is type NUL >> gulpfile.js, and nix is type >> gulpfile.js. So that still requires detecting what the user is running with javascript.

We could do it in node, which they need to run gulp in the first place, but it's dirty. node -e require("fs").writeFileSync("./gulpfile.js", ""), so I don't think that's viable, unless there's a more succinct way.

from gulpjs.github.io.

phated avatar phated commented on July 17, 2024

I don't like many of those solutions. Could we add a BASH comment saying *nix only on that line or something? Or maybe or create this file?

from gulpjs.github.io.

ansballard avatar ansballard commented on July 17, 2024

Tried both, I think I like or create this file better with the font. Sorry for the quality, kap decided not to work today.

or create this file:

http://i.giphy.com/26gs8CWLCrD3xYByw.gif

*nix only

http://i.giphy.com/l3q2PPDNhJLYushZS.gif

from gulpjs.github.io.

sumnerevans avatar sumnerevans commented on July 17, 2024

Is echo "" > gulpfile.js or echo > gulpfile.js cross platform?

from gulpjs.github.io.

ansballard avatar ansballard commented on July 17, 2024

Both commands leave some junk text in the file on windows. The first contains "" and the second ECHO is on.

from gulpjs.github.io.

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.