Skip to content

Commit

Permalink
v0.0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Jan 4, 2024
1 parent 515cb30 commit a099043
Show file tree
Hide file tree
Showing 42 changed files with 1,535 additions and 7,293 deletions.
51 changes: 0 additions & 51 deletions .babelrc

This file was deleted.

11 changes: 0 additions & 11 deletions .browserslistrc

This file was deleted.

12 changes: 0 additions & 12 deletions .eslintignore

This file was deleted.

33 changes: 0 additions & 33 deletions .eslintrc

This file was deleted.

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
### Contents

- [Introduction](#introduction)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Colophon](#colophon)

<br clear="both"/>
Expand All @@ -42,6 +45,14 @@

`pack.gl` is an advanced package builder designed to enhance the efficiency and organization of software development projects. It offers an intuitive interface and robust features tailored for managing and building a wide range of software packages.

`pack.gl` stands as a cutting-edge package builder, meticulously crafted to revolutionize the efficiency and organization of software development projects. It emerges as a powerful tool in the realm of package management, offering a seamless and user-friendly interface coupled with a suite of robust features. Designed to cater to the diverse needs of modern software development, `pack.gl` simplifies and streamlines the process of managing and constructing various types of software packages.

At its core, `pack.gl` is engineered to address the complexities and challenges faced in the contemporary software development landscape. Whether it's handling dependencies, optimizing package size, or ensuring compatibility across different environments, `pack.gl` offers a comprehensive solution. Its intuitive design makes it accessible for beginners, yet its powerful and flexible feature set meets the demands of even the most experienced developers.

Key to its design philosophy is the adaptability to various development workflows, making it an ideal companion for a range of projects from small-scale personal endeavors to large, complex enterprise applications. `pack.gl` stands not just as a tool but as a partner in the software development journey, enhancing productivity, reducing overhead, and bringing clarity and ease to the package management process.

In essence, `pack.gl` is more than a package builder; it's a catalyst for innovation and efficiency, empowering developers to focus on what they do best — creating remarkable software solutions.

## Features

- **Streamlined Integration**: Easily integrates with various software development workflows.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.26
0.0.28
11 changes: 11 additions & 0 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
### Contents

- [Introduction](#introduction)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Colophon](#colophon)

<br clear="both"/>
Expand All @@ -42,6 +45,14 @@

`pack.gl` is an advanced package builder designed to enhance the efficiency and organization of software development projects. It offers an intuitive interface and robust features tailored for managing and building a wide range of software packages.

`pack.gl` stands as a cutting-edge package builder, meticulously crafted to revolutionize the efficiency and organization of software development projects. It emerges as a powerful tool in the realm of package management, offering a seamless and user-friendly interface coupled with a suite of robust features. Designed to cater to the diverse needs of modern software development, `pack.gl` simplifies and streamlines the process of managing and constructing various types of software packages.

At its core, `pack.gl` is engineered to address the complexities and challenges faced in the contemporary software development landscape. Whether it's handling dependencies, optimizing package size, or ensuring compatibility across different environments, `pack.gl` offers a comprehensive solution. Its intuitive design makes it accessible for beginners, yet its powerful and flexible feature set meets the demands of even the most experienced developers.

Key to its design philosophy is the adaptability to various development workflows, making it an ideal companion for a range of projects from small-scale personal endeavors to large, complex enterprise applications. `pack.gl` stands not just as a tool but as a partner in the software development journey, enhancing productivity, reducing overhead, and bringing clarity and ease to the package management process.

In essence, `pack.gl` is more than a package builder; it's a catalyst for innovation and efficiency, empowering developers to focus on what they do best — creating remarkable software solutions.

## Features

- **Streamlined Integration**: Easily integrates with various software development workflows.
Expand Down
24 changes: 0 additions & 24 deletions dist/js/class/DirectoryCleaner.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,6 @@ class DirectoryCleaner {
}
}
}
// class DirectoryCleaner {
// /**
// * Recursively deletes all contents of the directory asynchronously.
// * @param dirPath The path to the directory to clean.
// */
// public async cleanDirectory(dirPath: string): Promise<void> {
// try {
// const files = await fsPromises.readdir(dirPath);
// for (const file of files) {
// const curPath = path.join(dirPath, file);
// const stat = await fsPromises.lstat(curPath);
// if (stat.isDirectory()) {
// await this.cleanDirectory(curPath);
// } else {
// await fsPromises.unlink(curPath);
// }
// }
// await fsPromises.rmdir(dirPath);
// } catch (error) {
// console.error(`Error cleaning directory ${dirPath}: ${error}`);
// throw error; // Rethrow the error for further handling if necessary
// }
// }
// }
// ============================================================================
// Export
// ============================================================================
Expand Down
1 change: 0 additions & 1 deletion dist/js/class/JavaScriptMinifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class JavaScriptMinifier {
// Read the input file
const inputCode = await fs_1.promises.readFile(inputPath, 'utf8');
// Minify the file using Terser
// const result = await minify(inputCode, options);
const result = await (0, terser_1.minify)(inputCode, this.config);
// If minification is successful, write the output
if (result.code) {
Expand Down
25 changes: 0 additions & 25 deletions dist/js/class/SvgPackager.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,31 +98,6 @@ class SvgPackager {
throw error;
}
}
// public async processSvgFiles(directory: string, outputDirectory: string): Promise<void> {
// try {
// console.log(`Processing directory: ${directory}`);
// const svgFiles = await this.findSvgFiles(directory);
// for (const file of svgFiles) {
// const iconName = this.sanitizeFileName(path.basename(file, '.svg'));
// console.log(`Processing file: ${file}`);
// const svgContent = await this.readSvgFile(file);
// const optimizedSvg = await this.optimizeSvg(svgContent);
// await this.writeFiles(iconName, optimizedSvg, outputDirectory);
// }
// console.log(`Successfully processed ${svgFiles.length} SVG files.`);
// } catch (error) {
// console.error('Error processing SVG files:', error);
// throw error;
// }
// }
// private async findSvgFiles(directory: string): Promise<string[]> {
// return new Promise((resolve, reject) => {
// glob(`${directory}/**/*.svg`, (err, files) => {
// if (err) reject(err);
// else resolve(files);
// });
// });
// }
/**
* Reads the content of an SVG file.
* @param filePath The path to the SVG file.
Expand Down
8 changes: 4 additions & 4 deletions dist/js/config/package.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const packageConfig = {
license: "Apache-2.0",
homepage: "https://www.scape.agency",
type: "module",
main: "js/index",
// main: "js/index.js",
types: "js/index",
// types: "js/index.d.ts",
// main: "js/index",
main: "js/index.js",
// types: "js/index",
types: "js/index.d.ts",
// "module": "dist/js/unit.gl.js",
// "style": "dist/css/unit.gl.css",
// "sass": "src/scss/index.scss",
Expand Down
21 changes: 20 additions & 1 deletion dist/js/function/clean_directory.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
"use strict";
// config/fantasticon.config.ts
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
// Copyright 2023 Scape Agency BV
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ============================================================================
// Import
// ============================================================================
var DirectoryCleaner_js_1 = __importDefault(require("../class/DirectoryCleaner.js"));
var StylizedLogger_js_1 = __importDefault(require("../class/StylizedLogger.js"));
// import CONFIG from '../path/to/config.js'; // Assuming CONFIG is imported from a config file
// ============================================================================
// Constants
// ============================================================================
const directoryCleaner = new DirectoryCleaner_js_1.default();
const logger = new StylizedLogger_js_1.default();
// ============================================================================
// Functions
// ============================================================================
/**
* Cleans a specified directory and logs the process.
* @param directoryPath - The path of the directory to clean.
Expand Down
9 changes: 8 additions & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"name": "pack.gl",
"version": "0.0.26",
"version": "0.0.28",
"description": "Package Builder.",
"keywords": [
"pack.gl",
"pack",
"package",
"packager",
"build",
"builder",
"compile",
"compiler",
"framework",
"web"
],
Expand All @@ -26,9 +31,11 @@
"dependencies": {
"@types/fs-extra": "^11.0.4",
"@types/glob": "^8.1.0",
"@types/jsdom": "^21.1.6",
"@types/nunjucks": "^3.2.6",
"@types/svg-sprite": "^0.0.38",
"autoprefixer": "^10.4.15",
"cssnano": "^6.0.3",
"del": "^7.1.0",
"fantasticon": "^2.0.0",
"fs-extra": "^11.2.0",
Expand Down
31 changes: 0 additions & 31 deletions dist/ts/class/DirectoryCleaner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,37 +51,6 @@ class DirectoryCleaner {
}


// class DirectoryCleaner {

// /**
// * Recursively deletes all contents of the directory asynchronously.
// * @param dirPath The path to the directory to clean.
// */
// public async cleanDirectory(dirPath: string): Promise<void> {
// try {
// const files = await fsPromises.readdir(dirPath);

// for (const file of files) {
// const curPath = path.join(dirPath, file);
// const stat = await fsPromises.lstat(curPath);

// if (stat.isDirectory()) {
// await this.cleanDirectory(curPath);
// } else {
// await fsPromises.unlink(curPath);
// }
// }

// await fsPromises.rmdir(dirPath);
// } catch (error) {
// console.error(`Error cleaning directory ${dirPath}: ${error}`);
// throw error; // Rethrow the error for further handling if necessary
// }
// }

// }


// ============================================================================
// Export
// ============================================================================
Expand Down
2 changes: 0 additions & 2 deletions dist/ts/class/FontGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class FontGenerator {

const config = {


// RunnerMandatoryOptions
inputDir: sourceDirectory, // (required)
outputDir: outputDiectory, // (required)
Expand All @@ -59,7 +58,6 @@ class FontGenerator {
],



formatOptions: {
// woff: {
// // Woff Extended Metadata Block - see https://www.w3.org/TR/WOFF/#Metadata
Expand Down
1 change: 0 additions & 1 deletion dist/ts/class/JavaScriptMinifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ import terserConfig from "../config/terser.config.js"
// Read the input file
const inputCode = await fs.readFile(inputPath, 'utf8');
// Minify the file using Terser
// const result = await minify(inputCode, options);
const result = await minify(inputCode, this.config);
// If minification is successful, write the output
if (result.code) {
Expand Down
Loading

0 comments on commit a099043

Please sign in to comment.