@multivisio/nswow
Advanced tools
Comparing version 0.1.5 to 0.1.6
17
cli.js
@@ -5,3 +5,4 @@ #!/usr/bin/env node | ||
import { addComponents, removeComponents, createComponent } from "./scripts/components.mjs"; | ||
import { build } from "./scripts/build.mjs"; | ||
import { build, mapScss } from "./scripts/build.mjs"; | ||
import { beaver } from "./scripts/beaver.mjs"; | ||
@@ -52,2 +53,16 @@ const packageJson = JSON.parse( | ||
commander.command("map") | ||
.description("Build all necessary entries for production") | ||
.action(() => { | ||
mapScss(); | ||
}) | ||
; | ||
commander.command("beaver") | ||
.description("Update beaver configuration") | ||
.action(() => { | ||
beaver(1); | ||
}) | ||
; | ||
commander.parse(); |
@@ -17,3 +17,3 @@ { | ||
"devDependencies": { | ||
"@multivisio/nswow": "^0.1.5", | ||
"@multivisio/nswow": "^0.1.6", | ||
"@vitejs/plugin-vue": "^4.6.2", | ||
@@ -20,0 +20,0 @@ "@vue/test-utils": "^2.4.4", |
import {fileURLToPath, URL} from 'node:url' | ||
import {resolve} from 'node:path' | ||
import {beaver} from '@multivisio/nswow/scripts/beaver' | ||
import {mapScss} from '@multivisio/nswow/scripts/build' | ||
import {nswowWatcher} from "@multivisio/nswow/scripts/vite.mjs"; | ||
import {defineConfig} from 'vite' | ||
import vue from '@vitejs/plugin-vue' | ||
beaver(); | ||
const CWD = process.cwd(); | ||
await beaver(); | ||
await mapScss(); | ||
// https://vitejs.dev/config/ | ||
@@ -12,12 +18,13 @@ export default defineConfig({ | ||
vue(), | ||
{ | ||
name: "watch-for-file-updates", | ||
handleHotUpdate({ file }) { | ||
if (file.endsWith("/nswow.config.json")) { | ||
beaver(); | ||
} | ||
nswowWatcher(), | ||
], build: { | ||
outDir: './.output/app', | ||
rollupOptions: { | ||
input: { | ||
main: resolve(CWD, './index.html'), | ||
ldd: resolve(CWD, './nested/ldd.html'), | ||
pdf: resolve(CWD, './nested/pdf.html'), | ||
word: resolve(CWD, './nested/word.html'), | ||
}, | ||
}, | ||
], build: { | ||
outDir: './output/app' | ||
} | ||
}, | ||
@@ -24,0 +31,0 @@ resolve: { |
{ | ||
"name": "@multivisio/nswow", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Manage nswow templates, build and publish", | ||
@@ -11,2 +11,3 @@ "bin": { | ||
"dependencies": { | ||
"colors": "^1.4.0", | ||
"commander": "^11.1.0", | ||
@@ -13,0 +14,0 @@ "enquirer": "^2.4.1", |
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
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
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
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
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
424
5
200293
7
989
1
+ Addedcolors@^1.4.0
+ Addedcolors@1.4.0(transitive)