@open-audio-stack/core 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,30 @@
1
1
  # open-audio-stack-core
2
2
 
3
- Open-source audio plugin management software using:
3
+ ![Test](https://github.com/open-audio-stack/open-audio-stack-core/workflows/Test/badge.svg)
4
+
5
+ Common methods package shared across Open Audio Stack compatible registries, command-line tools, apps and websites for handling installing DAW VST plugin dependencies.
6
+
7
+ ## Features
8
+
9
+ - Config - Get types, formats, values, paths and urls.
10
+ - FileSystem - Perform operations on directories and files.
11
+ - Registry - Create an audio registry with packages and files.
12
+
13
+ ## Installation
14
+
15
+ To install the common package, run the command:
16
+
17
+ npm install @open-audio-stack/core
18
+
19
+ Import the package using:
20
+
21
+ import { Registry } from '@open-audio-stack/core';
22
+
23
+ Then use the available methods as normal.
24
+
25
+ ## Developer information
26
+
27
+ Open Audio Stack Core was built using:
4
28
 
5
29
  - NodeJS 20.x
6
30
  - TypeScript 5.x
@@ -8,13 +32,13 @@ Open-source audio plugin management software using:
8
32
  - prettier 3.x
9
33
  - vitest 1.x
10
34
 
11
- ## Installation
35
+ ## Developer installation
12
36
 
13
- Install dependencies using:
37
+ To install, build and run code locally, first install dependencies:
14
38
 
15
39
  npm install
16
40
 
17
- ## Usage
41
+ ## Developer usage
18
42
 
19
43
  Run dev commands using:
20
44
 
@@ -23,11 +47,11 @@ Run dev commands using:
23
47
  npm run dev
24
48
  npm test
25
49
 
26
- Create a build using:
50
+ Create a production build using:
27
51
 
28
52
  npm run build
29
53
 
30
- ## Deployment
54
+ ## Developer deployment
31
55
 
32
56
  This package is versioned using git tags:
33
57
 
package/build/Config.d.ts CHANGED
@@ -10,7 +10,7 @@ import { PresetType } from './types/PresetType.js';
10
10
  import { ProjectFormat } from './types/ProjectFormat.js';
11
11
  import { ProjectType } from './types/ProjectType.js';
12
12
  import { SystemType } from './types/SystemType.js';
13
- export default class Config {
13
+ export declare class Config {
14
14
  config: ConfigInterface;
15
15
  constructor(config: ConfigInterface);
16
16
  get(): ConfigInterface;
package/build/Config.js CHANGED
@@ -9,7 +9,7 @@ import { presetTypes } from './types/PresetType.js';
9
9
  import { projectFormats } from './types/ProjectFormat.js';
10
10
  import { projectTypes } from './types/ProjectType.js';
11
11
  import { systemTypes } from './types/SystemType.js';
12
- export default class Config {
12
+ export class Config {
13
13
  config;
14
14
  constructor(config) {
15
15
  this.config = config;
@@ -1,5 +1,5 @@
1
1
  import { PackageInterface } from '../src/types/Package.js';
2
- export default class FileSystem {
2
+ export declare class FileSystem {
3
3
  constructor();
4
4
  dirApp(): string;
5
5
  dirCreate(dir: string): string | false;
@@ -6,7 +6,7 @@ import { moveSync } from 'fs-extra/esm';
6
6
  import os from 'os';
7
7
  import path from 'path';
8
8
  import yaml from 'js-yaml';
9
- export default class FileSystem {
9
+ export class FileSystem {
10
10
  constructor() { }
11
11
  dirApp() {
12
12
  if (process.platform === 'win32')
@@ -1,6 +1,6 @@
1
1
  import { PackageInterface, PackageValidationError, PackageVersions, PackageVersionType } from './types/Package.js';
2
2
  import { RegistryInterface } from './types/Registry.js';
3
- export default class Registry {
3
+ export declare class Registry {
4
4
  registry: RegistryInterface;
5
5
  constructor(registry: RegistryInterface);
6
6
  packageAdd(slug: string): {
package/build/Registry.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as semver from 'semver';
2
2
  import { PackageValidation, } from './types/Package.js';
3
- export default class Registry {
3
+ export class Registry {
4
4
  registry;
5
5
  constructor(registry) {
6
6
  this.registry = registry;
@@ -4,6 +4,7 @@
4
4
  // Comment out any files which are not browser compatible.
5
5
  // Classes
6
6
  export * from './Config.js';
7
+ // export * from './FileSystem.js';
7
8
  export * from './Registry.js';
8
9
  // Types
9
10
  export * from './types/Architecture.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-audio-stack/core",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Open-source audio plugin management software",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",