update tooling
This commit is contained in:
parent
aae8ce8428
commit
7c3be2621c
4 changed files with 92 additions and 51 deletions
21
.editorconfig
Normal file
21
.editorconfig
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# EditorConfig is awesome: https://EditorConfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = tab
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.{ls,yml,yaml}]
|
||||||
|
indent_style = space
|
||||||
|
|
||||||
|
[*.{cjs,js,mjs,ts}]
|
||||||
|
block_comment_start = /*
|
||||||
|
block_comment = *
|
||||||
|
block_comment_end = */
|
||||||
|
|
||||||
|
[*.{markdown,md}]
|
||||||
|
indent_style = space
|
||||||
|
trim_trailing_whitespace = false
|
|
@ -1,6 +1,27 @@
|
||||||
name: CI
|
name: 'Run tests on NodeJS'
|
||||||
|
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/node.yml'
|
||||||
|
- '1.0/*'
|
||||||
|
- '2.0/*'
|
||||||
|
- '2.5/*'
|
||||||
|
- '3.0/*'
|
||||||
|
- '4.0/*'
|
||||||
|
- 'package.json'
|
||||||
|
- 'pnpm-lock.yaml'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/node.yml'
|
||||||
|
- '1.0/*'
|
||||||
|
- '2.0/*'
|
||||||
|
- '2.5/*'
|
||||||
|
- '3.0/*'
|
||||||
|
- '4.0/*'
|
||||||
|
- 'package.json'
|
||||||
|
- 'pnpm-lock.yaml'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
default:
|
default:
|
90
package.json
90
package.json
|
@ -1,47 +1,47 @@
|
||||||
{
|
{
|
||||||
"name": "cc-md",
|
"name": "cc-md",
|
||||||
"version": "0.4.1",
|
"version": "0.4.1",
|
||||||
"description": "Markdown-formatted Creative Commons licenses",
|
"description": "Markdown-formatted Creative Commons licenses",
|
||||||
"author": "idleberg",
|
"author": "idleberg",
|
||||||
"license": "CC0-1.0",
|
"license": "CC0-1.0",
|
||||||
"files": [
|
"files": [
|
||||||
"1.0/",
|
"1.0/",
|
||||||
"2.0/",
|
"2.0/",
|
||||||
"2.5/",
|
"2.5/",
|
||||||
"3.0/",
|
"3.0/",
|
||||||
"4.0/",
|
"4.0/",
|
||||||
"legacy/",
|
"legacy/",
|
||||||
"LICENSE",
|
"LICENSE",
|
||||||
"readme.markdown"
|
"readme.markdown"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "npm run test",
|
"lint": "npm run test",
|
||||||
"prepare": "husky",
|
"prepare": "husky",
|
||||||
"test": "remark -u lint ./**/*.markdown ./readme.markdown"
|
"test": "remark -u lint ./**/*.markdown ./readme.markdown"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"markdown",
|
"markdown",
|
||||||
"creative",
|
"creative",
|
||||||
"commons",
|
"commons",
|
||||||
"licenses",
|
"licenses",
|
||||||
"cc"
|
"cc"
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/idleberg/Creative-Commons-Markdown.git"
|
"url": "git+https://github.com/idleberg/Creative-Commons-Markdown.git"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/idleberg/Creative-Commons-Markdown/issues"
|
"url": "https://github.com/idleberg/Creative-Commons-Markdown/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/idleberg/Creative-Commons-Markdown#readme",
|
"homepage": "https://github.com/idleberg/Creative-Commons-Markdown#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"husky": "^9.1.6",
|
"husky": "^9.1.6",
|
||||||
"lint-staged": "^15.2.10",
|
"lint-staged": "^15.2.10",
|
||||||
"remark-cli": "^12.0.1",
|
"remark-cli": "^12.0.1",
|
||||||
"remark-lint": "^10.0.0"
|
"remark-lint": "^10.0.0"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{md|markdown}": "remark -u lint"
|
"*.{md|markdown}": "remark -u lint"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
|
"packageManager": "pnpm@9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
# Creative Commons Markdown
|
# Creative Commons Markdown
|
||||||
|
|
||||||
[](https://www.npmjs.org/package/cc-md)
|
[](https://github.com/idleberg/Creative-Commons-Markdown/blob/main/LICENSE)
|
||||||
[](https://www.npmjs.org/package/cc-md)
|
[](https://www.npmjs.org/package/cc-md)
|
||||||
[](https://github.com/idleberg/Creative-Commons-Markdown/actions)
|
[](https://github.com/idleberg/Creative-Commons-Markdown/actions)
|
||||||
|
|
||||||
|
|
||||||
On November 25th, 2013, [Creative Commons](http://creativecommons.org/) announced their next generation licenses: [Creative Commons 4.0](https://creativecommons.org/weblog/entry/40768). By default, these are available as [HTML](http://creativecommons.org/licenses/) or [plaintext](http://creativecommons.org/weblog/entry/41127). This project adds [Markdown](http://daringfireball.net/projects/markdown/)-formatted licenses to that list, while aiming for best [compatibility on GitHub](https://github.github.com/gfm/).
|
On November 25th, 2013, [Creative Commons](http://creativecommons.org/) announced their next generation licenses: [Creative Commons 4.0](https://creativecommons.org/weblog/entry/40768). By default, these are available as [HTML](http://creativecommons.org/licenses/) or [plaintext](http://creativecommons.org/weblog/entry/41127). This project adds [Markdown](http://daringfireball.net/projects/markdown/)-formatted licenses to that list, while aiming for best [compatibility on GitHub](https://github.github.com/gfm/).
|
||||||
|
|
||||||
|
|
Reference in a new issue