Comparing version 0.0.15 to 0.0.16
@@ -21,2 +21,3 @@ "use strict"; | ||
var NpmCommandRunner_js_1 = __importDefault(require("../class/NpmCommandRunner.js")); | ||
var StylizedLogger_js_1 = __importDefault(require("../class/StylizedLogger.js")); | ||
// ============================================================================ | ||
@@ -26,2 +27,3 @@ // Constants | ||
const runner = new NpmCommandRunner_js_1.default(); | ||
const logger = new StylizedLogger_js_1.default(); | ||
// ============================================================================ | ||
@@ -51,6 +53,7 @@ // Functions | ||
try { | ||
logger.header('Install .gl libraries'); | ||
for (const pkg of packages) { | ||
console.log(`Running npm install for ${pkg}...`); | ||
logger.body(`Running npm install for ${pkg}...`); | ||
const output = await runner.runCommand(`install ${pkg}@latest --save-dev`); | ||
console.log(output); | ||
logger.body(output); | ||
} | ||
@@ -57,0 +60,0 @@ } |
@@ -16,3 +16,5 @@ import DirectoryCleaner from './class/DirectoryCleaner'; | ||
import StylizedLogger from './class/StylizedLogger.js'; | ||
import TemplateWriter from './class/TemplateWriter.js'; | ||
import gl_installer from './function/gl_installer'; | ||
export { DirectoryCleaner, DirectoryCopier, DirectoryCreator, FileCopier, FileRenamer, FontGenerator, PackageCreator, SvgPackager, StyleProcessor, SvgSpriteGenerator, VersionWriter, TypeScriptCompiler, JavaScriptMinifier, NpmCommandRunner, StylizedLogger, gl_installer, }; | ||
import cleanDirectory from './function/clean_directory'; | ||
export { DirectoryCleaner, DirectoryCopier, DirectoryCreator, FileCopier, FileRenamer, FontGenerator, PackageCreator, SvgPackager, StyleProcessor, SvgSpriteGenerator, VersionWriter, TypeScriptCompiler, JavaScriptMinifier, NpmCommandRunner, StylizedLogger, TemplateWriter, gl_installer, cleanDirectory, }; |
@@ -7,3 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.gl_installer = exports.StylizedLogger = exports.NpmCommandRunner = exports.JavaScriptMinifier = exports.TypeScriptCompiler = exports.VersionWriter = exports.SvgSpriteGenerator = exports.StyleProcessor = exports.SvgPackager = exports.PackageCreator = exports.FontGenerator = exports.FileRenamer = exports.FileCopier = exports.DirectoryCreator = exports.DirectoryCopier = exports.DirectoryCleaner = void 0; | ||
exports.cleanDirectory = exports.gl_installer = exports.TemplateWriter = exports.StylizedLogger = exports.NpmCommandRunner = exports.JavaScriptMinifier = exports.TypeScriptCompiler = exports.VersionWriter = exports.SvgSpriteGenerator = exports.StyleProcessor = exports.SvgPackager = exports.PackageCreator = exports.FontGenerator = exports.FileRenamer = exports.FileCopier = exports.DirectoryCreator = exports.DirectoryCopier = exports.DirectoryCleaner = void 0; | ||
// Copyright 2023 Scape Agency BV | ||
@@ -54,3 +54,7 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
exports.StylizedLogger = StylizedLogger_js_1.default; | ||
var TemplateWriter_js_1 = __importDefault(require("./class/TemplateWriter.js")); | ||
exports.TemplateWriter = TemplateWriter_js_1.default; | ||
var gl_installer_1 = __importDefault(require("./function/gl_installer")); | ||
exports.gl_installer = gl_installer_1.default; | ||
var clean_directory_1 = __importDefault(require("./function/clean_directory")); | ||
exports.cleanDirectory = clean_directory_1.default; |
{ | ||
"name": "pack.gl", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "Package Builder.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -23,2 +23,3 @@ // function/SvgPackager.ts | ||
import NpmCommandRunner from '../class/NpmCommandRunner.js'; | ||
import StylizedLogger from '../class/StylizedLogger.js'; | ||
@@ -31,2 +32,3 @@ | ||
const runner = new NpmCommandRunner(); | ||
const logger = new StylizedLogger(); | ||
@@ -61,8 +63,9 @@ | ||
try { | ||
logger.header('Install .gl libraries'); | ||
for (const pkg of packages) { | ||
console.log(`Running npm install for ${pkg}...`); | ||
logger.body(`Running npm install for ${pkg}...`); | ||
const output = await runner.runCommand( | ||
`install ${pkg}@latest --save-dev` | ||
); | ||
console.log(output); | ||
logger.body(output); | ||
} | ||
@@ -69,0 +72,0 @@ } catch (error) { |
@@ -41,5 +41,7 @@ // script/index.ts | ||
import StylizedLogger from './class/StylizedLogger.js'; | ||
import TemplateWriter from './class/TemplateWriter.js'; | ||
import gl_installer from './function/gl_installer'; | ||
import cleanDirectory from './function/clean_directory'; | ||
@@ -72,4 +74,6 @@ | ||
StylizedLogger, | ||
TemplateWriter, | ||
gl_installer, | ||
cleanDirectory, | ||
}; |
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
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
218774
81
4551
13