@multivisio/nswow
Advanced tools
Comparing version 0.1.18 to 0.1.19
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
464
346726
15
4735
12
+ Addedcheerio@^1.0.0-rc.12
+ Addedfs@^0.0.1-security
+ Addedglobby@^13.2.2
+ Addedhtml-minifier@^4.0.0
+ Addedlodash@^4.17.21
+ Addedwinston@^3.12.0
+ Added@colors/colors@1.6.0(transitive)
+ Added@dabh/diagnostics@2.0.3(transitive)
+ Added@nodelib/fs.scandir@2.1.5(transitive)
+ Added@nodelib/fs.stat@2.0.5(transitive)
+ Added@nodelib/fs.walk@1.2.8(transitive)
+ Added@types/triple-beam@1.3.5(transitive)
+ Addedboolbase@1.0.0(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedcamel-case@3.0.0(transitive)
+ Addedcheerio@1.0.0(transitive)
+ Addedcheerio-select@2.1.0(transitive)
+ Addedclean-css@4.2.4(transitive)
+ Addedcolor@3.2.1(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addedcolorspace@1.1.4(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcss-select@5.1.0(transitive)
+ Addedcss-what@6.1.0(transitive)
+ Addeddir-glob@3.0.1(transitive)
+ Addeddom-serializer@2.0.0(transitive)
+ Addeddomelementtype@2.3.0(transitive)
+ Addeddomhandler@5.0.3(transitive)
+ Addeddomutils@3.1.0(transitive)
+ Addedenabled@2.0.0(transitive)
+ Addedencoding-sniffer@0.2.0(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedfast-glob@3.3.2(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedfecha@4.2.3(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedfn.name@1.1.0(transitive)
+ Addedfs@0.0.1-security(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedglobby@13.2.2(transitive)
+ Addedhe@1.2.0(transitive)
+ Addedhtml-minifier@4.0.0(transitive)
+ Addedhtmlparser2@9.1.0(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedkuler@2.0.0(transitive)
+ Addedlogform@2.6.1(transitive)
+ Addedlower-case@1.1.4(transitive)
+ Addedmerge2@1.4.1(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedms@2.1.3(transitive)
+ Addedno-case@2.3.2(transitive)
+ Addednth-check@2.1.1(transitive)
+ Addedone-time@1.0.0(transitive)
+ Addedparam-case@2.1.1(transitive)
+ Addedparse5@7.1.2(transitive)
+ Addedparse5-htmlparser2-tree-adapter@7.0.0(transitive)
+ Addedparse5-parser-stream@7.1.2(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedrelateurl@0.2.7(transitive)
+ Addedreusify@1.0.4(transitive)
+ Addedrun-parallel@1.2.0(transitive)
+ Addedsafe-stable-stringify@2.5.0(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
+ Addedslash@4.0.0(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedstack-trace@0.0.10(transitive)
+ Addedtext-hex@1.0.0(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedtriple-beam@1.4.1(transitive)
+ Addeduglify-js@3.19.3(transitive)
+ Addedundici@6.19.8(transitive)
+ Addedupper-case@1.1.3(transitive)
+ Addedwhatwg-encoding@3.1.1(transitive)
+ Addedwhatwg-mimetype@4.0.0(transitive)
+ Addedwinston@3.14.2(transitive)
+ Addedwinston-transport@4.8.0(transitive)