Coder Social home page Coder Social logo

Comments (7)

ahartzog avatar ahartzog commented on May 28, 2024 1

Awesome! I'll implement that NPM recipe. Thank you!

Thanks for this lib btw.

from react-native-ultimate-config.

ahartzog avatar ahartzog commented on May 28, 2024 1

Looks great, thanks!

from react-native-ultimate-config.

maxkomarychev avatar maxkomarychev commented on May 28, 2024

I guess I'm just used to yarn and didn't think about such difference.

rnuc is an executable script distributed together with the package, when you install a library both npm and yarn create symlinks to binary files in node_modules/.bin/..

so for yarn it's enough to do yarn <bin file> but for npm this will be $(npm bin)/<bin file>

in our case it will be $(npm bin)/rnuc

I can't give any better recipe for npm other than adding script in your package.json:

"rnuc": "$(npm bin)/rnuc"

and then you can execute it with npm like

npm run rnuc <env file>

from react-native-ultimate-config.

maxkomarychev avatar maxkomarychev commented on May 28, 2024

I'll update docs soon, thanks feedback!

from react-native-ultimate-config.

maxkomarychev avatar maxkomarychev commented on May 28, 2024

@ahartzog I have updated docs with npm variants of every command, please check it out.

thank you!

from react-native-ultimate-config.

nikola1970 avatar nikola1970 commented on May 28, 2024

I guess I'm just used to yarn and didn't think about such difference.

rnuc is an executable script distributed together with the package, when you install a library both npm and yarn create symlinks to binary files in node_modules/.bin/..

so for yarn it's enough to do yarn <bin file> but for npm this will be $(npm bin)/<bin file>

in our case it will be $(npm bin)/rnuc

I can't give any better recipe for npm other than adding script in your package.json:

"rnuc": "$(npm bin)/rnuc"

and then you can execute it with npm like

npm run rnuc <env file>

what would be this command on windows since I get the error "'$' is not recognized as an internal or external command,
operable program or batch file."? Thanks!

from react-native-ultimate-config.

maxkomarychev avatar maxkomarychev commented on May 28, 2024

@nikola1970 I don't have access to windows to try this out. I would recommend asking the question in stackoverflow since it's not specific to this library and more about using shell on windows.

Thanks.

from react-native-ultimate-config.

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.