expo-env-cli
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -32,7 +32,8 @@ "use strict"; | ||
const _$drop = _lodash.default.drop(process.argv, 2), | ||
_$drop2 = _toArray(_$drop), | ||
firstArg = _$drop2[0], | ||
restOfArgs = _$drop2.slice(1); | ||
const allArgs = _lodash.default.drop(process.argv, 2); | ||
const _allArgs = _toArray(allArgs), | ||
firstArg = _allArgs[0], | ||
restOfArgs = _allArgs.slice(1); | ||
if (firstArg === 'publish') { | ||
@@ -49,3 +50,3 @@ (0, _publish.publish)(restOfArgs); | ||
} else { | ||
(0, _executeExpo.executeExpo)([firstArg, ...restOfArgs]); | ||
(0, _executeExpo.executeExpo)(allArgs); | ||
} | ||
@@ -52,0 +53,0 @@ } |
{ | ||
"name": "expo-env-cli", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Environment aware expo-cli wrapper", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,2 +14,17 @@ # expo-env | ||
## Forces the use of `/node_modules'` expo | ||
expo-env fails to run if the local project doesn't have expo installed locally. | ||
Listing the correct expo-cli dependency is important for the project stability. | ||
## Expands expo start | ||
expo-env's start takes additional argument `env`, for example: | ||
```bash | ||
expo-env build:android production --ios | ||
``` | ||
The command does the following actions: | ||
- logs into expo using credentials in `expo-env/credentials.json` | ||
- copies expo-env/production.env to .env (if it exists) | ||
- copies expo-env/production.env.json to env.json (if it exists) | ||
- executes expo start --ios | ||
## Expands expo build:android | ||
@@ -16,0 +31,0 @@ expo-env's build:android takes additional argument `env`, for example: |
@@ -13,3 +13,4 @@ import _ from 'lodash'; | ||
localLogin(); | ||
const [firstArg, ...restOfArgs] = _.drop(process.argv, 2); | ||
const allArgs = _.drop(process.argv, 2); | ||
const [firstArg, ...restOfArgs] = allArgs; | ||
@@ -27,3 +28,3 @@ if (firstArg === 'publish') { | ||
} else { | ||
executeExpo([firstArg, ...restOfArgs]); | ||
executeExpo(allArgs); | ||
} | ||
@@ -30,0 +31,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
421
67
31400
27