Skip to content

Commit

Permalink
build: config lint, ci, and cd
Browse files Browse the repository at this point in the history
  • Loading branch information
keplersj committed Aug 15, 2019
1 parent 1ca57d8 commit 5f860c1
Show file tree
Hide file tree
Showing 7 changed files with 12,540 additions and 48 deletions.
13 changes: 13 additions & 0 deletions .dependabot/config.yml
@@ -0,0 +1,13 @@
version: 1
update_configs:
- package_manager: "javascript"
directory: "/"
update_schedule: "live"
commit_message:
prefix: "fix"
prefix_development: "chore"
include_scope: true
automerged_updates:
- match:
dependency_type: "all"
update_type: "all"
20 changes: 20 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,20 @@
module.exports = {
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier",
"prettier/@typescript-eslint",
"plugin:react/recommended",
"prettier/react"
],
settings: {
react: {
version: "detect" // React version. "detect" automatically picks the version you have installed.
}
},
env: {
node: true
}
};
17 changes: 17 additions & 0 deletions .travis.yml
@@ -0,0 +1,17 @@
language: node_js

node_js:
- "node"
- "lts/*"

jobs:
include:
# Define the release stage that runs semantic-release
- stage: release
node_js: lts/*
script: skip
deploy:
provider: script
skip_cleanup: true
script:
- npm run release
4 changes: 2 additions & 2 deletions README.md
@@ -1,7 +1,7 @@
# jest-serializer-json-ld-script

[![Build Status](https://travis-ci.org/keplersj/jest-serializer-json-ld-script.svg?branch=master)](https://travis-ci.org/keplersj/jest-preset-gatsby)
[![npm version](https://badge.fury.io/js/jest-serializer-json-ld-script.svg)](https://badge.fury.io/js/jest-preset-gatsby)
[![Build Status](https://travis-ci.org/keplersj/jest-serializer-json-ld-script.svg?branch=master)](https://travis-ci.org/keplersj/jest-serializer-json-ld-script)
[![npm version](https://badge.fury.io/js/jest-serializer-json-ld-script.svg)](https://badge.fury.io/js/jest-serializer-json-ld-script)

Jest Snapshot serializer to better visualize React `<script>` elements containing LD+JSON data.

Expand Down
18 changes: 18 additions & 0 deletions jest.config.js
@@ -0,0 +1,18 @@
module.exports = {
projects: [
{
runner: "prettier",
displayName: "lint:prettier",
moduleFileExtensions: ["js", "tsx", "json", "md"],
testMatch: ["**/*.js", "**/*.tsx", "**/*.json", "**/*.md"],
testPathIgnorePatterns: ["/node_modules/", "/dist/"]
},
{
runner: "eslint",
displayName: "lint:eslint",
moduleFileExtensions: ["js", "tsx"],
testMatch: ["**/*.js", "**/*.tsx"],
testPathIgnorePatterns: ["/node_modules/", "/dist/"]
}
]
};

0 comments on commit 5f860c1

Please sign in to comment.