Skip to content

Commit

Permalink
Add kv-asset-handler@0.3.1 as-is
Browse files Browse the repository at this point in the history
  • Loading branch information
GregBrimble committed Jan 18, 2024
1 parent ee91efc commit b830304
Show file tree
Hide file tree
Showing 27 changed files with 5,208 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
# C3 ownership
/packages/create-cloudflare/ @cloudflare/c3

# DevRel ownership
/packages/kv-asset-handler/ @cloudflare/developer-advocacy @kristianfreeman @rickyrobinett @lauragift21 @LoganGrasby @craigsdennis

# Owners intentionally left blank on these shared directories
# to avoid noisy review requests
/.changeset/
Expand Down
7 changes: 7 additions & 0 deletions packages/kv-asset-handler/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://editorconfig.org
root = true

[*]
end_of_line = lf
indent_style = tab
tab_width = 2
2 changes: 2 additions & 0 deletions packages/kv-asset-handler/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto
* text eol=lf
4 changes: 4 additions & 0 deletions packages/kv-asset-handler/.github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This is a comment.
# Each line is a file pattern followed by one or more owners.

* @kristianfreeman @rickyrobinett @lauragift21 @LoganGrasby @craigsdennis
6 changes: 6 additions & 0 deletions packages/kv-asset-handler/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
23 changes: 23 additions & 0 deletions packages/kv-asset-handler/.github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint

on: [push, pull_request]

jobs:
prettier:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Restore NPM cache
uses: actions/cache@v3
continue-on-error: true
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run lint:code
26 changes: 26 additions & 0 deletions packages/kv-asset-handler/.github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run npm tests

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm run build --if-present
npm test
env:
CI: true
2 changes: 2 additions & 0 deletions packages/kv-asset-handler/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
32 changes: 32 additions & 0 deletions packages/kv-asset-handler/.markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# MD001 Header levels should only increment by one level at a time
MD001: false

# MD004 Unordered list style
MD004: false

# MD005 Inconsistent indentation for list items at the same level
MD005: false

# MD006 Consider starting bulleted lists at the beginning of the line
MD006: false

# MD007 Unordered list indentation
MD007: false

# MD013 Line length
MD013: false

# MD024 Multiple headers with the same content
MD024: false

# MD025 Multiple top level headers in the same document
MD025: false

# MD032 Lists should be surrounded by blank lines
MD032: false

# MD033 Inline HTML
MD033: false

# MD040 Fenced code blocks should have a language specified
MD040: false
4 changes: 4 additions & 0 deletions packages/kv-asset-handler/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CHANGELOG.md
package.json
package-lock.json
dist/**/*
8 changes: 8 additions & 0 deletions packages/kv-asset-handler/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"endOfLine": "lf",
"trailingComma": "all",
"singleQuote": true,
"useTabs": true,
"semi": false,
"printWidth": 100
}
Loading

0 comments on commit b830304

Please sign in to comment.