Skip to content

Commit

Permalink
Merge pull request #1 from miyajan/first-release
Browse files Browse the repository at this point in the history
First Release
  • Loading branch information
miyajan authored Jun 29, 2020
2 parents a255bc4 + 75dadcd commit 70dcb83
Show file tree
Hide file tree
Showing 32 changed files with 13,327 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: "@cybozu/eslint-config/presets/node-typescript-prettier",
};
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: lint

on: [push]

jobs:
build:
name: Node.js ubuntu-latest 12.x
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
- name: Setup node
uses: actions/setup-node@v2.0.0
with:
node-version: 12.x
- run: |
npm ci
npm run lint
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
- name: Setup node
uses: actions/setup-node@v2.0.0
with:
node-version: 12.x
registry-url: https://registry.npmjs.org
- run: |
npm ci
npm run prerelease
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: test

on: [push]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [10.x, 12.x]
name: Node.js ${{ matrix.os }} ${{ matrix.node-version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.1
- name: Setup node
uses: actions/setup-node@v2.0.0
with:
node-version: ${{ matrix.node-version }}
- run: |
npm ci
npm run test:ci
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
lib/
esm/
umd/
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# garoon-rest

Rest API Client for Garoon

WIP.

## Disclaimer

This OSS is my own personal work and does not have any relationship with Cybozu Inc. or any other organization which I belong to.
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
["@babel/preset-env", { targets: { node: "current" } }],
"@babel/preset-typescript",
],
};
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
clearMocks: true,
rootDir: "src",
setupFilesAfterEnv: ["<rootDir>/__tests__/setup.ts"],
testPathIgnorePatterns: ["node_modules", "<rootDir>/__tests__/setup.ts"],
testEnvironment: "node",
};
Loading

0 comments on commit 70dcb83

Please sign in to comment.