Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Mar 18, 2021
0 parents commit 9bbe03d
Show file tree
Hide file tree
Showing 17 changed files with 10,143 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@dword-design/babel-config"
}
13 changes: 13 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"body-max-line-length": [
0
],
"footer-max-line-length": [
0
]
}
}
3 changes: 3 additions & 0 deletions .cz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "cz-conventional-changelog"
}
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf
*.jpg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
74 changes: 74 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
jobs:
cancel-existing:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: rokroskar/workflow-run-cleanup-action@v0.3.2
release:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
- uses: actions/setup-node@v2
with:
node-version: 12
- run: git config --global user.email "actions@github.com"
- run: git config --global user.name "GitHub Actions"
- run: yarn --frozen-lockfile
- run: yarn lint
- env:
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Push changed files
run: yarn dw-ci push-changed-files
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
if: github.ref == 'refs/heads/master'
name: Release
run: yarn semantic-release
test:
needs: cancel-existing
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
lfs: true
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: yarn --frozen-lockfile
- run: yarn test
- if: failure()
uses: actions/upload-artifact@v2
with:
path: "**/__image_snapshots__/__diff_output__"
- run: yarn check-unknown-files
- if: matrix.os == 'ubuntu-latest' && matrix.node == 12
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
strategy:
matrix:
exclude:
- node: 10
os: macos-latest
- node: 10
os: windows-latest
node:
- 10
- 12
os:
- macos-latest
- windows-latest
- ubuntu-latest
name: build
on:
push:
branches:
- "**"
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.DS_Store
/.env.json
/.eslintrc.json
/.nyc_output
/.test.env.json
/coverage
/dist
/node_modules
9 changes: 9 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Need to add :latest, otherwise old versions (e.g. of node) are installed
FROM gitpod/workspace-full:latest

RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
RUN sudo apt-get install git-lfs
RUN git lfs install

# Puppeteer dependencies
RUN sudo apt-get update && sudo apt-get install -y libgtk-3-0 libx11-xcb1 libnss3 libxss1 libasound2 libgbm1 libxshmfence1
11 changes: 11 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
image:
file: .gitpod.Dockerfile
tasks:
- before: sudo docker-up
name: Docker Deamon
- init: git lfs pull && echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN"
>>~/.npmrc && yarn --frozen-lockfile
vscode:
extensions:
- karlito40.fix-irregular-whitespace@0.0.3:8jjyZYuYF6yW6nwsAiulrg==
- adrianwilczynski.toggle-hidden@1.0.2:pj4yxebPvdfdMeVIjOEuRQ==
6 changes: 6 additions & 0 deletions .huskyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
},
"skipCI": false
}
15 changes: 15 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
[
"@semantic-release/git",
{
"message": "chore: ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
29 changes: 29 additions & 0 deletions .renovaterc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"extends": [
":semanticCommits"
],
"labels": [
"maintenance"
],
"semanticCommitScope": null,
"packageRules": [
{
"packagePatterns": [
"*"
],
"semanticCommitType": "chore"
},
{
"depTypeList": [
"dependencies",
"devDependencies",
"peerDependencies",
"optionalDependencies"
],
"semanticCommitType": "fix"
}
],
"lockFileMaintenance": {
"enabled": true
}
}
24 changes: 24 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"files.exclude": {
".babelrc.json": true,
".commitlintrc.json": true,
".cz.json": true,
".editorconfig": true,
".eslintrc.json": true,
".gitattributes": true,
".github": true,
".gitignore": true,
".gitpod.Dockerfile": true,
".gitpod.yml": true,
".huskyrc.json": true,
".nyc_output": true,
".releaserc.json": true,
".renovaterc.json": true,
"CHANGELOG.md": true,
"LICENSE.md": true,
"coverage": true,
"dist": true,
"node_modules": true,
"yarn.lock": true
}
}
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# License

Unless stated otherwise all works are:

Copyright &copy; Sebastian Landwehr <info@dword-design.de>

and licensed under:

[MIT License](https://opensource.org/licenses/MIT)

## MIT License

MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
102 changes: 102 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<!-- TITLE/ -->
# undefined
<!-- /TITLE -->

<!-- BADGES/ -->
<p>
<a href="https://npmjs.org/package/undefined">
<img
src="https://img.shields.io/npm/v/undefined.svg"
alt="npm version"
>
</a><img src="https://img.shields.io/badge/os-linux%20%7C%C2%A0macos%20%7C%C2%A0windows-blue" alt="Linux macOS Windows compatible"><a href="https://github.com/dword-design/nuxt-content-git-hooks/actions">
<img
src="https://github.com/dword-design/nuxt-content-git-hooks/workflows/build/badge.svg"
alt="Build status"
>
</a><a href="https://codecov.io/gh/dword-design/nuxt-content-git-hooks">
<img
src="https://codecov.io/gh/dword-design/nuxt-content-git-hooks/branch/master/graph/badge.svg"
alt="Coverage status"
>
</a><a href="https://david-dm.org/dword-design/nuxt-content-git-hooks">
<img src="https://img.shields.io/david/dword-design/nuxt-content-git-hooks" alt="Dependency status">
</a><img src="https://img.shields.io/badge/renovate-enabled-brightgreen" alt="Renovate enabled"><br/><a href="https://gitpod.io/#https://github.com/dword-design/nuxt-content-git-hooks">
<img src="https://gitpod.io/button/open-in-gitpod.svg" alt="Open in Gitpod">
</a><a href="https://www.buymeacoffee.com/dword">
<img
src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg"
alt="Buy Me a Coffee"
height="32"
>
</a><a href="https://paypal.me/SebastianLandwehr">
<img
src="https://dword-design.de/images/paypal.svg"
alt="PayPal"
height="32"
>
</a><a href="https://www.patreon.com/dworddesign">
<img
src="https://dword-design.de/images/patreon.svg"
alt="Patreon"
height="32"
>
</a>
</p>
<!-- /BADGES -->

<!-- DESCRIPTION/ -->

<!-- /DESCRIPTION -->

<!-- INSTALL/ -->
## Install

```bash
# npm
$ npm install undefined

# Yarn
$ yarn add undefined
```
<!-- /INSTALL -->

<!-- LICENSE/ -->
## Contributing

Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/dword-design/nuxt-content-git-hooks/issues) or [pull request](https://github.com/dword-design/nuxt-content-git-hooks/pulls)! ⚙️

## Support Me

Hey, I am Sebastian Landwehr, a freelance web developer, and I love developing web apps and open source packages. If you want to support me so that I can keep packages up to date and build more helpful tools, you can donate here:

<p>
<a href="https://www.buymeacoffee.com/dword">
<img
src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg"
alt="Buy Me a Coffee"
height="32"
>
</a>&nbsp;If you want to send me a one time donation. The coffee is pretty good 😊.<br/>
<a href="https://paypal.me/SebastianLandwehr">
<img
src="https://dword-design.de/images/paypal.svg"
alt="PayPal"
height="32"
>
</a>&nbsp;Also for one time donations if you like PayPal.<br/>
<a href="https://www.patreon.com/dworddesign">
<img
src="https://dword-design.de/images/patreon.svg"
alt="Patreon"
height="32"
>
</a>&nbsp;Here you can support me regularly, which is great so I can steadily work on projects.
</p>

Thanks a lot for your support! ❤️

## License

[MIT License](https://opensource.org/licenses/MIT) © [Sebastian Landwehr](https://dword-design.de)
<!-- /LICENSE -->
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": "1.0.0",
"description": "",
"repository": "dword-design/nuxt-content-git-hooks",
"funding": "https://www.buymeacoffee.com/dword",
"license": "MIT",
"author": "Sebastian Landwehr <info@dword-design.de>",
"main": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"check-unknown-files": "base check-unknown-files",
"commit": "base commit",
"dev": "base dev",
"lint": "base lint",
"prepare": "base prepare",
"prepublishOnly": "base prepublishOnly",
"test": "base test"
},
"devDependencies": {
"@dword-design/base": "^7.9.0"
},
"publishConfig": {
"access": "public"
}
}
Loading

0 comments on commit 9bbe03d

Please sign in to comment.