Skip to content

Commit

Permalink
Merge pull request #340 from spencermountain/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
spencermountain committed Mar 11, 2020
2 parents 43335fb + ace5c14 commit 75c90fc
Show file tree
Hide file tree
Showing 310 changed files with 36,303 additions and 23,954 deletions.
10 changes: 3 additions & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": { },
"ecmaFeatures": {}
},
"rules": {
"no-cond-assign": 2,
Expand All @@ -21,11 +21,7 @@
"no-redeclare": 2,
"radix": 1,
"indent": 0,
"quotes": [
0,
"single",
"avoid-escape"
],
"quotes": [0, "single", "avoid-escape"],
"no-shadow": 2,
"no-unused-vars": 1,
"no-lonely-if": 1,
Expand All @@ -50,6 +46,6 @@
"clearInterval": true,
"clearTimeout": true,
"__dirname": true,
"__pathname": true,
"__pathname": true
}
}
39 changes: 39 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and test

on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 13.x]

steps:
- uses: actions/checkout@v2

- name: use node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: cache dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-${{ matrix.node-version }}-
${{ runner.os }}-npm-
- name: npm install, build, and test
run: |
npm ci
npm i --no-save eslint
npm run lint
npm run build
npm run testb
npm run test:fetch
env:
CI: true
56 changes: 56 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Release

on:
release:
types: [created]

jobs:
release:
runs-on: ubuntu-latest

env:
CI: true
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: 10.x

- name: cache dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-npm-10.x-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-10.x-
${{ runner.os }}-npm-
- name: install
run: |
npm ci
npm i --no-save eslint
npm run plugins:ci
- name: static checks
run: |
npm run lint
- name: build
run: |
npm run build
- name: test
run: |
npm run testb
npm run test:fetch
# And finally... publish it! Note that we create the .npmrc file
# "just in time" so that `npm publish` can get the auth token from the
# environment
- name: publish
run: |
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ coverage
coverage.lcov
codecov.yml
npm-debug.log
package-lock.json
.nyc_output
*.DS_Store
*.tsv
8 changes: 4 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
tests/
demo/
plugins/
tests/
scripts/
examples/
.babelrc
.esformatter
.eslintrc
.gitignore
Icon
scratch.js
*.tsv
changelog.md
contributing.md
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2019 Spencer Kelly
Copyright 2020 Spencer Kelly

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:

Expand Down

0 comments on commit 75c90fc

Please sign in to comment.