create-sonicjs 2.0.0-alpha.2 → 2.0.0-alpha.3
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/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-sonicjs",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.3",
|
|
4
4
|
"description": "Create a new SonicJS application with zero configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"create-sonicjs
|
|
7
|
+
"create-sonicjs": "./bin/create-sonicjs-app.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"bin",
|
|
11
11
|
"src",
|
|
12
|
-
"templates"
|
|
12
|
+
"templates/**/*",
|
|
13
|
+
"templates/starter/.gitignore"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
15
16
|
"build": "echo 'No build needed for CLI'",
|
package/src/cli.js
CHANGED
|
@@ -12,7 +12,7 @@ import validatePackageName from 'validate-npm-package-name'
|
|
|
12
12
|
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
13
13
|
|
|
14
14
|
// Version
|
|
15
|
-
const VERSION = '2.0.0-alpha.
|
|
15
|
+
const VERSION = '2.0.0-alpha.3'
|
|
16
16
|
|
|
17
17
|
// Templates available
|
|
18
18
|
const TEMPLATES = {
|
|
@@ -286,6 +286,13 @@ async function copyTemplate(templateName, targetDir, options) {
|
|
|
286
286
|
|
|
287
287
|
await fs.writeJson(packageJsonPath, packageJson, { spaces: 2 })
|
|
288
288
|
|
|
289
|
+
// Rename gitignore.template to .gitignore
|
|
290
|
+
const gitignoreTemplatePath = path.join(targetDir, 'gitignore.template')
|
|
291
|
+
const gitignorePath = path.join(targetDir, '.gitignore')
|
|
292
|
+
if (fs.existsSync(gitignoreTemplatePath)) {
|
|
293
|
+
await fs.rename(gitignoreTemplatePath, gitignorePath)
|
|
294
|
+
}
|
|
295
|
+
|
|
289
296
|
// Remove example collection if not wanted
|
|
290
297
|
if (!options.includeExample) {
|
|
291
298
|
const examplePath = path.join(targetDir, 'src/collections/blog-posts.collection.ts')
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules/
|
|
3
|
+
.pnpm-store/
|
|
4
|
+
|
|
5
|
+
# Build outputs
|
|
6
|
+
dist/
|
|
7
|
+
.wrangler/
|
|
8
|
+
.mf/
|
|
9
|
+
|
|
10
|
+
# Environment files
|
|
11
|
+
.env
|
|
12
|
+
.env.local
|
|
13
|
+
.env.*.local
|
|
14
|
+
.dev.vars
|
|
15
|
+
|
|
16
|
+
# IDE
|
|
17
|
+
.vscode/
|
|
18
|
+
.idea/
|
|
19
|
+
*.swp
|
|
20
|
+
*.swo
|
|
21
|
+
*~
|
|
22
|
+
|
|
23
|
+
# OS
|
|
24
|
+
.DS_Store
|
|
25
|
+
Thumbs.db
|
|
26
|
+
|
|
27
|
+
# Logs
|
|
28
|
+
*.log
|
|
29
|
+
npm-debug.log*
|
|
30
|
+
yarn-debug.log*
|
|
31
|
+
yarn-error.log*
|
|
32
|
+
pnpm-debug.log*
|
|
33
|
+
|
|
34
|
+
# Test coverage
|
|
35
|
+
coverage/
|
|
36
|
+
.nyc_output/
|
|
37
|
+
|
|
38
|
+
# Temporary files
|
|
39
|
+
tmp/
|
|
40
|
+
temp/
|