Skip to content
This repository was archived by the owner on Feb 18, 2021. It is now read-only.

Commit 0925728

Browse files
authored
Merge pull request #1 from jsexton-portfolio/development
Release (v0.1.1)
2 parents 8e9b5ab + e0b78a5 commit 0925728

22 files changed

+6153
-0
lines changed

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
parser: "@typescript-eslint/parser",
3+
parserOptions: {
4+
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
5+
sourceType: "module", // Allows for the use of imports
6+
},
7+
extends: [
8+
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
9+
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
10+
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
11+
],
12+
rules: {
13+
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
14+
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
15+
},
16+
};

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: Publish Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 12
18+
- run: npm ci
19+
- run: npm test
20+
21+
publish-npm:
22+
needs: build
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-node@v1
27+
with:
28+
node-version: 12
29+
registry-url: https://registry.npmjs.org/
30+
scope: "@jsextonn"
31+
- run: npm ci
32+
- run: npm publish --access public
33+
env:
34+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Test
5+
6+
on:
7+
push:
8+
branches: [master, development]
9+
pull_request:
10+
branches: [master, development]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [10.x, 12.x]
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- run: npm ci
27+
- run: npm run build --if-present
28+
- run: npm test
29+
env:
30+
CI: true

.gitignore

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
# Created by https://www.gitignore.io/api/node,macos,visualstudiocode
2+
# Edit at https://www.gitignore.io/?templates=node,macos,visualstudiocode
3+
4+
### macOS ###
5+
# General
6+
.DS_Store
7+
.AppleDouble
8+
.LSOverride
9+
10+
# Icon must end with two \r
11+
Icon
12+
13+
# Thumbnails
14+
._*
15+
16+
# Files that might appear in the root of a volume
17+
.DocumentRevisions-V100
18+
.fseventsd
19+
.Spotlight-V100
20+
.TemporaryItems
21+
.Trashes
22+
.VolumeIcon.icns
23+
.com.apple.timemachine.donotpresent
24+
25+
# Directories potentially created on remote AFP share
26+
.AppleDB
27+
.AppleDesktop
28+
Network Trash Folder
29+
Temporary Items
30+
.apdisk
31+
32+
### Node ###
33+
# Logs
34+
logs
35+
*.log
36+
npm-debug.log*
37+
yarn-debug.log*
38+
yarn-error.log*
39+
lerna-debug.log*
40+
41+
pids
42+
*.pid
43+
*.seed
44+
*.pid.lock
45+
46+
# Directory for instrumented libs generated by jscoverage/JSCover
47+
lib-cov
48+
49+
# Coverage directory used by tools like istanbul
50+
coverage
51+
*.lcov
52+
53+
# nyc test coverage
54+
.nyc_output
55+
56+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
57+
.grunt
58+
59+
# Bower dependency directory (https://bower.io/)
60+
bower_components
61+
62+
# node-waf configuration
63+
.lock-wscript
64+
65+
# Compiled binary addons (https://nodejs.org/api/addons.html)
66+
build/Release
67+
68+
# Dependency directories
69+
node_modules/
70+
jspm_packages/
71+
72+
# TypeScript v1 declaration files
73+
typings/
74+
75+
# TypeScript cache
76+
*.tsbuildinfo
77+
78+
# Optional npm cache directory
79+
.npm
80+
81+
# Optional eslint cache
82+
.eslintcache
83+
84+
# Optional REPL history
85+
.node_repl_history
86+
87+
# Output of 'npm pack'
88+
*.tgz
89+
90+
# Yarn Integrity file
91+
.yarn-integrity
92+
93+
# dotenv environment variables file
94+
.env
95+
.env.test
96+
97+
# parcel-bundler cache (https://parceljs.org/)
98+
.cache
99+
100+
# next.js build output
101+
.next
102+
103+
# nuxt.js build output
104+
.nuxt
105+
106+
# rollup.js default build output
107+
dist/
108+
109+
# Uncomment the public line if your project uses Gatsby
110+
# https://nextjs.org/blog/next-9-1#public-directory-support
111+
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
112+
# public
113+
114+
# Storybook build outputs
115+
.out
116+
.storybook-out
117+
118+
# vuepress build output
119+
.vuepress/dist
120+
121+
# Serverless directories
122+
.serverless/
123+
124+
# FuseBox cache
125+
.fusebox/
126+
127+
# DynamoDB Local files
128+
.dynamodb/
129+
130+
# Temporary folders
131+
tmp/
132+
temp/
133+
134+
### VisualStudioCode ###
135+
.vscode/*
136+
!.vscode/settings.json
137+
!.vscode/tasks.json
138+
!.vscode/launch.json
139+
!.vscode/extensions.json
140+
141+
### VisualStudioCode Patch ###
142+
# Ignore all local history of files
143+
.history
144+
145+
# End of https://www.gitignore.io/api/node,macos,visualstudiocode

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false
4+
}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 0.1.0
2+
3+
- Added API for interfacing with contact message service.

jest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
transform: { "^.+\\.ts?$": "ts-jest" },
3+
testEnvironment: "node",
4+
testRegex: "/test/.*\\.(test|spec)?\\.(ts|tsx)$",
5+
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"]
6+
};

0 commit comments

Comments
 (0)