Skip to content

Commit

Permalink
🐛 fix(all): Fix cli output, up docs and env workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
angelespejo committed Jan 11, 2025
1 parent 26235ff commit aabb786
Show file tree
Hide file tree
Showing 20 changed files with 142 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
#########################################################################

- name: 🏗 Build packages
run: pnpm build
run: pnpm build

#########################################################################
# TEST
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
layout: home
hero:
name: SIZIUM
tagline: Get the actual size of any local or remote package
text: Find the true size of an npm package
tagline: Find the true size of an npm package
text: Get the true size of any local or remote package
image:
src: /logo.png
alt: sizium
Expand Down
62 changes: 56 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"packages/*"
],
"scripts": {
"+": "run() { pnpm -F @sizium/\"${@:1}\"; }; run $@",
"++": "run() { pnpm -F \"${@:1}\"; }; run $@",
"+": "run() { pnpm -F @sizium/$1 ${@:2}; }; run $@",
"++": "run() { pnpm -F $1 ${@:2}; }; run $@",
".": "dovenv",
"build": "pnpm build:lib && pnpm build:api && pnpm build:docs",
"build:api": "pnpm + api build && pnpm + api-client build && pnpm + node-server build",
Expand Down Expand Up @@ -74,13 +74,13 @@
"extra": {
"id": "sizium",
"productName": "sizium",
"shortDesc": "Get the actual size of any local or remote package",
"action": "Find the true size of an npm package",
"libraryUrl": "https://www.npmjs.com/package/@sizium/core",
"action": "Get the true size of any local or remote package",
"shortDesc": "Find the true size of an npm package",
"libraryUrl": "https://www.npmjs.com/package/sizium",
"licenseUrl": "https://github.com/pigeonposse/sizium/blob/main/LICENSE",
"changelogUrl": "https://github.com/pigeonposse/sizium/blob/main/packages/core/CHANGELOG.md",
"contributingUrl": "https://github.com/pigeonposse/.github/blob/main/CONTRIBUTING.md",
"libraryId": "@sizium/core",
"libraryId": "sizium",
"repoId": "sizium",
"rawRepoUrl": "https://raw.githubusercontent.com/pigeonposse/sizium",
"docsUrl": "https://sizium.pigeonposse.com",
Expand Down Expand Up @@ -109,6 +109,56 @@
"instagram": "https://www.instagram.com/pigeon.posse/",
"medium": "https://medium.com/@pigeonposse"
}
},
"downloadUrl": {
"binLinuxX64": {
"name": "Linux (x64)",
"logo": "gnubash",
"url": "https://github.com/pigeonposse/sizium/releases/latest/download/sizium-linux-x64.zip",
"type": "bin"
},
"binLinuxArm64": {
"name": "Linux (arm64)",
"logo": "gnubash",
"url": "https://github.com/pigeonposse/sizium/releases/latest/download/sizium-linux-arm64.zip",
"type": "bin"
},
"binMacosX64": {
"name": "MacOS (x64)",
"logo": "gnubash",
"url": "https://github.com/pigeonposse/sizium/releases/latest/download/sizium-macos-x64.zip",
"type": "bin"
},
"binMacosArm64": {
"name": "MacOS (arm64)",
"logo": "gnubash",
"url": "https://github.com/pigeonposse/sizium/releases/latest/download/sizium-macos-arm64.zip",
"type": "bin"
},
"binAlpineX64": {
"name": "Alpine (x64)",
"logo": "gnubash",
"url": "https://github.com/pigeonposse/sizium/releases/latest/download/sizium-alpine-x64.zip",
"type": "bin"
},
"binAlpineArm64": {
"name": "Alpine (arm64)",
"logo": "gnubash",
"url": "https://github.com/pigeonposse/sizium/releases/latest/download/sizium-alpine-arm64.zip",
"type": "bin"
},
"binWinX64": {
"name": "Windows (x64)",
"logo": "gnubash",
"url": "https://github.com/pigeonposse/sizium/releases/latest/download/sizium-win-x64.exe.zip",
"type": "bin"
},
"binWinArm64": {
"name": "Windows (arm64)",
"logo": "gnubash",
"url": "https://github.com/pigeonposse/sizium/releases/latest/download/sizium-win-arm64.exe.zip",
"type": "bin"
}
}
}
}
7 changes: 7 additions & 0 deletions packages/_config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @sizium/repo-config

## 0.0.2

### Patch Changes

- Fix cli output, up docs and env workflows
2 changes: 1 addition & 1 deletion packages/_config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sizium/repo-config",
"version": "0.0.1",
"version": "0.0.2",
"private": true,
"description": "Configuration for sizium repositories",
"license": "GPL-3.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/api-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @sizium/api-client

## 0.0.2

### Patch Changes

- Fix cli output, up docs and env workflows
2 changes: 1 addition & 1 deletion packages/api-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sizium/api-client",
"version": "0.0.1",
"version": "0.0.2",
"description": "REST API client for Sizium. Get the actual size of any local or remote package",
"keywords": [
"pp",
Expand Down
10 changes: 10 additions & 0 deletions packages/api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# @sizium/api

## 0.0.2

### Patch Changes

- Fix cli output, up docs and env workflows

- Updated dependencies []:
- @sizium/core@0.0.2
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sizium/api",
"version": "0.0.1",
"version": "0.0.2",
"description": "REST API for Sizium. Get the actual size of any local or remote package",
"keywords": [
"pp",
Expand Down
10 changes: 10 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# @sizium/cli

## 0.0.2

### Patch Changes

- Fix cli output, up docs and env workflows

- Updated dependencies []:
- @sizium/core@0.0.2
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sizium/cli",
"version": "0.0.1",
"version": "0.0.2",
"description": "Get the actual size of any local or remote package",
"keywords": [
"pp",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const run = async () => {
if ( FLAGS.RES === RES_TYPE.SIZE ) console.log( `${data.size} bytes | ${data.size / 1000000} megabytes` )
else if ( FLAGS.RES === RES_TYPE.INFO ) console.log( `Name: ${data.id}\nPackages: ${data.packageNum}\nSize: ${data.size} bytes | ${data.size / 1000000} megabytes` )
else if ( FLAGS.RES === RES_TYPE.JSON ) console.log( JSON.stringify( data ) )
else console.dir( data, { length: Infinity } )
else console.dir( data, { depth: Infinity } )

}
else printHelp( name, description, documentationURL, version )
Expand Down
7 changes: 7 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @sizium/core

## 0.0.2

### Patch Changes

- Fix cli output, up docs and env workflows
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sizium/core",
"version": "0.0.1",
"version": "0.0.2",
"description": "Get the actual size of any local or remote package",
"keywords": [
"pp",
Expand Down
13 changes: 8 additions & 5 deletions packages/docs/dovenv.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,14 @@ export default defineConfig(
},
download : {
groups : { bin: 'Executables' },
items : { all : {
name : 'View all',
type : 'bin',
url : joinUrl( core.corePkg.repository.url, 'releases' ),
} },
items : {
...core.pkg.extra.downloadUrl,
all : {
name : 'View all',
type : 'bin',
url : joinUrl( core.corePkg.repository.url, 'releases' ),
},
},
},
styles : { color: { dark: { bgSoft: '#110e12' } } },
}
Expand Down
10 changes: 5 additions & 5 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
"test": "playwright test"
},
"devDependencies": {
"sizium": "workspace:*",
"@sizium/core": "workspace:*",
"@sizium/cli": "workspace:*",
"@sizium/api": "workspace:*",
"@sizium/node-server": "workspace:*",
"@sizium/api-client": "workspace:*",
"@sizium/repo-config": "workspace:*"
"@sizium/cli": "workspace:*",
"@sizium/core": "workspace:*",
"@sizium/node-server": "workspace:*",
"@sizium/repo-config": "workspace:*",
"sizium": "workspace:*"
},
"publishConfig": {
"access": "public",
Expand Down
11 changes: 11 additions & 0 deletions packages/lib/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# sizium

## 0.0.2

### Patch Changes

- Fix cli output, up docs and env workflows

- Updated dependencies []:
- @sizium/cli@0.0.2
- @sizium/core@0.0.2
2 changes: 1 addition & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sizium",
"version": "0.0.1",
"version": "0.0.2",
"description": "Get the actual size of any local or remote package",
"keywords": [
"pp",
Expand Down
10 changes: 10 additions & 0 deletions packages/node-server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# @sizium/node-server

## 0.0.2

### Patch Changes

- Fix cli output, up docs and env workflows

- Updated dependencies []:
- @sizium/api@0.0.2
2 changes: 1 addition & 1 deletion packages/node-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sizium/node-server",
"version": "0.0.1",
"version": "0.0.2",
"description": "Node.js server for Sizium REST API. Get the actual size of any local or remote package",
"keywords": [
"pp",
Expand Down

0 comments on commit aabb786

Please sign in to comment.