Merge pull request #103 from kremalicious/feature/ci-switch

switch CI
This commit is contained in:
Matthias Kretschmann 2021-02-01 00:09:58 +01:00 committed by GitHub
commit fe13c43f40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 892 additions and 1688 deletions

View File

@ -1,4 +1,5 @@
{
"parser": "@babel/eslint-parser",
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"plugins": ["prettier"],
"parserOptions": {

View File

@ -1,8 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: '04:00'
open-pull-requests-limit: 10
- package-ecosystem: npm
directory: '/'
schedule:
interval: weekly
time: '04:00'

29
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: 'CI'
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: ['14']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm test
- run: npm run build

View File

@ -1,5 +1,7 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "none"
"trailingComma": "none",
"tabWidth": 2,
"endOfLine": "auto"
}

View File

@ -1,5 +0,0 @@
language: node_js
node_js: node
notifications:
email: false

View File

@ -3,9 +3,8 @@
# gatsby-redirect-from
[![npm package](https://img.shields.io/npm/v/gatsby-redirect-from.svg)](https://www.npmjs.com/package/gatsby-redirect-from)
[![Build Status](https://travis-ci.com/kremalicious/gatsby-redirect-from.svg?branch=main)](https://travis-ci.com/kremalicious/gatsby-redirect-from)
[![Build Status](https://github.com/kremalicious/gatsby-redirect-from/workflows/CI/badge.svg)](https://github.com/kremalicious/gatsby-redirect-from/actions)
[![Maintainability](https://api.codeclimate.com/v1/badges/9643b2a038a7d338a73a/maintainability)](https://codeclimate.com/github/kremalicious/gatsby-redirect-from/maintainability)
[![Dependabot enabled](https://badgen.net/dependabot/thepracticaldev/dev.to?icon=dependabot)](https://dependabot.com/)
> 🎯 Set redirect urls in your YAML frontmatter within your [Gatsby](https://www.gatsbyjs.org) site's Markdown files. Mimics the behavior of [jekyll-redirect-from](https://github.com/jekyll/jekyll-redirect-from).
> https://kremalicious.com/gatsby-redirect-from/

2498
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,37 +7,38 @@
"license": "MIT",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir . --ignore __tests__",
"build": "cross-env NODE_ENV=production babel src --out-dir . --ignore __tests__",
"start": "babel -w src --out-dir . --ignore __tests__",
"test": "eslint ./src/**/*.js",
"test": "eslint src/**/*.js",
"format": "prettier --write 'src/**/*.{js,jsx}'",
"release": "release-it --non-interactive",
"changelog": "auto-changelog -p",
"prepublishOnly": "cross-env NODE_ENV=production npm run build"
"prepublishOnly": "npm run build"
},
"browserslist": [
"maintained node versions"
],
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.10.4",
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"auto-changelog": "^2.1.0",
"@babel/cli": "^7.12.10",
"@babel/core": "^7.12.10",
"@babel/eslint-parser": "^7.12.1",
"@babel/preset-env": "^7.12.11",
"auto-changelog": "^2.2.1",
"chalk": "^4.1.0",
"cross-env": "^7.0.2",
"eslint": "^7.3.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"prettier": "^2.0.5",
"release-it": "^14.0.1"
"cross-env": "^7.0.3",
"eslint": "^7.19.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.1",
"prettier": "^2.2.1",
"release-it": "^14.2.2"
},
"peerDependencies": {
"gatsby": ">=2",
"gatsby-plugin-meta-redirect": ">=1.1.0"
},
"engines": {
"node": ">=8.0.0"
"node": ">=12"
},
"repository": "github:kremalicious/gatsby-redirect-from",
"bugs": {