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

Update dev dependencies #18

Merged
merged 9 commits into from
Jan 2, 2025
Merged
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
18 changes: 18 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
{
"name": "Node.js",
"image": "mcr.microsoft.com/devcontainers/base:jammy",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "20"
},
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
"packages": []
},
"ghcr.io/devcontainers/features/git:1": {}
},
"remoteEnv": {
"PATH": "${containerEnv:PATH}:./node_modules/.bin"
}
}
71 changes: 0 additions & 71 deletions .eslintrc.js

This file was deleted.

21 changes: 15 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- develop
- release-*

env:
HUSKY: 0

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -19,6 +22,10 @@ jobs:
contents: read
packages: read

concurrency:
group: ${{ github.ref }}-cd
cancel-in-progress: false

steps:
- name: Import Secrets
id: import-secrets
Expand All @@ -27,18 +34,21 @@ jobs:
access-id: ${{ secrets.GH_AKEYLESS_ACCESS_ID }}
static-secrets: |
{
"/WebComponents/prod/tokens/GH_TOKEN": "GH_TOKEN",
"/WebComponents/prod/tokens/PROGRESS_NPM_REGISTRY_TOKEN": "NPM_TOKEN"
"${{ secrets.GH_AKEYLESS_GH_TOKEN_PATH }}": "GH_TOKEN",
"${{ secrets.GH_AKEYLESS_NPM_TOKEN_PATH }}": "NPM_TOKEN"
}
export-secrets-to-environment: false

- name: Check out branch
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all branches

- name: Install modules
run: npm install --no-audit
run: npm ci --no-audit --no-fund

- name: Verify attestations
run: npm audit signatures

- name: Build package
run: npm run build-package
Expand All @@ -49,8 +59,7 @@ jobs:
npm run test

- name: Publish release
run: ./.github/workflows/scripts/ci-semantic-release
env:
NPM_TOKEN: ${{ steps.import-secrets.outputs.NPM_TOKEN }}
GH_TOKEN: ${{ steps.import-secrets.outputs.GH_TOKEN }}

run: npx semantic-release
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ on:
- develop
- release-*

env:
HUSKY: 0

jobs:
build:
runs-on: ubuntu-latest

permissions:
id-token: write # Required by Akeyless
contents: read
packages: read
concurrency:
group: ${{ github.ref }}-ci
cancel-in-progress: true

steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install modules
run: npm install --no-audit
run: npm ci --no-audit --no-fund

- name: Verify attestations
run: npm audit signatures

- name: Lint
run: npm run lint
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,26 @@ on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
environment: publish

steps:
- name: Import Secrets
id: import-secrets
uses: LanceMcCarthy/akeyless-action@v3
with:
access-id: ${{ secrets.GH_AKEYLESS_ACCESS_ID }}
static-secrets: '{ "/WebComponents/prod/tokens/GH_TOKEN": "GH_TOKEN" }'
static-secrets: '{ "${{ secrets.GH_AKEYLESS_GH_TOKEN_PATH }}": "GH_TOKEN" }'
export-secrets-to-environment: false

- name: Check out master
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: master
fetch-depth: 0 # Fetch all branches
token: ${{ steps.import-secrets.outputs.GH_TOKEN }}

- name: Install modules
run: npm install @telerik/semantic-prerelease@1 --no-save

- name: Fast-forward master to develop
run: npx release-master
run: |
# TODO: Remove after first sync with master
git checkout origin/develop -- ./tools/release-master
./tools/release-master
29 changes: 0 additions & 29 deletions .github/workflows/scripts/ci-semantic-release

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
dist
node_modules
npm-debug.log
package-lock.json
yarn.lock
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint
6 changes: 0 additions & 6 deletions .huskyrc

This file was deleted.

38 changes: 1 addition & 37 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,3 @@
/* eslint-disable */

module.exports = {
parserPreset: 'conventional-changelog-conventionalcommits',
rules: {
'body-leading-blank': [1, 'always'],
'body-max-line-length': [2, 'always', 100],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100],
'header-max-length': [2, 'always', 100],
'scope-case': [2, 'always', 'lower-case'],
'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case']
],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test'
]
]
}
extends: [ "@commitlint/config-conventional" ]
};
19 changes: 19 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import globals from "globals";

/** @type {import('eslint').Linter.Config[]} */
export default [
{
files: ["*/*.js"],
languageOptions: {
sourceType: "module"
}
},
{
languageOptions: {
globals: globals.browser
}
},
{
ignores: ["dist/", "documentation/"]
}
];
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export type OutputType = keyof OutputByType;
export interface JSZipObject {
name: string;
/**
* Present for files loadded with `loadAsync`. May contain ".." path components that could
* Present for files loaded with `loadAsync`. May contain ".." path components that could
* result in a zip-slip attack. See https://snyk.io/research/zip-slip-vulnerability
*/
unsafeOriginalName?: string;
Expand Down
2 changes: 0 additions & 2 deletions lib/base64.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import support from './support';

/* eslint-disable */

// private property
const _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";

Expand Down
2 changes: 0 additions & 2 deletions lib/compressedObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import DataWorker from './stream/DataWorker';
import DataLengthProbe from './stream/DataLengthProbe';
import Crc32Probe from './stream/Crc32Probe';

/* eslint-disable */

/**
* Represent a compressed object, with everything needed to decompress it.
* @constructor
Expand Down
2 changes: 0 additions & 2 deletions lib/crc32.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import * as utils from './utils';

/* eslint-disable */

/**
* The following functions come from pako, from pako/lib/zlib/crc32.js
* released under the MIT license, see pako https://github.com/nodeca/pako/
Expand Down
2 changes: 0 additions & 2 deletions lib/generate/ZipFileWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import * as utf8 from '../utf8';
import crc32 from '../crc32';
import * as signature from '../signature';

/* eslint-disable */

/**
* Transform an integer into a string in hexadecimal.
* @private
Expand Down
2 changes: 0 additions & 2 deletions lib/generate/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import compressions from '../compressions';
import ZipFileWorker from './ZipFileWorker';

/* eslint-disable */

/**
* Find the compression to use.
* @param {String} fileCompression the compression defined at the file level, if any.
Expand Down
2 changes: 0 additions & 2 deletions lib/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import ZipEntries from './zipEntries';
import Crc32Probe from './stream/Crc32Probe';
import nodejsUtils from './nodejsUtils';

/* eslint-disable */

/**
* Check the CRC32 of an entry.
* @param {ZipEntry} zipEntry the zip entry to check.
Expand Down
2 changes: 0 additions & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import * as generate from './generate/index';
import load from './load';
import support from './support';

/* eslint-disable */

/**
* Add a file in the current folder.
* @private
Expand Down
Loading
Loading