portapack 0.4.0 → 0.4.2

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.
@@ -71,4 +71,5 @@ jobs:
71
71
  - run: npx semantic-release
72
72
  env:
73
73
  GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
74
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
74
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
75
+ VITE_GA_ID: ${{ secrets.GA_ID }}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [0.4.2](https://github.com/manicinc/portapack/compare/v0.4.1...v0.4.2) (2025-06-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update Google Analytics ID environment variable for consistency ([6dbeb00](https://github.com/manicinc/portapack/commit/6dbeb001f72d77d3cdc10a9d0681746c11284e45))
7
+
8
+ ## [0.4.1](https://github.com/manicinc/portapack/compare/v0.4.0...v0.4.1) (2025-06-10)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update base path in VitePress config for correct deployment ([2b41ea1](https://github.com/manicinc/portapack/commit/2b41ea1edae6d2185f34b1b595f6741e58ccd080))
14
+
1
15
  # [0.4.0](https://github.com/manicinc/portapack/compare/v0.3.3...v0.4.0) (2025-06-07)
2
16
 
3
17
 
@@ -1,8 +1,31 @@
1
- import { defineConfig } from 'vitepress';
1
+ import { defineConfig, HeadConfig } from 'vitepress';
2
2
  import { buildDocsSidebar } from './sidebar-generator';
3
3
 
4
+ const GA_ID = process.env.VITE_GA_ID;
5
+
6
+ console.log(`Using Google Analytics ID: ${GA_ID || 'Not set'}`);
7
+
8
+ const gaHead: HeadConfig[] = GA_ID
9
+ ? [
10
+ [
11
+ 'script',
12
+ { async: 'true', src: `https://www.googletagmanager.com/gtag/js?id=${GA_ID}` }
13
+ ],
14
+ [
15
+ 'script',
16
+ {},
17
+ `
18
+ window.dataLayer = window.dataLayer || [];
19
+ function gtag(){dataLayer.push(arguments);}
20
+ gtag('js', new Date());
21
+ gtag('config', '${GA_ID}');
22
+ `
23
+ ]
24
+ ]
25
+ : [];
26
+
4
27
  export default defineConfig({
5
- base: '/portapack/',
28
+ base: '/',
6
29
  title: 'PortaPack',
7
30
  description: 'Bundle & Minify HTML into a Single Portable File',
8
31
  appearance: 'dark',
@@ -11,16 +34,17 @@ export default defineConfig({
11
34
  head: [
12
35
  ['link', { rel: 'icon', href: '/portapack/favicon.ico' }],
13
36
  ['meta', { name: 'og:title', content: 'PortaPack' }],
14
- [
15
- 'meta',
16
- { name: 'og:description', content: 'Bundle & Minify HTML into a Single Portable File' },
17
- ],
18
- ['meta', { name: 'og:image', content: '/portapack/portapack.jpg' }], // Updated to use your non-transparent logo
37
+ ['meta', {
38
+ name: 'og:description',
39
+ content: 'Bundle & Minify HTML into a Single Portable File'
40
+ }],
41
+ ['meta', { name: 'og:image', content: '/portapack/portapack.jpg' }],
19
42
  ['meta', { name: 'twitter:card', content: 'summary_large_image' }],
43
+ ...gaHead
20
44
  ],
21
45
 
22
46
  themeConfig: {
23
- logo: '/portapack-transparent.png', // This path is relative to the public directory
47
+ logo: '/portapack-transparent.png',
24
48
 
25
49
  socialLinks: [
26
50
  { icon: 'github', link: 'https://github.com/manicinc/portapack' },
@@ -28,15 +52,15 @@ export default defineConfig({
28
52
  { icon: 'discord', link: 'https://discord.gg/DzNgXdYm' },
29
53
  {
30
54
  icon: {
31
- svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>',
55
+ svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z"/></svg>'
32
56
  },
33
- link: 'https://www.linkedin.com/company/manic-agency-llc/',
34
- },
57
+ link: 'https://www.linkedin.com/company/manic-agency-llc/'
58
+ }
35
59
  ],
36
60
 
37
61
  footer: {
38
62
  message: 'Released under the MIT License',
39
- copyright: '© 2025 Manic Agency. All rights reserved.',
63
+ copyright: '© 2025 Manic Agency. All rights reserved.'
40
64
  },
41
65
 
42
66
  nav: [
@@ -48,12 +72,12 @@ export default defineConfig({
48
72
  { text: 'CLI Reference', link: '/cli' },
49
73
  { text: 'API', link: '/api/README' },
50
74
  { text: 'Configuration', link: '/configuration' },
51
- { text: 'Advanced Usage', link: '/advanced' },
52
- ],
75
+ { text: 'Advanced Usage', link: '/advanced' }
76
+ ]
53
77
  },
54
78
  { text: 'Contributing', link: '/contributing' },
55
- { text: 'Architecture', link: '/architecture'},
56
- { text: 'Roadmap', link: 'roadmap'}
79
+ { text: 'Architecture', link: '/architecture' },
80
+ { text: 'Roadmap', link: 'roadmap' }
57
81
  ],
58
82
 
59
83
  sidebar: {
@@ -64,9 +88,9 @@ export default defineConfig({
64
88
  items: [
65
89
  { text: 'Introduction', link: '/getting-started/' },
66
90
  { text: 'Installation', link: '/getting-started/installation' },
67
- { text: 'Quick Start', link: '/getting-started/quick-start' },
68
- ],
69
- },
91
+ { text: 'Quick Start', link: '/getting-started/quick-start' }
92
+ ]
93
+ }
70
94
  ],
71
95
  '/cli/': [
72
96
  {
@@ -74,9 +98,9 @@ export default defineConfig({
74
98
  items: [
75
99
  { text: 'Overview', link: '/cli/' },
76
100
  { text: 'Commands', link: '/cli/commands' },
77
- { text: 'Options', link: '/cli/options' },
78
- ],
79
- },
101
+ { text: 'Options', link: '/cli/options' }
102
+ ]
103
+ }
80
104
  ],
81
105
  '/configuration/': [
82
106
  {
@@ -84,10 +108,11 @@ export default defineConfig({
84
108
  items: [
85
109
  { text: 'Overview', link: '/configuration/' },
86
110
  { text: 'Options', link: '/configuration/options' },
87
- { text: 'Advanced', link: '/configuration/advanced' },
88
- ],
89
- },
90
- ],
91
- },
92
- },
111
+ { text: 'Advanced', link: '/configuration/advanced' }
112
+ ]
113
+ }
114
+ ]
115
+ }
116
+ }
93
117
  });
118
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portapack",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "📦 A tool to bundle and minify HTML and all its dependencies into a single portable file.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",