Socket
Socket
Sign inDemoInstall

@multivisio/nswow

Package Overview
Dependencies
Maintainers
3
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@multivisio/nswow - npm Package Compare versions

Comparing version 0.1.18 to 0.1.19

scripts/migrate-livingdocs-build/bin/build.js

43

cli.js
#!/usr/bin/env node
import { Command } from "commander";
import { readFile } from 'fs/promises';
import { addComponents, removeComponents, createComponent } from "./scripts/components.mjs";
import { addComponents, removeComponents, createComponent, removeGroups, createGroup } from "./scripts/components.mjs";
import { build, map } from "./scripts/build.mjs";

@@ -29,14 +29,24 @@ import { beaver } from "./scripts/beaver.mjs";

commander.command("components")
.description("Add, remove or create a component to development")
.argument('<action>', "Chose action. Could be add, remove or create a custom component")
commander.command("add")
.description("Add components to development")
.argument('<action>', "Chose action. Could be components")
.action((action, options) => {
if (action === 'add') {
if (action === 'components') {
addComponents();
} else if (action === 'remove') {
} else {
console.error("You can add components!");
}
})
;
commander.command("remove")
.description("Remove components or groups from development")
.argument('<action>', "Chose action. Could be components or groups")
.action((action, options) => {
if (action === 'components') {
removeComponents();
} else if (action === 'create') {
createComponent();
} else if (action === 'groups') {
removeGroups();
} else {
console.error("You can add, remove or create a custom component!");
console.error("You can remove components or groups!");
}

@@ -46,2 +56,17 @@ })

commander.command("create")
.description("Create component or group from development")
.argument('[action]', "Chose action. Could be component or group")
.argument('[name]', "The name of component or group.")
.action((action, name, options) => {
if (action === 'component') {
createComponent(name);
} else if (action === 'group') {
createGroup(name);
} else {
console.error("You can create component or group!");
}
})
;
commander.command("build")

@@ -48,0 +73,0 @@ .description("Build ldd, app, pdf and word for production")

@@ -18,3 +18,3 @@ {

"devDependencies": {
"@multivisio/nswow": "^0.1.18",
"@multivisio/nswow": "^0.1.19",
"@vitejs/plugin-vue": "^4.6.2",

@@ -21,0 +21,0 @@ "@vue/test-utils": "^2.4.4",

{
"name": "@multivisio/nswow",
"version": "0.1.18",
"version": "0.1.19",
"description": "Manage nswow templates, build and publish",

@@ -12,9 +12,15 @@ "bin": {

"archiver": "^7.0.1",
"cheerio": "^1.0.0-rc.12",
"colors": "^1.4.0",
"commander": "^11.1.0",
"enquirer": "^2.4.1",
"fs": "^0.0.1-security",
"fs-extra": "^11.2.0",
"glob": "^10.3.10",
"globby": "^13.2.2",
"html-minifier": "^4.0.0",
"lodash": "^4.17.21",
"modern-css-reset": "^1.4.0",
"vite": "^4.5.2",
"winston": "^3.12.0",
"write-json": "^3.0.1"

@@ -21,0 +27,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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