create-harper 1.0.0 → 1.1.0
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/lib/constants/renameFiles.js +4 -3
- package/package.json +1 -1
- package/template-react/_nvmrc +1 -0
- package/template-react-ts/_nvmrc +1 -0
- package/template-vanilla/_github/workflow/deploy.yaml +33 -0
- package/template-vanilla/_nvmrc +1 -0
- package/template-vanilla/package.json +3 -1
- package/template-vanilla-ts/_github/workflow/deploy.yaml +33 -0
- package/template-vanilla-ts/_nvmrc +1 -0
- package/template-vanilla-ts/package.json +3 -1
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
* @type {Record<string, string>}
|
|
4
4
|
*/
|
|
5
5
|
export const renameFiles = {
|
|
6
|
+
'_env': '.env',
|
|
7
|
+
'_env.example': '.env.example',
|
|
6
8
|
_aiignore: '.aiignore',
|
|
7
|
-
_gitignore: '.gitignore',
|
|
8
9
|
_github: '.github',
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
_gitignore: '.gitignore',
|
|
11
|
+
_nvmrc: '.nvmrc',
|
|
11
12
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24.13.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24.13.1
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Deploy to Harper Fabric
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
# push:
|
|
5
|
+
# branches:
|
|
6
|
+
# - main
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: main
|
|
10
|
+
cancel-in-progress: false
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
deploy:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
fetch-tags: true
|
|
21
|
+
- name: Set up Node.js
|
|
22
|
+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
|
23
|
+
with:
|
|
24
|
+
cache: 'npm'
|
|
25
|
+
node-version-file: '.nvmrc'
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: npm ci
|
|
28
|
+
- name: Run unit tests
|
|
29
|
+
run: npm test
|
|
30
|
+
- name: Run lint
|
|
31
|
+
run: npm run lint
|
|
32
|
+
- name: Deploy
|
|
33
|
+
run: npm run deploy
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24.13.1
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
"start": "harperdb run .",
|
|
8
8
|
"dev": "harperdb dev .",
|
|
9
9
|
"deploy": "dotenv -- npm run deploy:component",
|
|
10
|
-
"deploy:component": "harperdb deploy_component . restart=rolling replicated=true"
|
|
10
|
+
"deploy:component": "harperdb deploy_component . restart=rolling replicated=true",
|
|
11
|
+
"test": "echo 'No tests implemented yet'",
|
|
12
|
+
"lint": "echo 'No lint implemented yet'"
|
|
11
13
|
},
|
|
12
14
|
"devDependencies": {
|
|
13
15
|
"dotenv-cli": "^11.0.0",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Deploy to Harper Fabric
|
|
2
|
+
on:
|
|
3
|
+
workflow_dispatch:
|
|
4
|
+
# push:
|
|
5
|
+
# branches:
|
|
6
|
+
# - main
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: main
|
|
10
|
+
cancel-in-progress: false
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
deploy:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
fetch-tags: true
|
|
21
|
+
- name: Set up Node.js
|
|
22
|
+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
|
23
|
+
with:
|
|
24
|
+
cache: 'npm'
|
|
25
|
+
node-version-file: '.nvmrc'
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: npm ci
|
|
28
|
+
- name: Run unit tests
|
|
29
|
+
run: npm test
|
|
30
|
+
- name: Run lint
|
|
31
|
+
run: npm run lint
|
|
32
|
+
- name: Deploy
|
|
33
|
+
run: npm run deploy
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24.13.1
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
"start": "harperdb run .",
|
|
8
8
|
"dev": "harperdb dev .",
|
|
9
9
|
"deploy": "dotenv -- npm run deploy:component",
|
|
10
|
-
"deploy:component": "harperdb deploy_component . restart=rolling replicated=true"
|
|
10
|
+
"deploy:component": "harperdb deploy_component . restart=rolling replicated=true",
|
|
11
|
+
"test": "echo 'No tests implemented yet'",
|
|
12
|
+
"lint": "echo 'No lint implemented yet'"
|
|
11
13
|
},
|
|
12
14
|
"devDependencies": {
|
|
13
15
|
"dotenv-cli": "^11.0.0",
|