core-maugli 1.1.0 → 1.1.1
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 +21 -9
- package/bin/index.js +11 -1
- package/bin/version.js +15 -0
- package/package.json +6 -4
package/README.md
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
# Maugli Blog - Astro & Tailwind CSS2. **Interface Language** - Choose from:
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
2
|
+
|
3
|
+
- 🇺🇸 English (default)
|
4
|
+
- 🇷🇺 Русский
|
5
|
+
- 🇪🇸 Español
|
6
|
+
- 🇩🇪 Deutsch
|
7
|
+
- 🇵🇹 Português
|
8
|
+
- 🇫🇷 Français
|
9
|
+
- 🇨🇳 中文
|
10
|
+
- 🇯🇵 日本語
|
11
|
+
|
10
12
|
3. **Main Domain** - Do you have a main domain to link this blog to? (e.g., mybrand.com - leave empty if none)
|
11
13
|
4. **Multilingual Support** - Enable/disable multiple languages (disabled by default)maugli.cfd
|
12
14
|
|
@@ -46,7 +48,7 @@ The setup wizard will ask you to configure:
|
|
46
48
|
1. **Blog Name** - The display name for your blog (can be changed later in config)
|
47
49
|
2. **Interface Language** - Choose from:
|
48
50
|
- 🇺🇸 English (default)
|
49
|
-
- 🇸 Español
|
51
|
+
- 🇸 Español
|
50
52
|
- 🇩🇪 Deutsch
|
51
53
|
- �� Português
|
52
54
|
- �� Français
|
@@ -103,9 +105,11 @@ All tests should complete without errors.
|
|
103
105
|
## Configuration
|
104
106
|
|
105
107
|
### Initial Setup
|
108
|
+
|
106
109
|
The interactive setup automatically configures your blog based on your choices. All settings can be changed later in `src/config/maugli.config.ts`.
|
107
110
|
|
108
111
|
### Customization Options
|
112
|
+
|
109
113
|
- **Blog Name & Description** - Change `brand.name` and `brand.description`
|
110
114
|
- **Language Settings** - Modify `defaultLang` and `features.enableMultiLang`
|
111
115
|
- **Domain Configuration** - Update `brand.logoHref` for your main site link
|
@@ -114,6 +118,14 @@ The interactive setup automatically configures your blog based on your choices.
|
|
114
118
|
|
115
119
|
Example files are marked with `isExample: true` in their frontmatter.
|
116
120
|
|
121
|
+
### CLI Commands
|
122
|
+
|
123
|
+
| Command | Description |
|
124
|
+
| ----------------------------- | ---------------------------------------- |
|
125
|
+
| `npx core-maugli init <name>` | Create a new blog with interactive setup |
|
126
|
+
| `npx core-maugli version` | Show package version |
|
127
|
+
| `npx core-maugli update` | Update config to latest version |
|
128
|
+
|
117
129
|
### Useful npm scripts
|
118
130
|
|
119
131
|
| Script | Description |
|
package/bin/index.js
CHANGED
@@ -5,8 +5,18 @@ async function main() {
|
|
5
5
|
if (cmd === 'init') {
|
6
6
|
const mod = await import('./init.js');
|
7
7
|
await mod.default(target);
|
8
|
-
} else {
|
8
|
+
} else if (cmd === '--version' || cmd === '-v' || cmd === 'version') {
|
9
|
+
await import('./version.js');
|
10
|
+
} else if (cmd === 'update' || cmd === 'upgrade') {
|
9
11
|
await import('../scripts/upgrade-config.js');
|
12
|
+
} else {
|
13
|
+
console.log('Usage:');
|
14
|
+
console.log(' core-maugli init <project-name> Create a new blog');
|
15
|
+
console.log(' core-maugli version Show version');
|
16
|
+
console.log(' core-maugli update Update config to latest');
|
17
|
+
console.log('');
|
18
|
+
console.log('Example:');
|
19
|
+
console.log(' npx core-maugli init my-blog');
|
10
20
|
}
|
11
21
|
}
|
12
22
|
|
package/bin/version.js
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
|
3
|
+
import { readFileSync } from 'fs';
|
4
|
+
import path from 'path';
|
5
|
+
import { fileURLToPath } from 'url';
|
6
|
+
|
7
|
+
const __filename = fileURLToPath(import.meta.url);
|
8
|
+
const __dirname = path.dirname(__filename);
|
9
|
+
|
10
|
+
const packagePath = path.join(__dirname, '../package.json');
|
11
|
+
const packageJson = JSON.parse(readFileSync(packagePath, 'utf8'));
|
12
|
+
|
13
|
+
console.log(`core-maugli v${packageJson.version}`);
|
14
|
+
console.log(`Astro & Tailwind CSS blog theme for Maugli`);
|
15
|
+
console.log(`Repository: ${packageJson.repository.url}`);
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "core-maugli",
|
3
3
|
"description": "Astro & Tailwind CSS blog theme for Maugli.",
|
4
4
|
"type": "module",
|
5
|
-
"version": "1.1.
|
5
|
+
"version": "1.1.1",
|
6
6
|
"license": "GPL-3.0-or-later OR Commercial",
|
7
7
|
"repository": {
|
8
8
|
"type": "git",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"dev": "astro dev",
|
23
23
|
"start": "astro dev",
|
24
24
|
"build": "node typograf-batch.js && node scripts/verify-assets.js && astro build",
|
25
|
-
"test": "node tests/examplesFilter.
|
25
|
+
"test": "node tests/examplesFilter.demo.mjs",
|
26
26
|
"astro": "astro",
|
27
27
|
"featured:add": "node scripts/featured.js add",
|
28
28
|
"featured:remove": "node scripts/featured.js remove",
|
@@ -42,11 +42,13 @@
|
|
42
42
|
"astro": "^4.15.4",
|
43
43
|
"clsx": "^2.1.1",
|
44
44
|
"fuse.js": "^7.0.0",
|
45
|
+
"prompts": "^2.4.2",
|
45
46
|
"reading-time": "^1.5.0",
|
47
|
+
"remark-slug": "^7.0.1",
|
46
48
|
"slugify": "^1.6.6",
|
47
49
|
"tailwindcss": "^3.4.10",
|
48
|
-
"
|
49
|
-
"
|
50
|
+
"typograf": "^7.4.4",
|
51
|
+
"typescript": "^5.5.4"
|
50
52
|
},
|
51
53
|
"devDependencies": {
|
52
54
|
"@tailwindcss/typography": "^0.5.16",
|