Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INTER-539] Revisit vue #67

Merged
merged 27 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
24b1aa3
chore: migrate to pnpm
TheUnderScorer Mar 14, 2024
301efb1
chore: remove vue-v2 sdk
TheUnderScorer Mar 14, 2024
b8ff7c1
chore: remove shared rollup config
TheUnderScorer Mar 15, 2024
0e1d647
build: fix rollup build, update rollup deps
TheUnderScorer Mar 15, 2024
72caba1
build: fix examples
TheUnderScorer Mar 15, 2024
b20b276
style: use shared eslint and prettier config
TheUnderScorer Mar 15, 2024
cb27bdc
build: use shared commitlint config
TheUnderScorer Mar 15, 2024
89e3b24
build: use relative path to tsconfig
TheUnderScorer Mar 15, 2024
b0f18fa
style: fix linter in examples
TheUnderScorer Mar 15, 2024
3adc797
test: fix tests
TheUnderScorer Mar 15, 2024
dc8eaa4
build: add shared release config
TheUnderScorer Mar 15, 2024
027fe21
ci: add other shared workflows
TheUnderScorer Mar 15, 2024
4824aca
build: ignore docs directory
TheUnderScorer Mar 15, 2024
b588637
docs: fix api reference url
TheUnderScorer Mar 15, 2024
efc200e
docs(README): mention removal of vue 2 sdk
TheUnderScorer Mar 15, 2024
487af6f
build: update lock
TheUnderScorer Mar 15, 2024
e9ac551
chore: fix spaces
TheUnderScorer Mar 18, 2024
6594d70
docs: use correct ci for badge
TheUnderScorer Mar 18, 2024
376d45e
chore: remove spaces
TheUnderScorer Mar 18, 2024
3a7f1e3
ci: use github app
TheUnderScorer Mar 18, 2024
50fac6d
chore: add @fingerprintjs/conventional-changelog-dx-team
TheUnderScorer Mar 18, 2024
ba0eb3d
refactor: replace deprecated imports
TheUnderScorer Mar 19, 2024
deee32a
docs(README): add a code example with linking and tagging
TheUnderScorer Mar 20, 2024
c919e31
feat: bump @fingerprintjs/fingerprintjs-pro-spa to 1.3.1
TheUnderScorer Mar 22, 2024
a78aa5b
ci: add reset-prerelease-branch workflow
TheUnderScorer Mar 25, 2024
3a0d25e
docs: update logo
TheUnderScorer Mar 25, 2024
e889625
docs: restore resources
TheUnderScorer Mar 25, 2024
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
36 changes: 2 additions & 34 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,9 @@
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
root: true,
extends: [
'plugin:vue/vue3-recommended',
'plugin:vue/essential',
'@fingerprintjs/eslint-config-dx-team',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:prettier/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
sourceType: 'module',
},
settings: {
react: {
version: 'detect',
},
},
plugins: ['@typescript-eslint', 'prettier'],
ignorePatterns: ['build/*', 'node_modules/*', 'dist/*'],
rules: {
semi: 'off',
'linebreak-style': ['error', 'unix'],
'prefer-const': 'error',
'prettier/prettier': 'error',
'@typescript-eslint/no-unused-vars': ['error'],
curly: [2, 'all'],
},
};
}
11 changes: 11 additions & 0 deletions .github/workflows/analyze-commits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Analyze Commit Messages
on:
pull_request:

permissions:
pull-requests: write
contents: write
jobs:
analyze-commits:
name: Generate docs and coverage report
uses: fingerprintjs/dx-team-toolkit/.github/workflows/analyze-commits.yml@v1
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: ci
on:
push:
branches-ignore:
- main
paths-ignore:
- '**.md'

jobs:
build-and-check:
name: Build project and run CI checks
uses: fingerprintjs/dx-team-toolkit/.github/workflows/build-typescript-project.yml@v1
52 changes: 52 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '36 7 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
# Javascript language in codeql also supports typescript
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
12 changes: 12 additions & 0 deletions .github/workflows/coverage-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Check coverage for PR

on:
pull_request:

jobs:
run-tests-check-coverage:
name: Run tests & check coverage
permissions:
checks: write
pull-requests: write
uses: fingerprintjs/dx-team-toolkit/.github/workflows/coverage-diff.yml@v1
15 changes: 15 additions & 0 deletions .github/workflows/docs-and-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Generate docs and coverage report

on:
push:
branches:
- main

jobs:
generate-docs-and-coverage:
name: Generate docs and coverage report
uses: fingerprintjs/dx-team-toolkit/.github/workflows/docs-and-coverage.yml@v1
with:
prepare-gh-pages-commands: |
mv docs/* ./gh-pages
mv coverage/lcov-report ./gh-pages/coverage
25 changes: 0 additions & 25 deletions .github/workflows/docs.yml

This file was deleted.

34 changes: 9 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,16 @@
name: Release
name: release
on:
push:
branches:
- main
- test

jobs:
release:
environment: production
name: Build & Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
token: ${{ secrets.GH_RELEASE_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install npm dependencies
run: yarn install

- name: Release
run: yarn run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
HUSKY: 0
build-and-release:
name: 'Build project, run CI checks and publish new release'
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-typescript-project.yml@v1
with:
appId: ${{ vars.APP_ID }}
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/reset-prerelease-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Reset Prerelease Branch
on:
workflow_dispatch:

jobs:
reset-feature-branch:
uses: fingerprintjs/dx-team-toolkit/.github/workflows/reset-prerelease-branch.yml@v1
with:
branch_name: 'test'
appId: ${{ vars.APP_ID }}
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
34 changes: 0 additions & 34 deletions .github/workflows/test.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ coverage
yarn-error.log

.env
docs
13 changes: 1 addition & 12 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always"
}
"@fingerprintjs/prettier-config-dx-team"
43 changes: 43 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"branches": [
"main",
{
"name": "test",
"prerelease": true
}
],
"tagFormat": "fingerprintjs-pro-vue3-v${version}",
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"config": "@fingerprintjs/conventional-changelog-dx-team",
"releaseRules": "@fingerprintjs/conventional-changelog-dx-team/release-rules"
}
],
[
"@semantic-release/release-notes-generator",
{
"config": "@fingerprintjs/conventional-changelog-dx-team"
}
],
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/exec",
{
"prepareCmd": "yarn build"
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json"
]
}
],
"@semantic-release/github"
]
}
File renamed without changes.
Loading
Loading