Skip to content

Commit c70bed2

Browse files
authored
0.6.1 (#147)
* update version * update version * add graphql CRUD sample * update readme * update de[s * wip handler errors * wip reorg * clean up console * improve shutdown * add pushpin docker * folder reorg * reorg paths * update deps * update docs * update docs * reorg * update path * update openapi * update openapi * sonarcloud fix * update readme
1 parent 41bbcf2 commit c70bed2

File tree

385 files changed

+1698
-1573
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

385 files changed

+1698
-1573
lines changed

.github/workflows/gh-pages.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1+
2+
# TBD - to test
13
# https://dev.to/rolanddoda/deploy-to-github-pages-like-a-pro-with-github-actions-4hdg
24
# notes:
35
# set package.json "homepage": "/name-of-your-project/",
46
# set vite.config.js base: "/name-of-your-project",
57
# set src/router.js: const routerHistory = createWebHistory('/name-of-your-project/')
68
# on Github, select the branch of the Github pages site from project settings
7-
name: Deploy vue-vite to github pages
9+
name: Deploy js-web/vue-vite to github pages
810
on:
911
# push:
1012
# branches:
1113
# - master
1214
# paths:
13-
# - 'vue-vite/**'
15+
# - 'js-web/vue-vite/**'
1416
workflow_dispatch:
1517
inputs:
1618
environment:
@@ -21,7 +23,7 @@ on:
2123
defaults:
2224
run:
2325
# abc/def
24-
working-directory: vue-vite
26+
working-directory: js-web/vue-vite
2527

2628
jobs:
2729
gh-pages-deploy:

.github/workflows/manual.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# try to use as much shell scripting a possible
44
# actions appear from default branch - https://github.community/t/workflow-files-only-picked-up-from-master/16129/2
55

6-
# manual workflow for node-express
6+
# manual workflow for js-node/expressjs
77
name: Manual workflow
88

99
# Controls when the action will run. Workflow runs when manually triggered using the UI
@@ -32,7 +32,7 @@ jobs:
3232
matrix:
3333
node: [ '14' ]
3434

35-
name: Deploying node-express - ${{ github.event.inputs.service }} - ${{ github.event.inputs.environment }}... Using Node ${{ matrix.node }}
35+
name: Deploying js-node/expressjs - ${{ github.event.inputs.service }} - ${{ github.event.inputs.environment }}... Using Node ${{ matrix.node }}
3636
# Steps represent a sequence of tasks that will be executed as part of the job
3737
steps:
3838
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
@@ -52,7 +52,7 @@ jobs:
5252
check-latest: true
5353
- name: Make shell script executable
5454
run: |
55-
chmod +x ./node-express/deploy.sh
55+
chmod +x ./js-node/expressjs/deploy.sh
5656
# Runs a single command using the runners shell
5757
- name: Initiate Deployment
5858
env:
@@ -67,5 +67,5 @@ jobs:
6767
echo "Service: ${{ github.event.inputs.service }}"
6868
echo "Branch: ${GITHUB_REF##*/}"
6969
echo "Environment: ${{ github.event.inputs.environment }}"
70-
cd node-express
70+
cd js-node/expressjs
7171
./deploy.sh ${{ github.event.inputs.environment }} ${{ github.event.inputs.service }}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ node_modules
22

33
# Log files
44
npm-debug.log*
5+
56
# apple stuff
67
.DS_Store
8+
79
# Editor directories and files
810
.idea
911
.vscode
10-
11-
ex-react-ts-spa

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
. "$(dirname "$0")/_/husky.sh"
33

44
echo pre-commit execute start
5-
cd node-express && npm run lint
5+
cd js-node/expressjs && npm run lint
66
# you can do a git add . here also
77
echo pre-commit execute end

@es-labs/esm/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Store JS files used by both frontend and backend
55
- Use ESM to avoid using webpack for compilation on frontend
66
- For backend refer to NodeJS document on how to use ESM in NodeJS
77

8-
- Refer to [node-express](../../node-express) folder for usage
9-
- Refer to [vue-nobundler](../../vue-nobundler) folder for usage
10-
- Refer to [vue-vite](../../vue-vite) folder for usage
8+
- Refer to [../../js-node/expressjs](../../js-node/expressjs) folder for usage
9+
- Refer to [../../js-web/vue-nobundler](../../js-web/vue-nobundler) folder for usage
10+
- Refer to [../../js-web/vue-vite](../../js-web/vue-vite) folder for usage
1111

1212
## Installation
1313

@@ -17,14 +17,14 @@ npm install <path-to-this-foder-from-where-you-want-to-install-this>
1717
e.g.
1818

1919
```
20-
cd node-express
20+
cd js-node/expressjs
2121
npm install ../@es-labs/esm
2222
```
2323

2424
2. from npm
2525

2626
```
27-
cd node-express
27+
cd js-node/expressjs
2828
npm i @es-labs/esm
2929
```
3030

@es-labs/esm/log-filter.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// const type = 'error'
2+
// const orig = console[type]
3+
// console[type] = function logError() {
4+
// orig.apply(console, [`[${new Date().toISOString().replace("T", " ").replace(/\..+/, "")}]`, ...arguments])
5+
// }
6+
const LogFilter = (function () {
7+
return function (list) {
8+
if (list && list.length) {
9+
list.forEach(item => {
10+
console[item] = function () { }
11+
})
12+
}
13+
}
14+
})()

@es-labs/esm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@es-labs/esm",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"author": "Aaron Gong",
55
"license": "MIT",
66
"repository": {

@es-labs/esm/t4t-validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// TBD i18n
1616
// for use with
17-
// - node-express/router/t4t.js
17+
// - js-node/expressjs/router/t4t.js
1818
function validateColumn (rules, type, col, record) {
1919
let invalid = ''
2020
try {

@es-labs/node/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Node JS only libraries for backend
1212
- mq: message queue
1313
- others gcp, keyv, redis, webpush, websocket
1414

15-
Refer to [node-express](../../node-express) folder for usage
15+
Refer to [../../js-node/expressjs](../../js-node/expressjs) folder for usage
1616

1717
## Installation
1818

@@ -22,14 +22,14 @@ npm install <path-to-this-foder-from-where-you-want-to-install-this>
2222
e.g.
2323

2424
```
25-
cd node-express
25+
cd js-node/expressjs
2626
npm install ../@es-labs/node
2727
```
2828

2929
2. from npm
3030

3131
```
32-
cd node-express
32+
cd js-node/expressjs
3333
npm i @es-labs/node
3434
```
3535

@es-labs/node/config.default.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,12 @@ global.CONFIG.BODYPARSER_URLENCODED = null
190190
global.CONFIG.OPENAPI_PATH = ''
191191
global.CONFIG.OPENAPI_VALIDATOR = null
192192

193+
// GraphQL
193194
global.CONFIG.GRAPHQL_SCHEMA_PATH = ''
194195
global.CONFIG.GRAPHQL_URL = ''
195196
global.CONFIG.GRAPHQL_SUB_URL = ''
197+
198+
// sentry.io
199+
global.CONFIG.SENTRY_DSN = ''
200+
global.CONFIG.SENTRY_SAMPLE_RATE = 0.0
201+
global.CONFIG.SENTRY_REQOPTS = null

0 commit comments

Comments
 (0)