Code Monkey home page Code Monkey logo

Comments (5)

evshiron avatar evshiron commented on July 17, 2024

Looks reasonable.

from nwjs-builder.

evshiron avatar evshiron commented on July 17, 2024

@BoatsAreRockable Could you please give me some examples of your expectation for this feature?

from nwjs-builder.

charlielee avatar charlielee commented on July 17, 2024

I'd like to be able to have an output directory name corresponding to the version field of my application's package.json, eg: AppName-{{version}}.

If you think this feature would have a limited usage then never mind, it should be easy enough for me to add a line to rename the output directory to add the version number in my build process :)

By the way, thanks for working on this project! I am very impressed at how quickly it has surpassed nw-builder in features.

from nwjs-builder.

evshiron avatar evshiron commented on July 17, 2024

@BoatsAreRockable The output directory is where to put the builds, and I think the usage is quite limited.
For your case, I have searched a bit and found some JSON command line tools, such as trentm/json. So a possible solution will be:

npm install json -g
nwb nwbuild -o "./$(json name < package.json)-$(json version < package.json)/" 

It should also work as module, simply read package.json and construct a string for outputDir should be enough.

Thank you. I am glad to know this project helps.

from nwjs-builder.

charlielee avatar charlielee commented on July 17, 2024

Thank you for your help!

from nwjs-builder.

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.