Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/userale_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
node-version: [22.x]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node v${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup pnpm v10
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Install dependencies
run: pnpm i
Expand All @@ -69,21 +67,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [20.x, 22.x, 24.x, 26.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
# See active and security support for Node.js at https://endoflife.date/nodejs
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Node v${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup pnpm v10
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Install dependencies
run: pnpm i
Expand Down
30 changes: 30 additions & 0 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

version: v2
managed:
enabled: true
plugins:
# TypeScript generation for UserALE.js
- remote: buf.build/bufbuild/es
out: products/userale/packages/flagon-userale/src/gen
opt:
- target=ts

# Python generation for Distill (future)
# - remote: buf.build/protocolbuffers/python
# out: products/distill/flagon_distill/gen
29 changes: 29 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

version: v2
modules:
- path: proto
name: buf.build/apache/flagon
lint:
use:
- STANDARD
except:
- PACKAGE_VERSION_SUFFIX
breaking:
use:
- FILE
42 changes: 42 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# EXAMPLE USAGE:
#
# Refer for explanation to following link:
# https://lefthook.dev/configuration/
#
# pre-push:
# jobs:
# - name: packages audit
# tags:
# - frontend
# - security
# run: yarn audit
#
# - name: gems audit
# tags:
# - backend
# - security
# run: bundle audit
#
# pre-commit:
# parallel: true
# jobs:
# - run: yarn eslint {staged_files}
# glob: "*.{js,ts,jsx,tsx}"
#
# - name: rubocop
# glob: "*.rb"
# exclude:
# - config/application.rb
# - config/routes.rb
# run: bundle exec rubocop --force-exclusion -- {all_files}
#
# - name: govet
# files: git ls-files -m
# glob: "*.go"
# run: go vet -- {files}
#
# - script: "hello.js"
# runner: node
#
# - script: "hello.go"
# runner: go run
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"hooks": {
"pre-commit": "npm run lint"
}
}
},
"packageManager": "pnpm@10.34.5"
}
1 change: 1 addition & 0 deletions products/userale/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ module.exports = [
'no-cond-assign': 'warn',
'no-constant-condition': 'warn',
'no-unused-vars': 'warn',
'no-useless-assignment': 'warn',
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
},
Expand Down
10 changes: 5 additions & 5 deletions products/userale/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
"example:watch": "nodemon -w ./example/server example/server/server.js"
},
"devDependencies": {
"@eslint/js": "^9.29.0",
"@eslint/js": "^10.0.1",
"@ianvs/prettier-plugin-sort-imports": "4.1.1",
"@playwright/test": "^1.52.0",
"@types/node": "^22.15.30",
"body-parser": "^1.20.2",
"eslint": "9.29.0",
"eslint": "^10.7.0",
"eslint-plugin-jest": "^29.0.1",
"express": "^4.18.2",
"flagon-userale": "workspace:flagon-userale",
"jsonschema": "^1.4.1",
"nodemon": "^3.0.2",
"pnpm": "^10.0.0",
"prettier": "3.9.5",
"typescript": "^5.8.3",
"typescript-eslint": "^7.8.0",
"prettier": "^3.9.5",
"typescript": "^5.9.3",
"typescript-eslint": "^8.63.0",
"ws": "^8.18.0"
}
}
4 changes: 2 additions & 2 deletions products/userale/packages/flagon-userale/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
},
"homepage": "https://flagon.apache.org/",
"engines": {
"node": ">= 18.x",
"npm": ">= 9.x"
"node": ">= 20.x",
"npm": ">= 10.x"
},
"devDependencies": {
"@babel/preset-typescript": "^7.27.1",
Expand Down
Loading
Loading