Skip to content

Commit 1641a0b

Browse files
authored
Update to tmpl template repository version 0.11.0 (#62)
Updated to `tmpl` version `0.11.0` [1], including the versions in between starting from 0.10.0 [2]: 1. Optimized GitHub action workflow scope [3]. 2. Updated Node.js packages & GitHub actions [4] [^1] [^2]. 3. Opts-in the Dependabot version update configuration [5]. This also includes changes required for any linter matches. [1]: https://github.com/svengreb/tmpl/releases/tag/v0.11.0 [2]: https://github.com/svengreb/tmpl/releases/tag/v0.10.0 [3]: svengreb/tmpl#84 [4]: svengreb/tmpl#86 [5]: svengreb/tmpl#94 [^1]: svengreb/tmpl#78 [^2]: svengreb/tmpl#83 GH-61
1 parent 2199bb5 commit 1641a0b

File tree

10 files changed

+35
-60
lines changed

10 files changed

+35
-60
lines changed

.github/dependabot.yml

-40
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
1-
# Copyright (c) 2018-present Arctic Ice Studio <[email protected]>
21
# Copyright (c) 2018-present Sven Greb <[email protected]>
32
# This source code is licensed under the MIT license found in the LICENSE file.
43

54
# GitHub Action Workflow for continuous integration jobs.
65
# See https://docs.github.com/en/actions and https://github.com/features/actions for more details.
76

8-
name: ci
7+
name: ci-node
98
on:
109
push:
10+
paths:
11+
- "**.js"
12+
- "**.json"
13+
- "**.md"
14+
- "**.yaml"
15+
- "**.yml"
1116
branches:
1217
- main
1318
tags:
1419
- v*
1520
pull_request:
21+
paths:
22+
- "**.js"
23+
- "**.json"
24+
- "**.md"
25+
- "**.yaml"
26+
- "**.yml"
27+
1628
jobs:
17-
lint-node:
29+
lint:
1830
runs-on: ubuntu-latest
1931
steps:
2032
- name: Print metadata and context information
@@ -24,11 +36,12 @@ jobs:
2436
echo "Workflow Actor: $GITHUB_ACTOR"
2537
- name: Checkout repository
2638
uses: actions/checkout@v2
27-
- name: "Setup Node.js version 15"
28-
uses: actions/setup-node@v2.1.5
39+
- name: Setup Node.js version 16
40+
uses: actions/setup-node@v2.4.1
2941
with:
30-
node-version: "15"
42+
node-version: "16"
43+
cache: "npm"
3144
- name: Install Node modules
32-
run: npm install
33-
- name: Run linters
34-
run: npm run lint
45+
run: npm ci
46+
- name: Run linters in CI/CD mode
47+
run: npm run lint:ci

.npmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# multi-consumer projects when any later versions of a used dependency, or its transitive dependencies, is not
1313
# compatible with the own project anymore.
1414
# See https://github.com/svengreb/tmpl/issues/70 for more details.
15-
package-lock=false
15+
package-lock=true
1616

1717
# Resolve to the latest minor and patch updates.
1818
# Enable to automatically pin dependencies to exact versions instead of resolving to latest minor and patch updates.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<p align="center"><a href="https://www.npmjs.com/package/@arcticicestudio/remark-preset-lint" target="_blank" rel="noreferrer"><img src="https://img.shields.io/npm/v/@arcticicestudio/remark-preset-lint.svg?style=flat-square&label=@arcticicestudio/remark-preset-lint&logoColor=eceff4&colorA=4c566a&colorB=88c0d0&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2Q4ZGVlOSIgZD0iTTEyIDE0SDRhMiAyIDAgMCAxLTItMlY0YTIgMiAwIDAgMSAyLTJoOGEyIDIgMCAwIDEgMiAydjhhMiAyIDAgMCAxLTIgMnpNNCAzLjMzMkEuNjcuNjcgMCAwIDAgMy4zMzIgNHY4YzAgLjM2Ny4zLjY2OC42NjguNjY4aDhhLjY3LjY3IDAgMCAwIC42NjgtLjY2OFY0QS42Ny42NyAwIDAgMCAxMiAzLjMzMnptMCAwIi8+PHBhdGggZmlsbD0iI2Q4ZGVlOSIgZD0iTTggNmgyLjY2OHY2LjY2OEg4em0wIDAiLz48L3N2Zz4K"/></a></p>
88

9-
<p align="center"><a href="https://github.com/arcticicestudio/styleguide-markdown/actions" target="_blank" rel="noreferrer"><img src="https://img.shields.io/github/workflow/status/arcticicestudio/styleguide-markdown/ci?style=flat-square&label=CI&logoColor=eceff4&colorA=4c566a&logo=github-actions"/></a></p>
9+
<p align="center"><a href="https://github.com/arcticicestudio/styleguide-markdown/actions" target="_blank" rel="noreferrer"><img src="https://img.shields.io/github/workflow/status/arcticicestudio/styleguide-markdown/ci-node?style=flat-square&label=CI%20Node&logoColor=eceff4&colorA=4c566a&logo=github-actions"/></a></p>
1010

1111
Every major open source project has its own style guide, a set of standards and conventions for the writing and design of code, documentations and assets. It is much easier to understand a large codebase when all the code in it is in a consistent style.
1212

assets/images/badge-codestyle.svg

100755100644
File mode changed.

assets/images/badge.svg

100755100644
File mode changed.

assets/images/packages/@arcticicestudio/remark-preset-lint/repository-hero.ai

100755100644
File mode changed.

assets/images/packages/@arcticicestudio/remark-preset-lint/repository-hero.svg

100755100644
File mode changed.

package.json

+11-9
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"license": "MIT",
2222
"private": true,
2323
"engines": {
24-
"node": "^15.13.0",
25-
"npm": "^7.7.0"
24+
"node": ">=15.13",
25+
"npm": ">=7.7"
2626
},
2727
"workspaces": [
2828
"packages/@arcticicestudio/*"
@@ -37,26 +37,28 @@
3737
"format": "run-s format:pretty format:fix",
3838
"format:fix": "eslint --fix .",
3939
"format:pretty": "prettier --write .",
40-
"lint": "npm-run-all lint:*",
40+
"lint": "run-s lint:*",
41+
"lint:ci": "run-s lint:md lint:ci:*",
42+
"lint:ci:pretty": "prettier --loglevel silent --check .",
43+
"lint:md": "remark --no-stdout . \".github/**/*.md\"",
4144
"lint:js": "eslint .",
42-
"lint:md": "remark --no-stdout . .github/**/*.md",
4345
"lint:pretty": "prettier --check .",
4446
"prepare": "run-s prepare:*",
4547
"prepare:husky": "husky install",
4648
"test": "npm --workspaces run test"
4749
},
4850
"devDependencies": {
49-
"@arcticicestudio/eslint-config-base": ">=0.9.0 <1.0.0",
51+
"@arcticicestudio/eslint-config-base": ">=0.11.0 <1.0.0",
5052
"del-cli": "^3.0.1",
5153
"eslint": "^7.23.0",
5254
"eslint-config-prettier": "^8.1.0",
5355
"eslint-plugin-import": "^2.22.1",
5456
"eslint-plugin-prettier": "^3.3.1",
5557
"gitbook-cli": "2.3.2",
56-
"husky": "^6.0.0",
57-
"lint-staged": "^10.5.4",
58+
"husky": "^7.0.4",
59+
"lint-staged": "^12.0.4",
5860
"npm-run-all": "^4.1.5",
59-
"prettier": "^2.2.1",
60-
"remark-cli": "^9.0.0"
61+
"prettier": "^2.4.1",
62+
"remark-cli": "^10.0.1"
6163
}
6264
}

src/assets/snowflake.png

100755100644
File mode changed.

0 commit comments

Comments
 (0)