Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit bae33cb

Browse files
committed
chore: update to static cms 1.0.0
1 parent 59736eb commit bae33cb

File tree

6 files changed

+3783
-17
lines changed

6 files changed

+3783
-17
lines changed

.github/workflows/codeql.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: ["main"]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: ["main"]
20+
schedule:
21+
- cron: "0 9 * * 4"
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: ["javascript"]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
54+
55+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
56+
# If this step fails, then you should remove it and run the build manually (see below)
57+
- name: Autobuild
58+
uses: github/codeql-action/autobuild@v2
59+
60+
# ℹ️ Command-line programs to run using the OS shell.
61+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
62+
63+
# If the Autobuild fails above, remove it and uncomment the following three lines.
64+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
65+
66+
# - run: |
67+
# echo "Run, Build Application using script"
68+
# ./location_of_script_within_repo/buildscript.sh
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v2
72+
with:
73+
category: "/language:${{matrix.language}}"

.github/workflows/pr-title.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Conventional Commits PR Title"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: Validate PR title
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@v5
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.PR_TITLE_TOKEN }}
18+
19+
- uses: marocchino/sticky-pull-request-comment@v2
20+
# When the previous steps fails, the workflow would stop. By adding this
21+
# condition you can continue the execution with the populated error message.
22+
if: always() && (steps.lint_pr_title.outputs.error_message != null)
23+
with:
24+
header: pr-title-lint-error
25+
message: |
26+
Hey there and thank you for opening this pull request! 👋🏼
27+
28+
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
29+
30+
Details:
31+
32+
```
33+
${{ steps.lint_pr_title.outputs.error_message }}
34+
```
35+
36+
# Delete a previous comment when the issue has been resolved
37+
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
38+
uses: marocchino/sticky-pull-request-comment@v2
39+
with:
40+
header: pr-title-lint-error
41+
delete: true

package.json

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
{
2+
"name": "static-cms-eleventy-netlify-template",
3+
"version": "1.0.0",
4+
"license": "MIT",
5+
"description": "A starter for a blog powered by Eleventy and Static CMS",
6+
"repository": "https://github.com/StaticJsCMS/static-cms-eleventy-netlify-template",
7+
"bugs": "https://github.com/StaticJsCMS/static-cms-eleventy-netlify-template/issues",
8+
"keywords": [
9+
"eleventy",
10+
"static",
11+
"cms",
12+
"netlify"
13+
],
214
"scripts": {
315
"start": "npm-run-all --parallel css eleventy browsersync",
416
"eleventy": "eleventy --watch",
@@ -7,24 +19,24 @@
719
"build": "cross-env NODE_ENV=production eleventy && cross-env NODE_ENV=production tailwindcss -i src/static/css/tailwind.css -o _site/static/css/style.css",
820
"browsersync": "browser-sync start --server _site --files _site --port 8080 --no-notify --no-open"
921
},
22+
"dependencies": {
23+
"autoprefixer": "10.4.13",
24+
"postcss": "8.4.21"
25+
},
1026
"devDependencies": {
11-
"@11ty/eleventy": "^1.0.0",
12-
"@11ty/eleventy-plugin-syntaxhighlight": "^3.1.3",
27+
"@11ty/eleventy": "1.0.2",
28+
"@11ty/eleventy-plugin-syntaxhighlight": "3.2.2",
1329
"@tailwindcss/typography": "^0.5.0",
1430
"alpinejs": "^3.7.1",
15-
"browser-sync": "^2.27.7",
16-
"cross-env": "^7.0.3",
17-
"cssnano": "^5.0.15",
18-
"html-minifier": "^4.0.0",
19-
"js-yaml": "^4.1.0",
20-
"luxon": "^2.3.0",
21-
"npm-run-all": "^4.1.5",
22-
"postcss-cli": "^9.1.0",
23-
"prismjs": "^1.26.0",
24-
"tailwindcss": "^3.0.13"
25-
},
26-
"dependencies": {
27-
"autoprefixer": "^10.4.2",
28-
"postcss": "^8.4.5"
31+
"browser-sync": "2.27.11",
32+
"cross-env": "7.0.3",
33+
"cssnano": "5.1.14",
34+
"html-minifier": "4.0.0",
35+
"js-yaml": "4.1.0",
36+
"luxon": "2.5.2",
37+
"npm-run-all": "4.1.5",
38+
"postcss-cli": "9.1.0",
39+
"prismjs": "1.29.0",
40+
"tailwindcss": "3.2.4"
2941
}
3042
}

renovate.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:base", ":semanticCommits"],
4+
"labels": ["dependencies"],
5+
"packageRules": [
6+
{
7+
"matchPackagePrefixes": [
8+
"lint-staged",
9+
"@types/eslint",
10+
"@typescript-eslint/",
11+
"eslint"
12+
],
13+
"labels": ["linting"]
14+
},
15+
{
16+
"matchDepTypes": ["devDependencies"],
17+
"addLabels": ["dev dependencies"]
18+
},
19+
{
20+
"matchUpdateTypes": ["patch"],
21+
"addLabels": ["patch"]
22+
},
23+
{
24+
"matchUpdateTypes": ["minor"],
25+
"addLabels": ["minor"]
26+
},
27+
{
28+
"matchUpdateTypes": ["major"],
29+
"addLabels": ["major"]
30+
},
31+
{
32+
"matchPackagePrefixes": ["@types/react", "react"],
33+
"addLabels": ["react"]
34+
},
35+
{
36+
"matchPackagePrefixes": ["@types/jest", "jest"],
37+
"addLabels": ["testing"]
38+
}
39+
]
40+
}

src/admin/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</head>
88
<body>
99
<!-- Include the script that builds the page and powers Netlify CMS -->
10-
<script src="https://unpkg.com/@staticcms/core@next/dist/static-cms-core.js"></script>
10+
<script src="https://unpkg.com/@staticcms/core@%5E1.0.0/dist/static-cms-core.js"></script>
1111

1212
<!-- Netlify Identity Widget -->
1313
<script

0 commit comments

Comments
 (0)