Skip to content

Commit df8f167

Browse files
committed
Merge remote-tracking branch 'temp/main' into integrate-zisi-repo
2 parents f7260d1 + 234ce7e commit df8f167

File tree

847 files changed

+135910
-0
lines changed

Some content is hidden

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

847 files changed

+135910
-0
lines changed

Diff for: packages/zip-it-and-ship-it/.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
max_line_length = 120
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

Diff for: packages/zip-it-and-ship-it/.eslintrc.cjs

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
const { overrides } = require('@netlify/eslint-config-node')
2+
3+
module.exports = {
4+
extends: '@netlify/eslint-config-node',
5+
parserOptions: {
6+
sourceType: 'module',
7+
},
8+
rules: {
9+
complexity: 'off',
10+
'import/extensions': ['error', 'ignorePackages'],
11+
'max-lines': 'off',
12+
'n/no-missing-import': 'off',
13+
'no-magic-numbers': 'off',
14+
'max-lines-per-function': 'off',
15+
// This rule enforces using Buffers with `JSON.parse()`. However, TypeScript
16+
// does not recognize yet that `JSON.parse()` accepts Buffers as argument.
17+
'unicorn/prefer-json-parse-buffer': 'off',
18+
'padding-line-between-statements': [
19+
'error',
20+
// Require newline before return
21+
{ blankLine: 'always', prev: '*', next: 'return' },
22+
// Require newline after a batch of variable declarations
23+
{ blankLine: 'always', prev: ['const', 'let', 'var'], next: '*' },
24+
{ blankLine: 'any', prev: ['const', 'let', 'var'], next: ['const', 'let', 'var'] },
25+
],
26+
},
27+
overrides: [
28+
...overrides,
29+
{
30+
files: '*.ts',
31+
rules: {
32+
// Pure ES modules with TypeScript require using `.js` instead of `.ts`
33+
// in imports
34+
'import/extensions': 'off',
35+
'import/no-namespace': 'off',
36+
// https://github.com/typescript-eslint/typescript-eslint/issues/2483
37+
'max-lines': 'off',
38+
'max-statements': 'off',
39+
'no-shadow': 'off',
40+
'@typescript-eslint/no-shadow': 'error',
41+
},
42+
},
43+
{
44+
files: 'tests/**/*.ts',
45+
rules: {
46+
'import/max-dependencies': 'off',
47+
'max-lines-per-function': 'off',
48+
'max-nested-callbacks': 'off',
49+
'max-statements': 'off',
50+
'padding-line-between-statements': 'off',
51+
'@typescript-eslint/no-non-null-assertion': 'off',
52+
'@typescript-eslint/no-explicit-any': 'off',
53+
},
54+
},
55+
],
56+
ignorePatterns: ['tests/fixtures/**/*', 'tests/fixtures-esm/**/*'],
57+
}

Diff for: packages/zip-it-and-ship-it/.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

Diff for: packages/zip-it-and-ship-it/.github/.kodiak.toml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version = 1
2+
3+
[merge.automerge_dependencies]
4+
versions = ["minor", "patch"]
5+
usernames = ["renovate"]
6+
7+
[approve]
8+
auto_approve_usernames = ["renovate"]

Diff for: packages/zip-it-and-ship-it/.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @netlify/ecosystem-pod-developer-foundations
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!--
2+
If you are reporting a new issue, make sure that we do not have any duplicates
3+
already open. You can ensure this by searching the issue list for this
4+
repository. If there is a duplicate, please close your issue and add a comment
5+
to the existing issue instead.
6+
7+
If you suspect your issue is a bug, please edit your issue description to
8+
include the BUG REPORT INFORMATION shown below. If you fail to provide this
9+
information within 7 days, we cannot debug your issue and will close it. We
10+
will, however, reopen it if you later provide the information.
11+
12+
---------------------------------------------------
13+
BUG REPORT INFORMATION
14+
---------------------------------------------------
15+
Use the commands below to provide key information from your environment:
16+
You do NOT have to include this information if this is a FEATURE REQUEST
17+
-->
18+
19+
**- Do you want to request a _feature_ or report a _bug_?**
20+
21+
**- What is the current behavior?**
22+
23+
**- If the current behavior is a bug, please provide the steps to reproduce.**
24+
25+
**- What is the expected behavior?**
26+
27+
**- Please mention your node.js, and operating system version.**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
🎉 Thanks for submitting a pull request! 🎉
2+
3+
#### Summary
4+
5+
Fixes #<replace_with_issue_number>
6+
7+
<!--
8+
Explain the **motivation** for making this change. What existing problem does the pull request solve and how?
9+
-->
10+
11+
---
12+
13+
For us to review and ship your PR efficiently, please perform the following steps:
14+
15+
- [ ] Open a [bug/issue](https://github.com/netlify/zip-it-and-ship-it/issues/new/choose) before writing your code 🧑‍💻.
16+
This ensures we can discuss the changes and get feedback from everyone that should be involved. If you\`re fixing
17+
a typo or something that\`s on fire 🔥 (e.g. incident related), you can skip this step.
18+
- [ ] Read the [contribution guidelines](../CONTRIBUTING.md) 📖. This ensures your code follows our style guide and
19+
passes our tests.
20+
- [ ] Update or add tests (if any source code was changed or added) 🧪
21+
- [ ] Update or add documentation (if features were changed or added) 📝
22+
- [ ] Make sure the status checks below are successful ✅
23+
24+
**A picture of a cute animal (not mandatory, but encouraged)**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
paths-ignore:
2+
- benchmarks/fixtures
3+
- tests/fixtures
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Benchmark
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
benchmark:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Node.js environment
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '*'
20+
cache: 'npm'
21+
check-latest: true
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run benchmarks
27+
run: npm run benchmark
28+
29+
- name: Run Delta
30+
uses: netlify/delta-action@v4
31+
with:
32+
title: '⏱ Benchmark results'
33+
token: ${{ secrets.GITHUB_TOKEN }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'CodeQL'
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: ['main']
9+
paths-ignore:
10+
- '**/*.md'
11+
schedule:
12+
- cron: '39 21 * * 3'
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
permissions:
19+
security-events: write
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Initialize CodeQL
26+
uses: github/codeql-action/init@v3
27+
with:
28+
# includes typescript
29+
languages: 'javascript'
30+
config-file: ./.github/codeql/codeql-config.yml
31+
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@v3
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Dependency License Scanning
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- chore/fossa-workflow
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
jobs:
14+
fossa:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- name: Download fossa cli
20+
run: |-
21+
mkdir -p $HOME/.local/bin
22+
curl https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash -s -- -b $HOME/.local/bin
23+
echo "$HOME/.local/bin" >> $GITHUB_PATH
24+
25+
- name: Fossa init
26+
run: fossa init
27+
- name: Set env
28+
run: echo "line_number=$(grep -n "project" .fossa.yml | cut -f1 -d:)" >> $GITHUB_ENV
29+
- name: Configuration
30+
run: |-
31+
sed -i "${line_number}s|.*| project: [email protected]:${GITHUB_REPOSITORY}.git|" .fossa.yml
32+
cat .fossa.yml
33+
- name: Upload dependencies
34+
run: fossa analyze --debug
35+
env:
36+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: prerelease
2+
on:
3+
push:
4+
branches:
5+
# releases/<tag>/<version>
6+
- releases/*/*
7+
jobs:
8+
prerelease:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: '*'
19+
cache: 'npm'
20+
check-latest: true
21+
registry-url: 'https://registry.npmjs.org'
22+
- name: Extract tag and version
23+
id: extract
24+
run: |-
25+
ref=${{ github.ref }}
26+
branch=${ref:11}
27+
tag_version=${branch:9}
28+
tag=${tag_version%/*}
29+
version=${tag_version##*/}
30+
echo "tag=${tag}" >> $GITHUB_OUTPUT
31+
echo "version=${version}" >> $GITHUB_OUTPUT
32+
- name: Log versions
33+
run: |-
34+
echo tag=${{ steps.extract.outputs.tag }}
35+
echo version=${{ steps.extract.outputs.version }}
36+
- name: Setup git user
37+
run: git config --global user.name github-actions
38+
- name: Setup git email
39+
run: git config --global user.email [email protected]
40+
- name: Run npm version
41+
run: npm version ${{ steps.extract.outputs.version }}-${{ steps.extract.outputs.tag }}
42+
- name: Push changes
43+
run: git push --follow-tags
44+
- name: Run npm publish
45+
run: npm publish --tag=${{ steps.extract.outputs.tag }} --provenance
46+
env:
47+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: release-please
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
id-token: write
11+
contents: write
12+
pull-requests: write
13+
steps:
14+
- uses: navikt/github-app-token-generator@a3831f44404199df32d8f39f7c0ad9bb8fa18b1c
15+
id: get-token
16+
with:
17+
private-key: ${{ secrets.TOKENS_PRIVATE_KEY }}
18+
app-id: ${{ secrets.TOKENS_APP_ID }}
19+
- uses: GoogleCloudPlatform/release-please-action@v4
20+
id: release
21+
with:
22+
token: ${{ steps.get-token.outputs.token }}
23+
release-type: node
24+
package-name: '@netlify/zip-it-and-ship-it'
25+
- uses: actions/checkout@v4
26+
if: ${{ steps.release.outputs.release_created }}
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: '*'
30+
cache: 'npm'
31+
check-latest: true
32+
registry-url: 'https://registry.npmjs.org'
33+
if: ${{ steps.release.outputs.release_created }}
34+
- run: npm publish --provenance
35+
if: ${{ steps.release.outputs.release_created }}
36+
env:
37+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)