Skip to content

Commit 42a5e33

Browse files
committed
Initial source
1 parent 81b7776 commit 42a5e33

File tree

16 files changed

+14359
-1
lines changed

16 files changed

+14359
-1
lines changed

.eslintrc.js

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

.github/workflows/publish.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Node.js Package
2+
on:
3+
push:
4+
# Sequence of patterns matched against refs/tags
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+'
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
# Setup .npmrc file to publish to npm
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: '16.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
- run: npm install
18+
- run: npm run compile
19+
- run: cd build && npm publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
23+
- run: npm run docs
24+
- name: Deploy docs
25+
uses: JamesIves/github-pages-deploy-action@4.1.5
26+
with:
27+
branch: gh-pages
28+
folder: docs

.github/workflows/test.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Run linting and tests"
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
container: ubuntu:focal
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Use Node.js 16.x
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: 16.x
16+
- run: npm i -g npm@9
17+
- run: npm ci
18+
- run: npm run lint-check
19+
- run: npm run -- clean-handler
20+
- run: npm run compile
21+
- run: npm run -- docs --treatWarningsAsErrors

.gitignore

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# Typescript things
2+
*.d.ts
3+
build/
4+
*.js
5+
!jest.config.js
6+
!.prettierrc.js
7+
!.eslintrc.js
8+
9+
# Docs
10+
docs/
11+
12+
# Logs
13+
logs
14+
*.log
15+
npm-debug.log*
16+
yarn-debug.log*
17+
yarn-error.log*
18+
lerna-debug.log*
19+
20+
# Diagnostic reports (https://nodejs.org/api/report.html)
21+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
22+
23+
# Runtime data
24+
pids
25+
*.pid
26+
*.seed
27+
*.pid.lock
28+
29+
# Directory for instrumented libs generated by jscoverage/JSCover
30+
lib-cov
31+
32+
# Coverage directory used by tools like istanbul
33+
coverage
34+
*.lcov
35+
36+
# nyc test coverage
37+
.nyc_output
38+
39+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
40+
.grunt
41+
42+
# Bower dependency directory (https://bower.io/)
43+
bower_components
44+
45+
# node-waf configuration
46+
.lock-wscript
47+
48+
# Compiled binary addons (https://nodejs.org/api/addons.html)
49+
build/Release
50+
51+
# Dependency directories
52+
node_modules/
53+
jspm_packages/
54+
55+
# TypeScript v1 declaration files
56+
typings/
57+
58+
# TypeScript cache
59+
*.tsbuildinfo
60+
61+
# Optional npm cache directory
62+
.npm
63+
64+
# Optional eslint cache
65+
.eslintcache
66+
67+
# Microbundle cache
68+
.rpt2_cache/
69+
.rts2_cache_cjs/
70+
.rts2_cache_es/
71+
.rts2_cache_umd/
72+
73+
# Optional REPL history
74+
.node_repl_history
75+
76+
# Output of 'npm pack'
77+
*.tgz
78+
79+
# Yarn Integrity file
80+
.yarn-integrity
81+
82+
# dotenv environment variables file
83+
.env
84+
.env.test
85+
86+
# parcel-bundler cache (https://parceljs.org/)
87+
.cache
88+
89+
# Next.js build output
90+
.next
91+
92+
# Nuxt.js build / generate output
93+
.nuxt
94+
dist
95+
96+
# Gatsby files
97+
.cache/
98+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
99+
# https://nextjs.org/blog/next-9-1#public-directory-support
100+
# public
101+
102+
# vuepress build output
103+
.vuepress/dist
104+
105+
# Serverless directories
106+
.serverless/
107+
108+
# FuseBox cache
109+
.fusebox/
110+
111+
# DynamoDB Local files
112+
.dynamodb/
113+
114+
# TernJS port file
115+
.tern-port

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
registry=https://registry.npmjs.org/
2+
tag-version-prefix=""

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16

.prettierrc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
semi: true,
3+
trailingComma: 'all',
4+
singleQuote: true,
5+
printWidth: 200,
6+
tabWidth: 2,
7+
overrides: [
8+
{
9+
files: ['*.js', '*.ts'],
10+
options: {
11+
tabWidth: 4,
12+
},
13+
},
14+
],
15+
};

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# mysql-user-and-database-cdk
2-
For creating MySQL users and databases with CDK
2+
3+
[![docs](https://img.shields.io/badge/docs-!-brightgreen)](https://isotoma.github.io/mysql-user-and-database-cdk/) [![npm](https://img.shields.io/npm/v/mysql-user-and-database-cdk)](https://www.npmjs.com/package/mysql-user-and-database-cdk) [![NPM](https://img.shields.io/npm/l/mysql-user-and-database-cdk)](./LICENSE)
4+
5+
## Getting started
6+
7+
TODO

0 commit comments

Comments
 (0)