Skip to content

Commit bc4a250

Browse files
authored
Merge pull request #40 from upsetjs/sgratzl/upgrade
upgrade setup and prepare for open sourcing
2 parents b026281 + 2f92c57 commit bc4a250

39 files changed

Lines changed: 7266 additions & 13675 deletions

.eslintrc.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/disable_dependabot.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
version: 2
22
updates:
33
# Maintain dependencies for GitHub Actions
4-
- package-ecosystem: 'github-actions'
5-
directory: '/'
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
66
target-branch: dev
77
schedule:
8-
interval: 'weekly'
8+
interval: "weekly"
99
# Maintain dependencies for npm
10-
- package-ecosystem: 'npm'
11-
directory: '/'
10+
- package-ecosystem: "npm"
11+
directory: "/"
1212
target-branch: dev
1313
schedule:
14-
interval: 'weekly'
14+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,16 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v2
9+
- uses: actions/checkout@v5
10+
- uses: actions/setup-node@v5
1111
with:
12-
node-version: 16
13-
- name: Cache Node.js modules
14-
uses: actions/cache@v2
15-
with:
16-
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
17-
key: ${{ runner.OS }}-node2-${{ hashFiles('**/package-lock.json') }}
18-
restore-keys: |
19-
${{ runner.OS }}-node2-
20-
${{ runner.OS }}-
21-
- name: copy example secret
22-
run: cp src/secrets.example.ts src/secrets.ts
23-
- name: create secrets from action secret
24-
env:
25-
LICENSE_INFO: ${{ secrets.LICENSE_KEY }}
26-
if: env.LICENSE_INFO != null
27-
run: |
28-
echo '${{ env.LICENSE_INFO }}' > src/secrets.ts
12+
node-version: lts/*
13+
cache: npm
2914
- run: npm ci
30-
- run: npm run build --if-present
15+
- run: npm run build
16+
- run: npm run build:preview
3117
- run: npm test
3218
- run: npm run lint
33-
- run: npm run alint
3419
- run: |
3520
mkdir -p public/integrations/powerbi
3621
cp dist/upsetjs_venn.pbiviz public/integrations/powerbi/
@@ -44,7 +29,6 @@ jobs:
4429
env:
4530
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
4631
with:
47-
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
4832
external_repository: upsetjs/upsetjs.github.io
4933
publish_branch: main
5034
publish_dir: ./public
@@ -64,7 +48,6 @@ jobs:
6448
env:
6549
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
6650
with:
67-
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
6851
external_repository: upsetjs/upsetjs.github.io
6952
publish_branch: main
7053
publish_dir: ./public

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ node_modules
77
/build
88
/webpack.statistics*
99
/keys
10-
/src/secrets.ts
11-
*.bak.json
10+
*.bak.json
11+
.eslintcache

.prettierignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
src/secrets.ts
1+
*.png
2+
*.svg
3+
*.pbix
4+
.editorconfig
5+
.eslintignore
6+
.prettierignore
7+
.gitattributes
8+
.gitignore
9+
*.resjson

.prettierrc.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"version": "0.1.0",
3-
"configurations": [
4-
{
5-
"name": "Debugger",
6-
"type": "chrome",
7-
"request": "attach",
8-
"port": 9222,
9-
"sourceMaps": true,
10-
"webRoot": "${cwd}/"
11-
}
12-
]
13-
}
2+
"version": "0.1.0",
3+
"configurations": [
4+
{
5+
"name": "Debugger",
6+
"type": "chrome",
7+
"request": "attach",
8+
"port": 9222,
9+
"sourceMaps": true,
10+
"webRoot": "${cwd}/"
11+
}
12+
]
13+
}

.vscode/settings.json

Lines changed: 37 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,41 @@
11
{
2-
"[javascript]": {
3-
"editor.defaultFormatter": "esbenp.prettier-vscode"
2+
"[javascript]": {
3+
"editor.defaultFormatter": "esbenp.prettier-vscode"
4+
},
5+
"[json]": {
6+
"editor.defaultFormatter": "esbenp.prettier-vscode"
7+
},
8+
"[typescript]": {
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
10+
},
11+
"[typescriptreact]": {
12+
"editor.defaultFormatter": "esbenp.prettier-vscode"
13+
},
14+
"[yaml]": {
15+
"editor.defaultFormatter": "esbenp.prettier-vscode"
16+
},
17+
"editor.formatOnSave": true,
18+
"editor.formatOnType": true,
19+
"eslint.enable": true,
20+
"files.associations": {
21+
"*.resjson": "json"
22+
},
23+
"json.schemas": [
24+
{
25+
"fileMatch": ["/pbiviz.json"],
26+
"url": "./node_modules/powerbi-visuals-api/schema.pbiviz.json"
427
},
5-
"[json]": {
6-
"editor.defaultFormatter": "esbenp.prettier-vscode"
28+
{
29+
"fileMatch": ["/capabilities.json"],
30+
"url": "./node_modules/powerbi-visuals-api/schema.capabilities.json"
731
},
8-
"[typescript]": {
9-
"editor.defaultFormatter": "esbenp.prettier-vscode"
10-
},
11-
"[typescriptreact]": {
12-
"editor.defaultFormatter": "esbenp.prettier-vscode"
13-
},
14-
"[yaml]": {
15-
"editor.defaultFormatter": "esbenp.prettier-vscode"
16-
},
17-
"editor.formatOnSave": true,
18-
"editor.formatOnType": true,
19-
"eslint.enable": true,
20-
"files.associations": {
21-
"*.resjson": "json"
22-
},
23-
"json.schemas": [
24-
{
25-
"fileMatch": [
26-
"/pbiviz.json"
27-
],
28-
"url": "./node_modules/powerbi-visuals-api/schema.pbiviz.json"
29-
},
30-
{
31-
"fileMatch": [
32-
"/capabilities.json"
33-
],
34-
"url": "./node_modules/powerbi-visuals-api/schema.capabilities.json"
35-
},
36-
{
37-
"fileMatch": [
38-
"/dependencies.json"
39-
],
40-
"url": "./node_modules/powerbi-visuals-api/schema.dependencies.json"
41-
}
42-
],
43-
"search.exclude": {
44-
"typings": true
45-
},
46-
"typescript.tsdk": "node_modules\\typescript\\lib"
32+
{
33+
"fileMatch": ["/dependencies.json"],
34+
"url": "./node_modules/powerbi-visuals-api/schema.dependencies.json"
35+
}
36+
],
37+
"search.exclude": {
38+
"typings": true
39+
},
40+
"typescript.tsdk": "node_modules\\typescript\\lib"
4741
}

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If you want to use UpSet.js for a commercial application or in a commercial envi
88

99
### Open-source license
1010

11-
> Copyright (C) 2021 Samuel Gratzl (sam@sgratzl.com)
11+
> Copyright (C) 2025 Samuel Gratzl (sam@sgratzl.com)
1212
1313
### GNU AFFERO GENERAL PUBLIC LICENSE
1414

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ see also https://docs.microsoft.com/en-us/power-bi/developer/visuals/environment
3333

3434
```sh
3535
npm i
36-
cp src/secrets.example.json src/secrets.json
3736
npm run pbiviz -- --install-cert
3837
```
3938

0 commit comments

Comments
 (0)