create-harper 0.0.2 → 0.0.4
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 +5 -0
- package/index.js +37 -214
- package/lib/constants/renameFiles.js +1 -0
- package/lib/fs/applyAndWriteTemplateFile.js +5 -5
- package/lib/fs/crawlTemplateDir.js +3 -3
- package/lib/pkg/toValidPackageName.js +2 -1
- package/lib/steps/getEnvVars.js +87 -0
- package/lib/steps/getImmediate.js +29 -0
- package/lib/steps/getPackageName.js +38 -0
- package/lib/steps/getProjectName.js +40 -0
- package/lib/steps/getTemplate.js +65 -0
- package/lib/steps/handleExistingDir.js +61 -0
- package/lib/steps/scaffoldProject.js +40 -0
- package/lib/steps/showOutro.js +30 -0
- package/package.json +12 -8
- package/template-barebones/README.md +1 -1
- package/template-barebones/_env +3 -0
- package/template-barebones/_env.example +3 -0
- package/template-barebones/package.json +1 -1
- package/template-react/README.md +1 -1
- package/template-react/_aiignore +1 -0
- package/template-react/_env +3 -0
- package/template-react/_env.example +3 -0
- package/template-react/_github/workflow/deploy.yaml +3 -10
- package/template-react/_gitignore +149 -0
- package/template-react/graphql.config.yml +3 -0
- package/template-react/index.html +1 -1
- package/template-react/package.json +5 -4
- package/template-react-ts/README.md +1 -1
- package/template-react-ts/_aiignore +1 -0
- package/template-react-ts/_env +3 -0
- package/template-react-ts/_env.example +3 -0
- package/template-react-ts/_github/workflow/deploy.yaml +3 -10
- package/template-react-ts/_gitignore +149 -0
- package/template-react-ts/graphql.config.yml +3 -0
- package/template-react-ts/index.html +1 -1
- package/template-react-ts/package.json +5 -4
- package/template-studio/README.md +1 -1
- package/template-studio/_aiignore +1 -0
- package/template-studio/_gitignore +147 -0
- package/template-studio/graphql.config.yml +3 -0
- package/template-studio/package.json +1 -1
- package/template-studio/web/index.html +2 -2
- package/template-studio-ts/README.md +1 -1
- package/template-studio-ts/_aiignore +1 -0
- package/template-studio-ts/_gitignore +147 -0
- package/template-studio-ts/graphql.config.yml +3 -0
- package/template-studio-ts/package.json +1 -1
- package/template-studio-ts/web/index.html +2 -2
- package/template-vanilla/README.md +1 -1
- package/template-vanilla/_aiignore +1 -0
- package/template-vanilla/_env +3 -0
- package/template-vanilla/_env.example +3 -0
- package/template-vanilla/_gitignore +147 -0
- package/template-vanilla/graphql.config.yml +3 -0
- package/template-vanilla/package.json +1 -1
- package/template-vanilla/web/index.html +2 -2
- package/template-vanilla-ts/README.md +1 -1
- package/template-vanilla-ts/_aiignore +1 -0
- package/template-vanilla-ts/_env +3 -0
- package/template-vanilla-ts/_env.example +3 -0
- package/template-vanilla-ts/_gitignore +147 -0
- package/template-vanilla-ts/graphql.config.yml +3 -0
- package/template-vanilla-ts/package.json +1 -1
- package/template-vanilla-ts/web/index.html +2 -2
- package/lib/fs/editFile.js +0 -6
- package/lib/pkg/getFullCustomCommand.js +0 -47
- package/template-shared/_env.example +0 -3
- /package/{template-shared → template-barebones}/_aiignore +0 -0
- /package/{template-shared → template-barebones}/_gitignore +0 -0
- /package/{template-shared → template-barebones}/graphql.config.yml +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as prompts from '@clack/prompts';
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { crawlTemplateDir } from '../fs/crawlTemplateDir.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Step 6: Write out the contents based on all prior steps.
|
|
9
|
+
* @param {string} targetDir
|
|
10
|
+
* @param {string} projectName
|
|
11
|
+
* @param {string} packageName
|
|
12
|
+
* @param {string} template
|
|
13
|
+
* @param {{username: string, target: string, password?: string}} envVars
|
|
14
|
+
* @returns {string} The root directory of the project
|
|
15
|
+
*/
|
|
16
|
+
export function scaffoldProject(targetDir, projectName, packageName, template, envVars) {
|
|
17
|
+
const cwd = process.cwd();
|
|
18
|
+
const root = path.join(cwd, targetDir);
|
|
19
|
+
fs.mkdirSync(root, { recursive: true });
|
|
20
|
+
prompts.log.step(`Scaffolding project in ${root}...`);
|
|
21
|
+
|
|
22
|
+
const substitutions = {
|
|
23
|
+
'your-project-name-here': projectName,
|
|
24
|
+
'your-package-name-here': packageName,
|
|
25
|
+
'your-cluster-username-here': envVars.username,
|
|
26
|
+
'your-cluster-password-here': envVars.password,
|
|
27
|
+
'your-fabric.harper.fast-cluster-url-here': envVars.target,
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const templateDir = path.resolve(
|
|
31
|
+
fileURLToPath(import.meta.url),
|
|
32
|
+
'..',
|
|
33
|
+
'..',
|
|
34
|
+
'..',
|
|
35
|
+
`template-${template}`,
|
|
36
|
+
);
|
|
37
|
+
crawlTemplateDir(root, templateDir, substitutions);
|
|
38
|
+
|
|
39
|
+
return root;
|
|
40
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as prompts from '@clack/prompts';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { install } from '../install.js';
|
|
4
|
+
import { getInstallCommand } from '../pkg/getInstallCommand.js';
|
|
5
|
+
import { getRunCommand } from '../pkg/getRunCommand.js';
|
|
6
|
+
import { start } from '../start.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Step 7: Log out the next steps.
|
|
10
|
+
* @param {string} root
|
|
11
|
+
* @param {string} pkgManager
|
|
12
|
+
* @param {boolean} immediate
|
|
13
|
+
*/
|
|
14
|
+
export function showOutro(root, pkgManager, immediate) {
|
|
15
|
+
if (immediate) {
|
|
16
|
+
install(root, pkgManager);
|
|
17
|
+
start(root, pkgManager);
|
|
18
|
+
} else {
|
|
19
|
+
let doneMessage = '';
|
|
20
|
+
const cwd = process.cwd();
|
|
21
|
+
const cdProjectName = path.relative(cwd, root);
|
|
22
|
+
doneMessage += `Done. Now run:\n`;
|
|
23
|
+
if (root !== cwd) {
|
|
24
|
+
doneMessage += `\n cd ${cdProjectName.includes(' ') ? `"${cdProjectName}"` : cdProjectName}`;
|
|
25
|
+
}
|
|
26
|
+
doneMessage += `\n ${getInstallCommand(pkgManager).join(' ')}`;
|
|
27
|
+
doneMessage += `\n ${getRunCommand(pkgManager, 'dev').join(' ')}`;
|
|
28
|
+
prompts.outro(doneMessage);
|
|
29
|
+
}
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-harper",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "HarperDB",
|
|
@@ -13,22 +13,25 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
"index.js",
|
|
15
15
|
"lib/",
|
|
16
|
+
"!lib/**/*.test.js",
|
|
16
17
|
"template-barebones/",
|
|
17
18
|
"template-react/",
|
|
18
19
|
"template-react-ts/",
|
|
19
|
-
"template-shared/",
|
|
20
20
|
"template-studio/",
|
|
21
21
|
"template-studio-ts/",
|
|
22
22
|
"template-vanilla/",
|
|
23
23
|
"template-vanilla-ts/"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"format": "dprint check",
|
|
26
|
+
"commitlint": "commitlint --edit",
|
|
27
|
+
"format:check": "dprint check",
|
|
29
28
|
"format:fix": "dprint fmt",
|
|
30
29
|
"format:staged": "dprint check --staged",
|
|
31
|
-
"
|
|
30
|
+
"lint:check": "oxlint .",
|
|
31
|
+
"lint:fix": "oxlint . --fix",
|
|
32
|
+
"test": "vitest run",
|
|
33
|
+
"test:coverage": "vitest run --coverage",
|
|
34
|
+
"test:watch": "vitest"
|
|
32
35
|
},
|
|
33
36
|
"engines": {
|
|
34
37
|
"node": "^20.19.0 || >=22.12.0"
|
|
@@ -45,13 +48,14 @@
|
|
|
45
48
|
"@clack/prompts": "^1.0.0-alpha.9",
|
|
46
49
|
"@vercel/detect-agent": "^1.0.0",
|
|
47
50
|
"cross-spawn": "^7.0.6",
|
|
48
|
-
"lodash": "^4.17.21",
|
|
49
51
|
"mri": "^1.2.0",
|
|
50
52
|
"picocolors": "^1.1.1"
|
|
51
53
|
},
|
|
52
54
|
"devDependencies": {
|
|
55
|
+
"@commitlint/cli": "^20.0.0",
|
|
56
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
57
|
+
"@vitest/coverage-v8": "^4.0.17",
|
|
53
58
|
"dprint": "^0.51.1",
|
|
54
|
-
"harperdb": "^4.7.15",
|
|
55
59
|
"oxlint": "^1.38.0",
|
|
56
60
|
"vitest": "^4.0.17"
|
|
57
61
|
}
|
package/template-react/README.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.env
|
|
@@ -26,15 +26,8 @@ jobs:
|
|
|
26
26
|
- name: Install dependencies
|
|
27
27
|
run: npm ci
|
|
28
28
|
- name: Run unit tests
|
|
29
|
-
run: npm
|
|
29
|
+
run: npm test
|
|
30
30
|
- name: Run lint
|
|
31
31
|
run: npm run lint
|
|
32
|
-
- name: Build
|
|
33
|
-
run: npm run build
|
|
34
|
-
- name: Deploy
|
|
35
|
-
run: |
|
|
36
|
-
mkdir deploy
|
|
37
|
-
mv web deploy/
|
|
38
|
-
cp -R deploy-template/* deploy/
|
|
39
|
-
cd deploy
|
|
40
|
-
CLI_TARGET_USERNAME=${{ secrets.CLI_TARGET_USERNAME }} CLI_TARGET_PASSWORD='${{ secrets.CLI_TARGET_PASSWORD }}' harperdb deploy_component project='${{ secrets.CLI_DEPLOY_TARGET_NAME }}' target='${{ secrets.CLI_DEPLOY_TARGET_URL }}' restart=false replicated=true
|
|
32
|
+
- name: Build & deploy
|
|
33
|
+
run: npm run build-and-deploy
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
.DS_Store
|
|
2
|
+
web
|
|
3
|
+
deploy
|
|
4
|
+
|
|
5
|
+
#
|
|
6
|
+
# https://raw.githubusercontent.com/github/gitignore/refs/heads/main/Node.gitignore
|
|
7
|
+
#
|
|
8
|
+
|
|
9
|
+
# Logs
|
|
10
|
+
logs
|
|
11
|
+
*.log
|
|
12
|
+
npm-debug.log*
|
|
13
|
+
yarn-debug.log*
|
|
14
|
+
yarn-error.log*
|
|
15
|
+
lerna-debug.log*
|
|
16
|
+
|
|
17
|
+
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
18
|
+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
19
|
+
|
|
20
|
+
# Runtime data
|
|
21
|
+
pids
|
|
22
|
+
*.pid
|
|
23
|
+
*.seed
|
|
24
|
+
*.pid.lock
|
|
25
|
+
|
|
26
|
+
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
27
|
+
lib-cov
|
|
28
|
+
|
|
29
|
+
# Coverage directory used by tools like istanbul
|
|
30
|
+
coverage
|
|
31
|
+
*.lcov
|
|
32
|
+
|
|
33
|
+
# nyc test coverage
|
|
34
|
+
.nyc_output
|
|
35
|
+
|
|
36
|
+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
37
|
+
.grunt
|
|
38
|
+
|
|
39
|
+
# Bower dependency directory (https://bower.io/)
|
|
40
|
+
bower_components
|
|
41
|
+
|
|
42
|
+
# node-waf configuration
|
|
43
|
+
.lock-wscript
|
|
44
|
+
|
|
45
|
+
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
46
|
+
build/Release
|
|
47
|
+
|
|
48
|
+
# Dependency directories
|
|
49
|
+
node_modules/
|
|
50
|
+
jspm_packages/
|
|
51
|
+
|
|
52
|
+
# Snowpack dependency directory (https://snowpack.dev/)
|
|
53
|
+
web_modules/
|
|
54
|
+
|
|
55
|
+
# TypeScript cache
|
|
56
|
+
*.tsbuildinfo
|
|
57
|
+
|
|
58
|
+
# Optional npm cache directory
|
|
59
|
+
.npm
|
|
60
|
+
|
|
61
|
+
# Optional eslint cache
|
|
62
|
+
.eslintcache
|
|
63
|
+
|
|
64
|
+
# Optional stylelint cache
|
|
65
|
+
.stylelintcache
|
|
66
|
+
|
|
67
|
+
# Optional REPL history
|
|
68
|
+
.node_repl_history
|
|
69
|
+
|
|
70
|
+
# Output of 'npm pack'
|
|
71
|
+
*.tgz
|
|
72
|
+
|
|
73
|
+
# Yarn Integrity file
|
|
74
|
+
.yarn-integrity
|
|
75
|
+
|
|
76
|
+
# dotenv environment variable files
|
|
77
|
+
.env
|
|
78
|
+
.env.*
|
|
79
|
+
!.env.example
|
|
80
|
+
|
|
81
|
+
# parcel-bundler cache (https://parceljs.org/)
|
|
82
|
+
.cache
|
|
83
|
+
.parcel-cache
|
|
84
|
+
|
|
85
|
+
# Next.js build output
|
|
86
|
+
.next
|
|
87
|
+
out
|
|
88
|
+
|
|
89
|
+
# Nuxt.js build / generate output
|
|
90
|
+
.nuxt
|
|
91
|
+
dist
|
|
92
|
+
.output
|
|
93
|
+
|
|
94
|
+
# Gatsby files
|
|
95
|
+
.cache/
|
|
96
|
+
# Comment in the public line in if your project uses Gatsby and not Next.js
|
|
97
|
+
# https://nextjs.org/blog/next-9-1#public-directory-support
|
|
98
|
+
# public
|
|
99
|
+
|
|
100
|
+
# vuepress build output
|
|
101
|
+
.vuepress/dist
|
|
102
|
+
|
|
103
|
+
# vuepress v2.x temp and cache directory
|
|
104
|
+
.temp
|
|
105
|
+
.cache
|
|
106
|
+
|
|
107
|
+
# Sveltekit cache directory
|
|
108
|
+
.svelte-kit/
|
|
109
|
+
|
|
110
|
+
# vitepress build output
|
|
111
|
+
**/.vitepress/dist
|
|
112
|
+
|
|
113
|
+
# vitepress cache directory
|
|
114
|
+
**/.vitepress/cache
|
|
115
|
+
|
|
116
|
+
# Docusaurus cache and generated files
|
|
117
|
+
.docusaurus
|
|
118
|
+
|
|
119
|
+
# Serverless directories
|
|
120
|
+
.serverless/
|
|
121
|
+
|
|
122
|
+
# FuseBox cache
|
|
123
|
+
.fusebox/
|
|
124
|
+
|
|
125
|
+
# DynamoDB Local files
|
|
126
|
+
.dynamodb/
|
|
127
|
+
|
|
128
|
+
# Firebase cache directory
|
|
129
|
+
.firebase/
|
|
130
|
+
|
|
131
|
+
# TernJS port file
|
|
132
|
+
.tern-port
|
|
133
|
+
|
|
134
|
+
# Stores VSCode versions used for testing VSCode extensions
|
|
135
|
+
.vscode-test
|
|
136
|
+
|
|
137
|
+
# yarn v3
|
|
138
|
+
.pnp.*
|
|
139
|
+
.yarn/*
|
|
140
|
+
!.yarn/patches
|
|
141
|
+
!.yarn/plugins
|
|
142
|
+
!.yarn/releases
|
|
143
|
+
!.yarn/sdks
|
|
144
|
+
!.yarn/versions
|
|
145
|
+
|
|
146
|
+
# Vite files
|
|
147
|
+
vite.config.js.timestamp-*
|
|
148
|
+
vite.config.ts.timestamp-*
|
|
149
|
+
.vite/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title
|
|
7
|
+
<title>your-project-name-here</title>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="app"></div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "your-package-name-here",
|
|
3
3
|
"private": true,
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"type": "module",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"test": "echo 'No tests implemented yet'",
|
|
9
9
|
"lint": "echo 'No lint implemented yet'",
|
|
10
10
|
"build": "vite build",
|
|
11
|
-
"preview": "vite preview"
|
|
11
|
+
"preview": "vite preview",
|
|
12
|
+
"build-and-deploy": "npm run build && mkdir deploy && mv web deploy/ && cp -R deploy-template/* deploy/ && (cd deploy && npx -y dotenv-cli -- harperdb deploy . restart=rolling replicated=true)"
|
|
12
13
|
},
|
|
13
14
|
"devDependencies": {
|
|
14
15
|
"@harperfast/vite-plugin": "^0.0.1",
|
|
@@ -16,9 +17,9 @@
|
|
|
16
17
|
"harperdb": "^4.7.15",
|
|
17
18
|
"react": "^19.2.3",
|
|
18
19
|
"react-dom": "^19.2.3",
|
|
19
|
-
"vite": "npm:rolldown-vite@7.
|
|
20
|
+
"vite": "npm:rolldown-vite@7.3.1"
|
|
20
21
|
},
|
|
21
22
|
"overrides": {
|
|
22
|
-
"vite": "npm:rolldown-vite@7.
|
|
23
|
+
"vite": "npm:rolldown-vite@7.3.1"
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.env
|
|
@@ -26,15 +26,8 @@ jobs:
|
|
|
26
26
|
- name: Install dependencies
|
|
27
27
|
run: npm ci
|
|
28
28
|
- name: Run unit tests
|
|
29
|
-
run: npm
|
|
29
|
+
run: npm test
|
|
30
30
|
- name: Run lint
|
|
31
31
|
run: npm run lint
|
|
32
|
-
- name: Build
|
|
33
|
-
run: npm run build
|
|
34
|
-
- name: Deploy
|
|
35
|
-
run: |
|
|
36
|
-
mkdir deploy
|
|
37
|
-
mv web deploy/
|
|
38
|
-
cp -R deploy-template/* deploy/
|
|
39
|
-
cd deploy
|
|
40
|
-
CLI_TARGET_USERNAME=${{ secrets.CLI_TARGET_USERNAME }} CLI_TARGET_PASSWORD='${{ secrets.CLI_TARGET_PASSWORD }}' harperdb deploy_component project='${{ secrets.CLI_DEPLOY_TARGET_NAME }}' target='${{ secrets.CLI_DEPLOY_TARGET_URL }}' restart=false replicated=true
|
|
32
|
+
- name: Build & deploy
|
|
33
|
+
run: npm run build-and-deploy
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
.DS_Store
|
|
2
|
+
web
|
|
3
|
+
deploy
|
|
4
|
+
|
|
5
|
+
#
|
|
6
|
+
# https://raw.githubusercontent.com/github/gitignore/refs/heads/main/Node.gitignore
|
|
7
|
+
#
|
|
8
|
+
|
|
9
|
+
# Logs
|
|
10
|
+
logs
|
|
11
|
+
*.log
|
|
12
|
+
npm-debug.log*
|
|
13
|
+
yarn-debug.log*
|
|
14
|
+
yarn-error.log*
|
|
15
|
+
lerna-debug.log*
|
|
16
|
+
|
|
17
|
+
# Diagnostic reports (https://nodejs.org/api/report.html)
|
|
18
|
+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|
19
|
+
|
|
20
|
+
# Runtime data
|
|
21
|
+
pids
|
|
22
|
+
*.pid
|
|
23
|
+
*.seed
|
|
24
|
+
*.pid.lock
|
|
25
|
+
|
|
26
|
+
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
27
|
+
lib-cov
|
|
28
|
+
|
|
29
|
+
# Coverage directory used by tools like istanbul
|
|
30
|
+
coverage
|
|
31
|
+
*.lcov
|
|
32
|
+
|
|
33
|
+
# nyc test coverage
|
|
34
|
+
.nyc_output
|
|
35
|
+
|
|
36
|
+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
37
|
+
.grunt
|
|
38
|
+
|
|
39
|
+
# Bower dependency directory (https://bower.io/)
|
|
40
|
+
bower_components
|
|
41
|
+
|
|
42
|
+
# node-waf configuration
|
|
43
|
+
.lock-wscript
|
|
44
|
+
|
|
45
|
+
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
46
|
+
build/Release
|
|
47
|
+
|
|
48
|
+
# Dependency directories
|
|
49
|
+
node_modules/
|
|
50
|
+
jspm_packages/
|
|
51
|
+
|
|
52
|
+
# Snowpack dependency directory (https://snowpack.dev/)
|
|
53
|
+
web_modules/
|
|
54
|
+
|
|
55
|
+
# TypeScript cache
|
|
56
|
+
*.tsbuildinfo
|
|
57
|
+
|
|
58
|
+
# Optional npm cache directory
|
|
59
|
+
.npm
|
|
60
|
+
|
|
61
|
+
# Optional eslint cache
|
|
62
|
+
.eslintcache
|
|
63
|
+
|
|
64
|
+
# Optional stylelint cache
|
|
65
|
+
.stylelintcache
|
|
66
|
+
|
|
67
|
+
# Optional REPL history
|
|
68
|
+
.node_repl_history
|
|
69
|
+
|
|
70
|
+
# Output of 'npm pack'
|
|
71
|
+
*.tgz
|
|
72
|
+
|
|
73
|
+
# Yarn Integrity file
|
|
74
|
+
.yarn-integrity
|
|
75
|
+
|
|
76
|
+
# dotenv environment variable files
|
|
77
|
+
.env
|
|
78
|
+
.env.*
|
|
79
|
+
!.env.example
|
|
80
|
+
|
|
81
|
+
# parcel-bundler cache (https://parceljs.org/)
|
|
82
|
+
.cache
|
|
83
|
+
.parcel-cache
|
|
84
|
+
|
|
85
|
+
# Next.js build output
|
|
86
|
+
.next
|
|
87
|
+
out
|
|
88
|
+
|
|
89
|
+
# Nuxt.js build / generate output
|
|
90
|
+
.nuxt
|
|
91
|
+
dist
|
|
92
|
+
.output
|
|
93
|
+
|
|
94
|
+
# Gatsby files
|
|
95
|
+
.cache/
|
|
96
|
+
# Comment in the public line in if your project uses Gatsby and not Next.js
|
|
97
|
+
# https://nextjs.org/blog/next-9-1#public-directory-support
|
|
98
|
+
# public
|
|
99
|
+
|
|
100
|
+
# vuepress build output
|
|
101
|
+
.vuepress/dist
|
|
102
|
+
|
|
103
|
+
# vuepress v2.x temp and cache directory
|
|
104
|
+
.temp
|
|
105
|
+
.cache
|
|
106
|
+
|
|
107
|
+
# Sveltekit cache directory
|
|
108
|
+
.svelte-kit/
|
|
109
|
+
|
|
110
|
+
# vitepress build output
|
|
111
|
+
**/.vitepress/dist
|
|
112
|
+
|
|
113
|
+
# vitepress cache directory
|
|
114
|
+
**/.vitepress/cache
|
|
115
|
+
|
|
116
|
+
# Docusaurus cache and generated files
|
|
117
|
+
.docusaurus
|
|
118
|
+
|
|
119
|
+
# Serverless directories
|
|
120
|
+
.serverless/
|
|
121
|
+
|
|
122
|
+
# FuseBox cache
|
|
123
|
+
.fusebox/
|
|
124
|
+
|
|
125
|
+
# DynamoDB Local files
|
|
126
|
+
.dynamodb/
|
|
127
|
+
|
|
128
|
+
# Firebase cache directory
|
|
129
|
+
.firebase/
|
|
130
|
+
|
|
131
|
+
# TernJS port file
|
|
132
|
+
.tern-port
|
|
133
|
+
|
|
134
|
+
# Stores VSCode versions used for testing VSCode extensions
|
|
135
|
+
.vscode-test
|
|
136
|
+
|
|
137
|
+
# yarn v3
|
|
138
|
+
.pnp.*
|
|
139
|
+
.yarn/*
|
|
140
|
+
!.yarn/patches
|
|
141
|
+
!.yarn/plugins
|
|
142
|
+
!.yarn/releases
|
|
143
|
+
!.yarn/sdks
|
|
144
|
+
!.yarn/versions
|
|
145
|
+
|
|
146
|
+
# Vite files
|
|
147
|
+
vite.config.js.timestamp-*
|
|
148
|
+
vite.config.ts.timestamp-*
|
|
149
|
+
.vite/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title
|
|
7
|
+
<title>your-project-name-here</title>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="app"></div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "your-package-name-here",
|
|
3
3
|
"private": true,
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"type": "module",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"test": "echo 'No tests implemented yet'",
|
|
9
9
|
"lint": "echo 'No lint implemented yet'",
|
|
10
10
|
"build": "tsc -b && vite build",
|
|
11
|
-
"preview": "vite preview"
|
|
11
|
+
"preview": "vite preview",
|
|
12
|
+
"build-and-deploy": "npm run build && mkdir deploy && mv web deploy/ && cp -R deploy-template/* deploy/ && (cd deploy && npx -y dotenv-cli -- harperdb deploy . restart=rolling replicated=true)"
|
|
12
13
|
},
|
|
13
14
|
"devDependencies": {
|
|
14
15
|
"@harperfast/vite-plugin": "^0.0.1",
|
|
@@ -20,9 +21,9 @@
|
|
|
20
21
|
"react": "^19.2.3",
|
|
21
22
|
"react-dom": "^19.2.3",
|
|
22
23
|
"typescript": "~5.9.3",
|
|
23
|
-
"vite": "npm:rolldown-vite@7.
|
|
24
|
+
"vite": "npm:rolldown-vite@7.3.1"
|
|
24
25
|
},
|
|
25
26
|
"overrides": {
|
|
26
|
-
"vite": "npm:rolldown-vite@7.
|
|
27
|
+
"vite": "npm:rolldown-vite@7.3.1"
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.env
|