Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@splitmedialabs/devctl

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@splitmedialabs/devctl - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

33

package.json
{
"name": "@splitmedialabs/devctl",
"version": "1.0.2",
"version": "2.0.0",
"author": "Makara Sok",
"description": "Easily start developing in monorepos with docker-compose",

@@ -15,20 +16,28 @@ "bin": {

],
"repository": {
"type": "git",
"url": "git+https://github.com/SplitmediaLabsLimited/devctl.git"
},
"bugs": {
"url": "https://github.com/SplitmediaLabsLimited/devctl/issues"
},
"license": "MIT",
"dependencies": {
"bluebird": "^3.5.4",
"dockerode": "^2.5.8",
"bluebird": "^3.7.1",
"cosmiconfig": "^6.0.0",
"dockerode": "^3.0.2",
"get-port": "^5.0.0",
"gluegun": "^3.2.3",
"gluegun": "^4.1.2",
"js-yaml": "^3.13.1",
"lodash": "^4.17.11"
"lodash": "^4.17.15"
},
"devDependencies": {
"babel-eslint": "^10.0.1",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-jest": "^22.6.4",
"eslint-plugin-prettier": "^3.1.0",
"jest": "^23.6.0",
"prettier": "^1.12.1"
"babel-eslint": "^10.0.3",
"eslint": "^6.7.1",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-jest": "^23.0.5",
"eslint-plugin-prettier": "^3.1.1",
"jest": "^24.9.0",
"prettier": "^1.19.1"
}
}

@@ -27,2 +27,40 @@ const YAML = require('js-yaml');

async function askServices(project) {
const allChoices = Object.values(project.services)
.map(service => ({
name: service.name,
message: service.name,
hint: service.description,
value: service.name,
category: service.category,
}))
.sort(function(a, b) {
const keyA = a.name.toLowerCase();
const keyB = b.name.toLowerCase();
if (keyA < keyB) return -1;
if (keyA > keyB) return 1;
return 0;
});
const choices = allChoices.filter(c => c.category !== 'always');
const choicesArray = choices.map(c => c.value);
const always = allChoices
.filter(c => c.category === 'always')
.map(c => c.value);
const initial = get(project, 'current.services', []).filter(c =>
choicesArray.includes(c)
);
const { services } = await prompt.ask({
type: 'multiselect',
name: 'services',
message: 'Which services do you want to work on? (lol)',
choices,
initial,
});
return { services: [...services, ...always] };
}
async function saveCurrentConfig(path, config) {

@@ -38,14 +76,3 @@ return filesystem.write(path, YAML.dump(config));

const { services } = await prompt.ask({
type: 'multiselect',
name: 'services',
message: 'Which services do you want to work on?',
choices: Object.values(project.services).map(service => ({
name: service.name,
message: service.name,
hint: service.description,
value: service.name,
})),
initial: get(project, 'current.services', []),
});
const { services } = await askServices(project);

@@ -52,0 +79,0 @@ const { environment } = await askEnvironment(project);

@@ -1,2 +0,2 @@

const cosmic = require('cosmiconfig');
const { cosmiconfig } = require('cosmiconfig');
const { resolve, dirname } = require('path');

@@ -11,3 +11,3 @@ const get = require('lodash/get');

toolbox.getProjectConfig = async () => {
const search = await cosmic('devctl', {
const search = await cosmiconfig('devctl', {
searchPlaces: [

@@ -14,0 +14,0 @@ '.devctl.json',

@@ -23,3 +23,3 @@ const { filesystem, system, print } = require('gluegun');

return async ({ cmd, msg, options }) => {
const command = `docker-compose -f ${compose} ${cmd}`;
const command = `docker-compose -f "${compose}" ${cmd}`;

@@ -26,0 +26,0 @@ if (async) {

const Promise = require('bluebird');
const cosmic = require('cosmiconfig');
const { cosmiconfig } = require('cosmiconfig');
const { resolve } = require('path');

@@ -22,3 +22,3 @@ const get = require('lodash/get');

const search = await cosmic('devconfig', {
const search = await cosmiconfig('devconfig', {
searchPlaces: [

@@ -25,0 +25,0 @@ '.devconfig.yaml',

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