New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@idearium/cli

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@idearium/cli - npm Package Compare versions

Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7

12

bin/c-dc-env-file.js

@@ -23,8 +23,12 @@ #!/usr/bin/env node

// Load the current configuration, so we don't loose any previous values.
const locals = dotenv.config();
// Setup the locals.
// Load the defaults first.
const defaults = dotenv.config({ path: path.join(projectRoot, 'devops', 'templates', '.env.defaults') }).parsed;
// Set the default value for `COMPOSE_FILE`.
locals.COMPOSE_FILE = 'docker-compose.yml';
// Update the defaults with the current configuration.
const locals = Object.assign({}, defaults, dotenv.config().parsed);
// Reset the COMPOSE_FILE value.
locals.COMPOSE_FILE = defaults.COMPOSE_FILE;
// Let's determine if the file exists first.

@@ -31,0 +35,0 @@ if (value !== 'reset') {

@@ -5,4 +5,24 @@ # @ideariym/cli

## 1.0.0-alpha.5
## 1.0.0-alpha.7
Improvements.
### Improvements
- `c dc env file` now requires you provide, in addition to `./devops/templates/.env.tmpl` a `./devops/templates/.env.defaults` file, for a list of default values to provide to the template. Example files below.
**`.env.tmpl`**
```
COMPOSE_PROJECT_NAME={{COMPOSE_PROJECT_NAME}}
COMPOSE_FILE={{COMPOSE_FILE}}
```
**`.env.defaults`**
```
COMPOSE_PROJECT_NAME=cp
COMPOSE_FILE=docker-compose.yml
```
## 1.0.0-alpha.6
New commands.

@@ -9,0 +29,0 @@

{
"name": "@idearium/cli",
"version": "1.0.0-alpha.6",
"version": "1.0.0-alpha.7",
"description": "The Idearium cli, which makes working with our projects much easier.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc