Comments (7)
Awesome! I'll implement that NPM recipe. Thank you!
Thanks for this lib btw.
from react-native-ultimate-config.
Looks great, thanks!
from react-native-ultimate-config.
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.
I'll update docs soon, thanks feedback!
from react-native-ultimate-config.
@ahartzog I have updated docs with npm
variants of every command, please check it out.
thank you!
from react-native-ultimate-config.
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 innode_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.
@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)
- Warning on build: ios/rnuc.xcconfig: line 1: //: is a directory HOT 4
- is it possible to keep env based package name in proguard-rules.pro? HOT 2
- Build Failure - RN 0.69.1 HOT 30
- Android JCenter - build failure HOT 3
- expo 47 compatible ? HOT 2
- RN issue: Cannot choose between the following variants of com.facebook.react:react-native HOT 4
- Cannot choose between the following variants of com.facebook.react:react-native:0.70.6: HOT 2
- Error React Native IOS Undefined symbol: _RCTRegisterModule HOT 1
- Build error on 0.71.2: 'RNUltimateConfigSpec.h' file not found HOT 7
- Doc/Quickstart (minor): `npm bin` deprecated in Node 18.14 HOT 1
- Gradle 8 support HOT 4
- Could not set unknown property 'classifier' for task
- Packaging error
- Multiple env files possible? HOT 1
- Kotlin support
- '$' is not recognized as internal or external command HOT 1
- Error: Cannot resolve ./override HOT 8
- Does this package support use_frameworks! :linkage => :static ? HOT 1
- Firebase Initialization Issue with react-native-ultimate-config in NX Monorepo
- How to access from shell scripts HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-ultimate-config.