Skip to content

Commit

Permalink
Merge pull request #4 from rockchalkwushock/staging
Browse files Browse the repository at this point in the history
chore(release): v1.0.0
  • Loading branch information
rockchalkwushock committed Apr 23, 2021
2 parents 52c134c + 6ddc93c commit 89410cb
Show file tree
Hide file tree
Showing 22 changed files with 7,530 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"contributors": [
{
"login": "rockchalkwushock",
"name": "Cody Brunner",
"avatar_url": "https://avatars.githubusercontent.com/u/19720404?v=4",
"profile": "https://codybrunner.dev",
"contributions": [
"code",
"doc",
"test"
]
}
],
"contributorsPerLine": 7,
"projectName": "rehype-code-titles",
"projectOwner": "rockchalkwushock",
"repoType": "github",
"repoHost": "https://github.com",
"skipCi": true
}
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: '/'
open-pull-requests-limit: 10
schedule:
day: 'sunday'
interval: 'weekly'
time: '22:00'
timezone: 'America/Bogota'
target-branch: 'staging'

- package-ecosystem: 'npm'
directory: '/'
open-pull-requests-limit: 10
schedule:
day: 'sunday'
interval: 'weekly'
time: '22:00'
timezone: 'America/Bogota'
target-branch: 'staging'
57 changes: 57 additions & 0 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Feature

on:
pull_request:
branches: [staging]

jobs:
review_code:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14.x']

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}

- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Get Yarn Cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache Dependencies
uses: actions/cache@v2.1.5
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install Dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
env:
CI: true

- name: Linting
run: yarn run eslint

- name: Type checking
run: yarn run tsc

- name: Tests
run: yarn run test:ci

- name: Build
run: yarn run build
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Release

on:
push:
branches: [production]

jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14.x']

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}

- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Get Yarn Cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache Dependencies
uses: actions/cache@v2.1.5
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install Dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile

- name: Build
run: yarn build

- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
access: public
token: ${{ secrets.NPM_TOKEN }}
57 changes: 57 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Staging

on:
pull_request:
branches: [production]

jobs:
review_code:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14.x']

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}

- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Get Yarn Cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Cache Dependencies
uses: actions/cache@v2.1.5
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install Dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
env:
CI: true

- name: Linting
run: yarn run eslint

- name: Type checking
run: yarn run tsc

- name: Tests
run: yarn run test:ci

- name: Build
run: yarn run build
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,7 @@ dist

# TernJS port file
.tern-port

# Misc
.DS_Store
.vscode
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint -e $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14.15.4
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## 1.0.0 (2021-04-23)

### Features 🎉

- **root:** sets up dev configuration, ci/cd pipelines, and tools ([ddb843a](https://github.com/rockchalkwushock/rehype-code-titles/commit/ddb843a090b02056bae89314268762372045ca34))
- **src:** writes plugin ([650b7a8](https://github.com/rockchalkwushock/rehype-code-titles/commit/650b7a829ee1651ca42228b750092aa60ee9093e))

### Tests 🧪

- **src:** adds tests for plugin, updates jest.config.js ([4cd581e](https://github.com/rockchalkwushock/rehype-code-titles/commit/4cd581e57b86ab3d2da747cb72f7ec8d6043ae6b))
42 changes: 42 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

Using welcoming and inclusive language
Being respectful of differing viewpoints and experiences
Gracefully accepting constructive criticism
Focusing on what is best for the community
Showing empathy towards other community members
Examples of unacceptable behavior by participants include:

The use of sexualized language or imagery and unwelcome sexual attention or advances
Trolling, insulting/derogatory comments, and personal or political attacks
Public or private harassment
Publishing others' private information, such as a physical or electronic address, without explicit permission
Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at <me@codybrunner.dev>. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

Attribution

This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at http://contributor-covenant.org/version/1/4.

0 comments on commit 89410cb

Please sign in to comment.