clovie 0.1.21 → 0.1.23

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/bin/cli.js CHANGED
@@ -3,10 +3,15 @@ import path from "path";
3
3
  import commandLineArgs from "command-line-args";
4
4
  import { fileURLToPath } from 'url';
5
5
  import { dirname } from 'path';
6
+ import { readFileSync } from 'fs';
6
7
 
7
8
  const __filename = fileURLToPath(import.meta.url);
8
9
  const __dirname = dirname(__filename);
9
10
 
11
+ // Read package version
12
+ const packageJson = JSON.parse(readFileSync(path.join(__dirname, '../package.json'), 'utf8'));
13
+ const CLOVIE_VERSION = packageJson.version;
14
+
10
15
  // Local - import from compiled dist for published package
11
16
  // import { createClovie } from "../lib/createClovie.js";
12
17
  import { createClovie } from "../dist/index.js";
@@ -159,6 +164,7 @@ if (process.argv.includes('create') && process.argv.length > 2) {
159
164
  let content = fs.readFileSync(srcPath, 'utf8');
160
165
  // Replace template variables
161
166
  content = content.replace(/\{\{projectName\}\}/g, projectName);
167
+ content = content.replace(/\{\{clovieVersion\}\}/g, CLOVIE_VERSION);
162
168
  fs.writeFileSync(destPath, content);
163
169
  }
164
170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clovie",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "Vintage web dev tooling with modern quality of life",
5
5
  "keywords": [
6
6
  "static-site-generator",
@@ -83,11 +83,6 @@
83
83
  "publish:info": "node scripts/publish.js info"
84
84
  },
85
85
  "dependencies": {
86
- "@babel/core": "^7.23.7",
87
- "@babel/preset-env": "^7.23.7",
88
- "@brickworks/database-ext": "^1.0.3",
89
- "@brickworks/engine": "1.1.18",
90
- "babelify": "^10.0.0",
91
86
  "chalk": "^5.6.2",
92
87
  "chokidar": "^3.5.3",
93
88
  "cli-progress": "^3.12.0",
@@ -101,10 +96,15 @@
101
96
  "pug": "^3.0.3",
102
97
  "sass": "^1.69.5",
103
98
  "socket.io": "^4.7.4",
104
- "type-detect": "^4.0.8",
105
99
  "urlpattern-polyfill": "^10.1.0"
106
100
  },
107
101
  "devDependencies": {
102
+ "@babel/core": "^7.23.7",
103
+ "@babel/preset-env": "^7.23.7",
104
+ "@brickworks/database-ext": "^1.0.3",
105
+ "@brickworks/engine": "1.1.18",
106
+ "babelify": "^10.0.0",
107
+ "type-detect": "^4.0.8",
108
108
  "@rollup/plugin-commonjs": "^28.0.6",
109
109
  "@rollup/plugin-json": "^6.1.0",
110
110
  "@rollup/plugin-node-resolve": "^16.0.1",
@@ -10,7 +10,7 @@
10
10
  "build": "clovie build"
11
11
  },
12
12
  "dependencies": {
13
- "clovie": "^0.1.16"
13
+ "clovie": "^{{clovieVersion}}"
14
14
  },
15
15
  "devDependencies": {},
16
16
  "keywords": [
@@ -9,7 +9,7 @@
9
9
  "deploy": "npm run build && npm run upload"
10
10
  },
11
11
  "devDependencies": {
12
- "clovie": "^0.1.16"
12
+ "clovie": "^{{clovieVersion}}"
13
13
  },
14
14
  "keywords": [
15
15
  "static-site",