core-maugli 1.0.4 → 1.0.5
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/.gitignore +21 -0
- package/.prettierrc +14 -0
- package/README.md +5 -2
- package/bin/init.js +7 -2
- package/package.json +6 -2
package/.gitignore
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# build output
|
2
|
+
dist/
|
3
|
+
# generated types
|
4
|
+
.astro/
|
5
|
+
|
6
|
+
# dependencies
|
7
|
+
node_modules/
|
8
|
+
|
9
|
+
# logs
|
10
|
+
npm-debug.log*
|
11
|
+
yarn-debug.log*
|
12
|
+
yarn-error.log*
|
13
|
+
pnpm-debug.log*
|
14
|
+
|
15
|
+
|
16
|
+
# environment variables
|
17
|
+
.env
|
18
|
+
.env.production
|
19
|
+
|
20
|
+
# macOS-specific files
|
21
|
+
.DS_Store
|
package/.prettierrc
ADDED
package/README.md
CHANGED
@@ -24,10 +24,13 @@ netlify deploy --prod
|
|
24
24
|
To start a new project in an empty folder run:
|
25
25
|
|
26
26
|
```bash
|
27
|
-
|
28
|
-
|
27
|
+
npx core-maugli init my-blog
|
28
|
+
cd my-blog
|
29
|
+
npm run dev
|
29
30
|
```
|
30
31
|
|
32
|
+
Your blog will be available at `http://localhost:4321/`
|
33
|
+
|
31
34
|
1. **Install dependencies**
|
32
35
|
|
33
36
|
If you created your project using the provided `init` script, the
|
package/bin/init.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
|
3
|
+
import { execSync } from 'child_process';
|
3
4
|
import { cpSync, existsSync } from 'fs';
|
4
5
|
import path from 'path';
|
5
6
|
import { fileURLToPath } from 'url';
|
6
|
-
import { execSync } from 'child_process';
|
7
7
|
|
8
8
|
const __filename = fileURLToPath(import.meta.url);
|
9
9
|
const __dirname = path.dirname(__filename);
|
@@ -29,11 +29,16 @@ export default function init(targetName) {
|
|
29
29
|
const items = [
|
30
30
|
'astro.config.mjs',
|
31
31
|
'tsconfig.json',
|
32
|
+
'vite.config.js',
|
32
33
|
'public',
|
33
34
|
'src',
|
34
35
|
'scripts',
|
35
36
|
'typograf-batch.js',
|
36
|
-
'resize-all.cjs'
|
37
|
+
'resize-all.cjs',
|
38
|
+
'README.md',
|
39
|
+
'LICENSE',
|
40
|
+
'.gitignore',
|
41
|
+
'.prettierrc'
|
37
42
|
];
|
38
43
|
items.forEach(copyItem);
|
39
44
|
|
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.0.
|
5
|
+
"version": "1.0.5",
|
6
6
|
"license": "GPL-3.0-or-later OR Commercial",
|
7
7
|
"repository": {
|
8
8
|
"type": "git",
|
@@ -67,7 +67,11 @@
|
|
67
67
|
"bin",
|
68
68
|
"astro.config.mjs",
|
69
69
|
"tsconfig.json",
|
70
|
-
"vite.config.js"
|
70
|
+
"vite.config.js",
|
71
|
+
"LICENSE",
|
72
|
+
"README.md",
|
73
|
+
".gitignore",
|
74
|
+
".prettierrc"
|
71
75
|
],
|
72
76
|
"main": "bin/index.js",
|
73
77
|
"bin": {
|