Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
code-xhyun committed Apr 9, 2024
1 parent b44c03b commit 2bc33f6
Show file tree
Hide file tree
Showing 68 changed files with 18,022 additions and 18 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[*]
charset=utf-8
end_of_line=lf
trim_trailing_whitespace=true
insert_final_newline=true
indent_style=space
indent_size=2
19 changes: 19 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
root: true,
extends: ['@hokify'],
parserOptions: {
project: './tsconfig.eslint.json'
},
overrides: [
{
files: ['*.test.ts'],
env: {
mocha: true
},
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
'import/no-relative-packages': 'off'
}
}
]
};
72 changes: 72 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '25 1 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Test
on: [push, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-agenda-${{ hashFiles('**/package-lock.lock') }}
restore-keys: |
${{ runner.os }}-build-agenda-
- name: Update npm
run: npm -g install npm@latest

- name: Install Packages
run: npm install

- name: Docs
run: npm run docs
53 changes: 53 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Run Test
on: [push, pull_request, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18]
mongodb-version: [3.6, 4.4, 5.0, 6.0]
steps:
- name: Git checkout
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-agenda-${{ hashFiles('**/package-lock.lock') }}
restore-keys: |
${{ runner.os }}-build-agenda-
- name: Update npm
run: npm -g install npm@latest

- name: Install Packages
run: npm install

- name: Run Lint
run: npm run lint

- name: Build
run: npm run build
env:
CI: true

- name: Test
run: npm run test
env:
CI: true
38 changes: 22 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
node_modules
coverage.html
.idea
.DS_Store
docs/agenda/*
!docs/agenda/1.0.3/
!docs/agenda/2.0.0/
!docs/agenda/2.2.0/
!docs/agenda/3.1.0/
!docs/agenda/4.0.1/
!docs/agenda/4.2.0/
dist
.ultra.cache.json
.vscode

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down Expand Up @@ -54,9 +68,6 @@ web_modules/
# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
Expand All @@ -72,12 +83,9 @@ web_modules/
# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
# dotenv environment variables file
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand All @@ -100,13 +108,6 @@ dist
# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

Expand All @@ -128,3 +129,8 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
!docs/agenda/4.x/
!docs/agenda/6.x/
dist
.nyc_output
coverage
13 changes: 13 additions & 0 deletions .mocharc.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"diff": true,
"spec": "./test/*.test.ts",
"require": ["ts-node/register", "source-map-support/register"],
"extension": ["js", "ts"],
"package": "./package.json",
"recursive": true,
"reporter": "spec",
"slow": 75,
"timeout": 25000,
"ui": "bdd",
"exit": true
}
12 changes: 12 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.editorconfig
.idea
.jsdoc.json
.travis.yml
agenda.svg
docs
.nyc_output
coverage
History.md
Makefile
renovate.json
test
19 changes: 19 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"extends": "@istanbuljs/nyc-config-typescript",
"all": false,
"include": [
"src"
],
"exclude": [
".eslintrc.js",
"index.js",
"docs",
"coverage",
"test"
],
"reporter": [
"text",
"lcov",
"text-summary"
]
}
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 100,
"singleQuote": true,
"useTabs": true,
"trailingComma": "none",
"arrowParens": "avoid"
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
0.1.0 / 2024-04-09
==================

* Initial
Loading

0 comments on commit 2bc33f6

Please sign in to comment.