Skip to content

Commit

Permalink
Aligned dotfiles & default repository files with core metalsmith plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
webketje committed Dec 11, 2021
1 parent 5f20b20 commit 0f1cc8f
Show file tree
Hide file tree
Showing 13 changed files with 86 additions and 44 deletions.
8 changes: 5 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
root = true

[*]
charset = utf-8

[*.{js,json}]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
26 changes: 0 additions & 26 deletions .eslintrc

This file was deleted.

8 changes: 8 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
env:
node: true
es6: true
extends:
- 'eslint:recommended'
- 'prettier'
parserOptions:
ecmaVersion: 2017
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
node_modules
node_modules
.nyc_output
coverage.info
test/fixtures/*/build
*.tgz
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package-lock.json = false
sign-git-tag = true
message = Bump package.json to %s
4 changes: 2 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
package-lock.json
package.json
test/fixtures/**
.nyc_output/**
1 change: 0 additions & 1 deletion .prettierrc

This file was deleted.

7 changes: 7 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
trailingComma: none
tabWidth: 2
semi: false
singleQuote: true
bracketSpacing: true
arrowParens: always
printWidth: 120
24 changes: 24 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"hooks": {
"before:init": ["npm run lint", "npm test"],
"after:bump": "auto-changelog --sort-commits date -p --starting-date 2021-12-01 --commit-limit false --ignore-commit-pattern '(skip changelog|Release)'",
"after:npm:bump": "npm pack",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
},
"git": {
"commitMessage": "Release ${version}",
"commitArgs": ["-S"],
"tagAnnotation": "Release ${version}",
"tagArgs": ["-s"],
"changelog": "auto-changelog --sort-commits date -u --starting-date 2021-12-01 --commit-limit false --ignore-commit-pattern '(skip changelog|Release)' --stdout"
},
"npm": {
"publish": false
},
"github": {
"release": true,
"releaseName": "@metalsmith/markdown ${version}",
"tokenRef": "GITHUB_TOKEN",
"assets": ["metalsmith-markdown-${version}.tgz"]
}
}
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: node_js
dist: xenial

node_js:
- node
- 16
- 12
- 8

os:
- linux
- windows

jobs:
include:
- name: lint
script: npm run lint
- name: coveralls
script: npm run test && npm run coveralls

script: npm run test
20 changes: 10 additions & 10 deletions History.md → CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ Check for [unreleased][] changes.

---

[unreleased]: https://github.com/segmentio/metalsmith-markdown/compare/v1.2.0...HEAD
[1.3.0]: https://github.com/segmentio/metalsmith-markdown/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/segmentio/metalsmith-markdown/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/segmentio/metalsmith-markdown/compare/v1.0.1...v1.1.0
[1.0.1]: https://github.com/segmentio/metalsmith-markdown/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/segmentio/metalsmith-markdown/compare/v0.2.2...v1.0.0
[0.2.2]: https://github.com/segmentio/metalsmith-markdown/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/segmentio/metalsmith-markdown/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/segmentio/metalsmith-markdown/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/segmentio/metalsmith-markdown/compare/v0.0.1...v0.1.0
[unreleased]: https://github.com/metalsmith/markdown/compare/v1.2.0...HEAD
[1.3.0]: https://github.com/metalsmith/markdown/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/metalsmith/markdown/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/metalsmith/markdown/compare/v1.0.1...v1.1.0
[1.0.1]: https://github.com/metalsmith/markdown/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/metalsmith/markdown/compare/v0.2.2...v1.0.0
[0.2.2]: https://github.com/metalsmith/markdown/compare/v0.2.1...v0.2.2
[0.2.1]: https://github.com/metalsmith/markdown/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/metalsmith/markdown/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/metalsmith/markdown/compare/v0.0.1...v0.1.0
File renamed without changes.
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var equal = require('assert-dir-equal');
var Metalsmith = require('metalsmith');
var markdown = require('..');

describe('metalsmith-markdown', function() {
describe('@metalsmith/markdown', function() {
it('should convert markdown files', function(done) {
Metalsmith('test/fixtures/basic')
.use(
Expand Down

0 comments on commit 0f1cc8f

Please sign in to comment.