Coder Social home page Coder Social logo

New command: serve about volo HOT 10 CLOSED

jrburke avatar jrburke commented on August 30, 2024
New command: serve

from volo.

Comments (10)

dmose avatar dmose commented on August 30, 2024

This sounds like a very worthwhile feature to me.

from volo.

asciidisco avatar asciidisco commented on August 30, 2024

Mhh,
i think that this feature doesn´t belong to volo.
I consider to use grunt instead if users rely on that feature.

from volo.

wilmoore avatar wilmoore commented on August 30, 2024

@jrburke Please don't add a generic server to volo. I mean no offense but he following statement, but I personally feel like volo does a ton already. (1) package manager (2) build tool (3) project scaffolding. I really want to open an issue that pleads for you to scale volo back to do just (1). Again, no offense meant (and I hope this doesn't sound like I'm trying to tell you how to run your own project); I am just seeing a tool that is shaping up to be awesome at (1) and I wonder why it also needs to do (2) and (3)? Please dont' add a (4).

from volo.

jrburke avatar jrburke commented on August 30, 2024

@wilmoore I agree that this does not belong in volo proper, and will close out this ticket. I also appreciate the feedback.

For me, the (3) project scaffolding, by which I think you mean volo create, seems to fit with the package manager part -- it just happens to pull down a zip file of a project, instead of a dependency. It uses the same github IDs to do so.

I am receptive about trying to reduce the scope for (2) build tool. I am not sure how to do that yet. I still feel like there needs to be something to make doing simple coding of a project action easier to do in node, something that does not result in needing to download a bunch of code from npm for each task that needs it. The onCreate and onAdd hooks for volofiles in volo add and volo create seem useful too. Maybe that just argues for something like npm's "scripts" support in volo though instead.

But this is best discussed in a separate issue. I will close this issue down though as out of scope. It should be enough to just point people on the volojs web site on what to install to get this capability.

from volo.

wilmoore avatar wilmoore commented on August 30, 2024

...volo create, seems to fit with the package manager part -- it just happens to pull down a zip file of a project

I think I can get behind this as "extra sugar". Perhaps the build tool addition made this feature look worse than it really is.

from volo.

wilmoore avatar wilmoore commented on August 30, 2024

Maybe that just argues for something like npm's "scripts" support in volo though instead.

I'm not too keen on NPM taking on this responsibility either. I think people accept it for some reason, but I don't think it's a super idea.

Grunt (and others) do a fine job of just being a build tool and allowing you to add plugins. I was going to say that I see a grunt volo plugin making sense, but then I just found that there is one: https://npmjs.org/package/grunt-volo.

I tend to use a makefile, but I can see myself using grunt going forward for front-end projects.

from volo.

jrburke avatar jrburke commented on August 30, 2024

On the npm "scripts" thing, I meant more that it may make sense for volo to have a similar feature, not to rely on npm directly.

For me, grunt introduces an unnecessary adapter layer, more about this in volo-and-grunt. Makefiles are nice, just hard to use on Windows. Maybe doing something like shelljs is enough. Still feeling that out though.

from volo.

wilmoore avatar wilmoore commented on August 30, 2024

So it sounds like it is feasible that one could use a volofile solely for the purpose of creating a project template? Does that mean that I can use volo create to initialize a project and not have that volofile sitting in the derived project directory?

from volo.

jrburke avatar jrburke commented on August 30, 2024

Yes, in the project template's volofile's onCreate, it can decide to just delete the volofile when done: v.rm('volofile').

from volo.

wilmoore avatar wilmoore commented on August 30, 2024

Cool...works for me :)

from volo.

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.