Skip to content

Commit

Permalink
🚚 chore(env): change env files
Browse files Browse the repository at this point in the history
  • Loading branch information
angelespejo committed Jan 13, 2025
1 parent 8f5d2bf commit 6c3e9b3
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 36 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
run: |
export npm_config_build_from_source=false
pnpm install --no-frozen-lockfile --ignore-scripts
pnpm i sharp --platform=linux --arch=x64
pnpm i -g wrangler
#########################################################################
Expand Down
70 changes: 53 additions & 17 deletions docs/guide/core/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,20 +260,24 @@ const data = await size.get()
##### new SiziumLocal()

```ts
new SiziumLocal(packagePath: string): SiziumLocal
new SiziumLocal(input: string, opts?: {
skipError: boolean;
}): SiziumLocal
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `packagePath` | `string` |
| Parameter | Type | Description |
| ------ | ------ | ------ |
| `input` | `string` | - |
| `opts`? | `object` | - |
| `opts.skipError`? | `boolean` | Skip error on package dependence and return undefined |

###### Returns

[`SiziumLocal`](#siziumlocal)

###### Overrides
###### Inherited from

`PackageSuper.constructor`

Expand All @@ -291,9 +295,17 @@ get(): Promise<SiziumResponse>

#### Properties

| Property | Modifier | Type |
| ------ | ------ | ------ |
| `packagePath` | `public` | `string` |
| Property | Modifier | Type | Default value | Description | Inherited from |
| ------ | ------ | ------ | ------ | ------ | ------ |
| `Error` | `public` | *typeof* `SiziumError` | `SiziumError` | - | `PackageSuper.Error` |
| `ERROR_ID` | `public` | \{ `GETTING_LOCAL_DATA`: `'GETTING_LOCAL_DATA'`; `GETTING_PKG_NAME`: `'GETTING_PKG_NAME'`; `GETTING_REGISTRY_DATA`: `'GETTING_REGISTRY_DATA'`; `INVALID_PKG_NAME`: `'INVALID_PKG_NAME'`; \} | `ERROR_ID` | - | `PackageSuper.ERROR_ID` |
| `ERROR_ID.GETTING_LOCAL_DATA` | `readonly` | `"GETTING_LOCAL_DATA"` | `'GETTING_LOCAL_DATA'` | - | - |
| `ERROR_ID.GETTING_PKG_NAME` | `readonly` | `"GETTING_PKG_NAME"` | `'GETTING_PKG_NAME'` | - | - |
| `ERROR_ID.GETTING_REGISTRY_DATA` | `readonly` | `"GETTING_REGISTRY_DATA"` | `'GETTING_REGISTRY_DATA'` | - | - |
| `ERROR_ID.INVALID_PKG_NAME` | `readonly` | `"INVALID_PKG_NAME"` | `'INVALID_PKG_NAME'` | - | - |
| `input` | `public` | `string` | `undefined` | - | `PackageSuper.input` |
| `opts?` | `public` | \{ `skipError`: `boolean`; \} | `undefined` | - | `PackageSuper.opts` |
| `opts.skipError` | `public` | `boolean` | `undefined` | Skip error on package dependence and return undefined | - |

***

Expand All @@ -320,20 +332,24 @@ console.log(data.size) // total size on bytes
##### new SiziumRegistry()

```ts
new SiziumRegistry(name: string): SiziumRegistry
new SiziumRegistry(input: string, opts?: {
skipError: boolean;
}): SiziumRegistry
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |
| Parameter | Type | Description |
| ------ | ------ | ------ |
| `input` | `string` | - |
| `opts`? | `object` | - |
| `opts.skipError`? | `boolean` | Skip error on package dependence and return undefined |

###### Returns

[`SiziumRegistry`](#siziumregistry)

###### Overrides
###### Inherited from

`PackageSuper.constructor`

Expand All @@ -351,9 +367,17 @@ get(): Promise<SiziumResponse>

#### Properties

| Property | Modifier | Type |
| ------ | ------ | ------ |
| `name` | `public` | `string` |
| Property | Modifier | Type | Default value | Description | Inherited from |
| ------ | ------ | ------ | ------ | ------ | ------ |
| `Error` | `public` | *typeof* `SiziumError` | `SiziumError` | - | `PackageSuper.Error` |
| `ERROR_ID` | `public` | \{ `GETTING_LOCAL_DATA`: `'GETTING_LOCAL_DATA'`; `GETTING_PKG_NAME`: `'GETTING_PKG_NAME'`; `GETTING_REGISTRY_DATA`: `'GETTING_REGISTRY_DATA'`; `INVALID_PKG_NAME`: `'INVALID_PKG_NAME'`; \} | `ERROR_ID` | - | `PackageSuper.ERROR_ID` |
| `ERROR_ID.GETTING_LOCAL_DATA` | `readonly` | `"GETTING_LOCAL_DATA"` | `'GETTING_LOCAL_DATA'` | - | - |
| `ERROR_ID.GETTING_PKG_NAME` | `readonly` | `"GETTING_PKG_NAME"` | `'GETTING_PKG_NAME'` | - | - |
| `ERROR_ID.GETTING_REGISTRY_DATA` | `readonly` | `"GETTING_REGISTRY_DATA"` | `'GETTING_REGISTRY_DATA'` | - | - |
| `ERROR_ID.INVALID_PKG_NAME` | `readonly` | `"INVALID_PKG_NAME"` | `'INVALID_PKG_NAME'` | - | - |
| `input` | `public` | `string` | `undefined` | - | `PackageSuper.input` |
| `opts?` | `public` | \{ `skipError`: `boolean`; \} | `undefined` | - | `PackageSuper.opts` |
| `opts.skipError` | `public` | `boolean` | `undefined` | Skip error on package dependence and return undefined | - |

## Functions

Expand Down Expand Up @@ -404,12 +428,16 @@ type PackageInfo: {
isESM: boolean;
level: number;
license: string;
lifeCycleScripts: { [key in lifeCycleScripts]?: string };
name: string;
types: boolean;
unpackedSize: number;
unpackedSizeKB: number;
unpackedSizeMB: number;
url: {
funding: string;
homepage: string;
npm: string;
repository: string;
unpkg: string;
};
Expand All @@ -432,12 +460,16 @@ type PackageInfo: {
| `isESM` | `boolean` | - |
| `level` | `number` | Level of the dependence installation. Main packages is 0 |
| `license`? | `string` | - |
| `lifeCycleScripts`? | `{ [key in lifeCycleScripts]?: string }` | - |
| `name` | `string` | - |
| `types` | `boolean` | - |
| `unpackedSize` | `number` | Unpacked size in bytes |
| `url` | \{ `funding`: `string`; `homepage`: `string`; `repository`: `string`; `unpkg`: `string`; \} | - |
| `unpackedSizeKB` | `number` | - |
| `unpackedSizeMB` | `number` | - |
| `url` | \{ `funding`: `string`; `homepage`: `string`; `npm`: `string`; `repository`: `string`; `unpkg`: `string`; \} | - |
| `url.funding`? | `string` | - |
| `url.homepage`? | `string` | - |
| `url.npm` | `string` | - |
| `url.repository`? | `string` | - |
| `url.unpkg`? | `string` | - |
| `version` | `string` | - |
Expand Down Expand Up @@ -470,6 +502,8 @@ type SiziumResponse: {
packageNum: number;
packages: PackageInfo[];
size: number;
sizeKB: number;
sizeMB: number;
};
```

Expand All @@ -481,3 +515,5 @@ type SiziumResponse: {
| `packageNum` | `number` | - |
| `packages` | [`PackageInfo`](#packageinfo)[] | - |
| `size` | `number` | Size in bytes |
| `sizeKB` | `number` | - |
| `sizeMB` | `number` | - |
70 changes: 53 additions & 17 deletions docs/guide/lib/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,20 +260,24 @@ const data = await size.get()
##### new SiziumLocal()

```ts
new SiziumLocal(packagePath: string): SiziumLocal
new SiziumLocal(input: string, opts?: {
skipError: boolean;
}): SiziumLocal
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `packagePath` | `string` |
| Parameter | Type | Description |
| ------ | ------ | ------ |
| `input` | `string` | - |
| `opts`? | `object` | - |
| `opts.skipError`? | `boolean` | Skip error on package dependence and return undefined |

###### Returns

[`SiziumLocal`](#siziumlocal)

###### Overrides
###### Inherited from

`PackageSuper.constructor`

Expand All @@ -291,9 +295,17 @@ get(): Promise<SiziumResponse>

#### Properties

| Property | Type |
| ------ | ------ |
| `packagePath` | `string` |
| Property | Modifier | Type | Description | Inherited from |
| ------ | ------ | ------ | ------ | ------ |
| `Error` | `public` | *typeof* `SiziumError` | - | `PackageSuper.Error` |
| `ERROR_ID` | `public` | \{ `GETTING_LOCAL_DATA`: `"GETTING_LOCAL_DATA"`; `GETTING_PKG_NAME`: `"GETTING_PKG_NAME"`; `GETTING_REGISTRY_DATA`: `"GETTING_REGISTRY_DATA"`; `INVALID_PKG_NAME`: `"INVALID_PKG_NAME"`; \} | - | `PackageSuper.ERROR_ID` |
| `ERROR_ID.GETTING_LOCAL_DATA` | `readonly` | `"GETTING_LOCAL_DATA"` | - | - |
| `ERROR_ID.GETTING_PKG_NAME` | `readonly` | `"GETTING_PKG_NAME"` | - | - |
| `ERROR_ID.GETTING_REGISTRY_DATA` | `readonly` | `"GETTING_REGISTRY_DATA"` | - | - |
| `ERROR_ID.INVALID_PKG_NAME` | `readonly` | `"INVALID_PKG_NAME"` | - | - |
| `input` | `public` | `string` | - | `PackageSuper.input` |
| `opts?` | `public` | \{ `skipError`: `boolean`; \} | - | `PackageSuper.opts` |
| `opts.skipError` | `public` | `boolean` | Skip error on package dependence and return undefined | - |

***

Expand All @@ -320,20 +332,24 @@ console.log(data.size) // total size on bytes
##### new SiziumRegistry()

```ts
new SiziumRegistry(name: string): SiziumRegistry
new SiziumRegistry(input: string, opts?: {
skipError: boolean;
}): SiziumRegistry
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `name` | `string` |
| Parameter | Type | Description |
| ------ | ------ | ------ |
| `input` | `string` | - |
| `opts`? | `object` | - |
| `opts.skipError`? | `boolean` | Skip error on package dependence and return undefined |

###### Returns

[`SiziumRegistry`](#siziumregistry)

###### Overrides
###### Inherited from

`PackageSuper.constructor`

Expand All @@ -351,9 +367,17 @@ get(): Promise<SiziumResponse>

#### Properties

| Property | Type |
| ------ | ------ |
| `name` | `string` |
| Property | Modifier | Type | Description | Inherited from |
| ------ | ------ | ------ | ------ | ------ |
| `Error` | `public` | *typeof* `SiziumError` | - | `PackageSuper.Error` |
| `ERROR_ID` | `public` | \{ `GETTING_LOCAL_DATA`: `"GETTING_LOCAL_DATA"`; `GETTING_PKG_NAME`: `"GETTING_PKG_NAME"`; `GETTING_REGISTRY_DATA`: `"GETTING_REGISTRY_DATA"`; `INVALID_PKG_NAME`: `"INVALID_PKG_NAME"`; \} | - | `PackageSuper.ERROR_ID` |
| `ERROR_ID.GETTING_LOCAL_DATA` | `readonly` | `"GETTING_LOCAL_DATA"` | - | - |
| `ERROR_ID.GETTING_PKG_NAME` | `readonly` | `"GETTING_PKG_NAME"` | - | - |
| `ERROR_ID.GETTING_REGISTRY_DATA` | `readonly` | `"GETTING_REGISTRY_DATA"` | - | - |
| `ERROR_ID.INVALID_PKG_NAME` | `readonly` | `"INVALID_PKG_NAME"` | - | - |
| `input` | `public` | `string` | - | `PackageSuper.input` |
| `opts?` | `public` | \{ `skipError`: `boolean`; \} | - | `PackageSuper.opts` |
| `opts.skipError` | `public` | `boolean` | Skip error on package dependence and return undefined | - |

## Functions

Expand Down Expand Up @@ -404,12 +428,16 @@ type PackageInfo: {
isESM: boolean;
level: number;
license: string;
lifeCycleScripts: { [key in lifeCycleScripts]?: string };
name: string;
types: boolean;
unpackedSize: number;
unpackedSizeKB: number;
unpackedSizeMB: number;
url: {
funding: string;
homepage: string;
npm: string;
repository: string;
unpkg: string;
};
Expand All @@ -432,12 +460,16 @@ type PackageInfo: {
| `isESM` | `boolean` | - |
| `level` | `number` | Level of the dependence installation. Main packages is 0 |
| `license`? | `string` | - |
| `lifeCycleScripts`? | `{ [key in lifeCycleScripts]?: string }` | - |
| `name` | `string` | - |
| `types` | `boolean` | - |
| `unpackedSize` | `number` | Unpacked size in bytes |
| `url` | \{ `funding`: `string`; `homepage`: `string`; `repository`: `string`; `unpkg`: `string`; \} | - |
| `unpackedSizeKB` | `number` | - |
| `unpackedSizeMB` | `number` | - |
| `url` | \{ `funding`: `string`; `homepage`: `string`; `npm`: `string`; `repository`: `string`; `unpkg`: `string`; \} | - |
| `url.funding`? | `string` | - |
| `url.homepage`? | `string` | - |
| `url.npm` | `string` | - |
| `url.repository`? | `string` | - |
| `url.unpkg`? | `string` | - |
| `version` | `string` | - |
Expand Down Expand Up @@ -470,6 +502,8 @@ type SiziumResponse: {
packageNum: number;
packages: PackageInfo[];
size: number;
sizeKB: number;
sizeMB: number;
};
```

Expand All @@ -481,3 +515,5 @@ type SiziumResponse: {
| `packageNum` | `number` | - |
| `packages` | [`PackageInfo`](#packageinfo)[] | - |
| `size` | `number` | Size in bytes |
| `sizeKB` | `number` | - |
| `sizeMB` | `number` | - |
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@dovenv/core": "1.1.5",
"@dovenv/theme-pigeonposse": "1.1.5",
"@dovenv/core": "1.2.0",
"@dovenv/theme-pigeonposse": "1.2.0",
"@playwright/test": "1.49.1",
"@types/node": "22.10.5",
"binarium": "2.0.5",
Expand Down
1 change: 1 addition & 0 deletions packages/docs/dovenv.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export default defineConfig(
link : core.pkg.homepage,
},
],
// pwa : { pwaAssets: false },
download : {
groups : { bin: 'Executables' },
items : {
Expand Down

0 comments on commit 6c3e9b3

Please sign in to comment.