Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 2.1.0 #251

Merged
merged 51 commits into from
May 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
ccc934e
Merge branch 'main' into develop
sebbo2002 Apr 29, 2021
9c88b51
ci: Fix back merge from main to develop
sebbo2002 Apr 29, 2021
0968068
docs: Fix require() examples in documentation
sebbo2002 Apr 29, 2021
17198d6
ci: Fix commit message filter for release workflow
sebbo2002 Apr 29, 2021
89823b0
chore(release): :bookmark: 2.0.1-develop.1 [skip ci]
semantic-release-bot Apr 29, 2021
8d8fd17
docs(Readme): Remove section about upcoming 2.0.0
sebbo2002 Apr 29, 2021
19a567e
Merge branch 'develop' of github.com:sebbo2002/ical-generator into de…
sebbo2002 Apr 29, 2021
9de0096
chore(release): :bookmark: 2.0.1-develop.2 [skip ci]
semantic-release-bot Apr 29, 2021
ee2cb70
docs(Readme): Update section about webpack configuration
sebbo2002 Apr 30, 2021
d5215b1
Merge branch 'develop' of github.com:sebbo2002/ical-generator into de…
sebbo2002 Apr 30, 2021
64a0591
chore(release): :bookmark: 2.0.1-develop.3 [skip ci]
semantic-release-bot Apr 30, 2021
6142e11
feat: Export `formatDate` and some other tool functions
sebbo2002 Apr 30, 2021
fba2740
Merge branch 'develop' of github.com:sebbo2002/ical-generator into de…
sebbo2002 Apr 30, 2021
02e9a57
chore(release): :bookmark: 2.1.0-develop.1 [skip ci]
semantic-release-bot Apr 30, 2021
dd165bd
docs(Readme): Add note in FAQ about default export in v2
sebbo2002 May 1, 2021
dc8f729
chore(release): :bookmark: 2.1.0-develop.2 [skip ci]
semantic-release-bot May 1, 2021
dc8fa4a
feat: first commit
sebbo2002 May 8, 2021
a1b1976
Update all development npm dependencies (2021-05-10)
depfu[bot] May 10, 2021
e814127
Merge pull request #249 from sebbo2002/depfu/batch_dev/npm/2021-05-10
sebbo2002 May 10, 2021
405b34b
Merge branch 'typescript' of github.com:sebbo2002/js-template into fe…
sebbo2002 May 10, 2021
bfb0ec3
Merge pull request #252 from sebbo2002/feature/use-template
sebbo2002 May 10, 2021
a822566
ci: Remove docker registry login
sebbo2002 May 10, 2021
3c74a0f
Merge branch 'feature/use-template' into develop
sebbo2002 May 10, 2021
86bcaf8
Merge branch 'develop' of github.com:sebbo2002/ical-generator into de…
sebbo2002 May 10, 2021
0f9cbcd
ci: Fix release by removing docker config
sebbo2002 May 10, 2021
bf71cd6
chore(release): :bookmark: 2.1.0-develop.3 [skip ci]
semantic-release-bot May 10, 2021
95d43e8
ci: Upload npm package only to npm
sebbo2002 May 10, 2021
b7b6e5b
Merge branch 'develop' of github.com:sebbo2002/ical-generator into de…
sebbo2002 May 10, 2021
168a63e
require('ical-generator') without '.default'
fratzinger May 11, 2021
5230bb3
lint: intendation
fratzinger May 11, 2021
7ebe4ae
remove faq `require().default`
fratzinger May 11, 2021
64e0c33
chore: Add istanbul ignore for module.exports reassignment
sebbo2002 May 12, 2021
31833a6
feat: Allow use of `require('ical-generator')` without `.default`
sebbo2002 May 12, 2021
076aa5b
chore(release): :bookmark: 2.1.0-develop.4 [skip ci]
semantic-release-bot May 12, 2021
06c49c1
docs: Update docs (related to removal of `.default`)
sebbo2002 May 12, 2021
50d4988
chore(release): :bookmark: 2.1.0-develop.5 [skip ci]
semantic-release-bot May 12, 2021
4204708
chore(Repo Template): first commit
sebbo2002 May 8, 2021
f6a208c
chore(Repo Template): Fix license check issue
sebbo2002 May 13, 2021
c8509de
chore(Repo Template): Add branch setup note in todo list
sebbo2002 May 13, 2021
88a3ae3
chore(Repo Template): Fix dependcabot config
sebbo2002 May 13, 2021
e05fbe7
build: bump node from `ed51af8` to `3689ad4`
dependabot[bot] May 13, 2021
c2056ed
ci(deps): bump actions/stale from 1.1.0 to 3.0.18
dependabot[bot] May 13, 2021
673889a
chore(Repo Template): Disable release to allow GitHub Actions in repo
sebbo2002 May 13, 2021
8dcef5c
build(deps): Update dependencies
sebbo2002 May 13, 2021
bfbaaa2
Merge pull request #1 from sebbo2002/dependabot/docker/node-3689ad4
sebbo2002 May 13, 2021
f6249a8
Merge pull request #2 from sebbo2002/dependabot/github_actions/action…
sebbo2002 May 13, 2021
df75200
chore(Repo Template): Disable ReleaseBot as well
sebbo2002 May 13, 2021
0f6e0a3
Merge branch 'typescript' of github.com:sebbo2002/js-template into ty…
sebbo2002 May 13, 2021
4f003e6
Merge branch 'typescript' of github.com:sebbo2002/js-template into de…
sebbo2002 May 13, 2021
0027954
build(deps): Update dependencies
sebbo2002 May 13, 2021
7e99182
chore(release): :bookmark: 2.1.0-develop.6 [skip ci]
semantic-release-bot May 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"env": {
"node": true,
"es6": true,
"mocha": true
},
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"semi": "error",
"quotes": [
"error",
"single"
],
"indent": [
"error",
4
]
},
"overrides": [
{
"files": [
"test/**/*.ts"
],
"rules": {
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/ban-ts-comment": "off"
}
}
]
}
29 changes: 29 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
assignees:
- sebbo2002
commit-message:
prefix: "ci(deps): Update Actions: "
include: scope
schedule:
interval: weekly
- package-ecosystem: npm
directory: /
assignees:
- sebbo2002
commit-message:
prefix: "build(deps): "
prefix-development: "chore(deps): "
include: scope
schedule:
interval: daily
- package-ecosystem: docker
directory: /
assignees:
- sebbo2002
commit-message:
prefix: "build(deps): Update docker base image"
schedule:
interval: weekly
2 changes: 1 addition & 1 deletion build.sh → .github/workflows/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ echo "# npm version = $(npm -v)"
echo "########################"

# Typescript Build in ./dist
npx tsc
npm run build

if [ "$BRANCH" != "develop" ] && [ "$BRANCH" != "main" ] && [ "$BRANCH" != "" ]; then
echo "Skip documentation as branch is not develop and not main (is: ${BRANCH}).";
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release-bot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: ReleaseBot

on:
workflow_dispatch:
push:
Expand All @@ -18,6 +17,13 @@ jobs:
with:
repository: sebbo2002/release-bot
path: ./.actions/release-bot
- name: 🔧 Setup npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-releasebot-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-releasebot-
- name: 📦 Install Dependencies
run: npm ci
working-directory: ./.actions/release-bot
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/release.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/stale-issues.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Manage stale issues and PRs

name: Cleanup issues and PRs
on:
schedule:
- cron: "0 10 * * *"
- cron: '0 10 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: 🧹 Cleanup issues & pull requests
uses: actions/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: |
Expand Down
125 changes: 125 additions & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: Test & Release
on:
push:
branches-ignore:
- gh-pages
pull_request: null

jobs:
tests:
name: Unit Tests
runs-on: ubuntu-latest
if: contains(toJson(github.event.commits.*.message), '[skip ci]') == false || github.ref == 'refs/heads/main'
strategy:
matrix:
node: [10.x, 12.x, 14.x, 15.x]
steps:
- name: ☁️ Checkout Project
uses: actions/checkout@v2
- name: 🔧 Setup node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: 🔧 Setup npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: 📦 Install dependencies
run: npm ci
- name: ⏳ Run tests
run: npm run test

coverage:
name: Code Coverage / Lint
runs-on: ubuntu-latest
if: contains(toJson(github.event.commits.*.message), '[skip ci]') == false || github.ref == 'refs/heads/main'
steps:
- name: ☁️ Checkout Project
uses: actions/checkout@v2
- name: 🔧 Setup node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: 🔧 Setup npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: 📦 Install dependencies
run: npm ci
- name: 🔍 Run linter
run: npm run lint
- name: ⚙️ Build project
run: npm run build-all

license-checker:
name: License Checker
runs-on: ubuntu-latest
if: contains(toJson(github.event.commits.*.message), '[skip ci]') == false && github.ref != 'refs/heads/main'
steps:
- name: ☁️ Checkout Project
uses: actions/checkout@v2
- name: 🔧 Setup node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: 🔧 Setup npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: 📦 Install dependencies
run: npm ci
- name: 🕵️‍♀️ Run license checker
run: npm run license-check

release:
name: Release
runs-on: ubuntu-latest
needs:
- coverage
- tests
- license-checker
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
steps:
- name: ☁️ Checkout Project
uses: actions/checkout@v2
- name: 🔧 Setup node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: 🔧 Setup npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: 📦 Install dependencies
run: npm ci
- name: 📂 Create docs folder
run: mkdir ./docs
- name: 🪄 Run semantic-release
run: BRANCH=${GITHUB_REF#refs/heads/} npx semantic-release
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_OWNER: ${{ github.repository_owner }}
PUBLIC_NPM_CONFIG_REGISTRY: https://registry.npmjs.org
NPM_USERNAME: ${{ github.repository_owner }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: 🔃 Merge main back into develop
if: ${{ github.ref == 'refs/heads/main' }}
uses: everlytic/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_ref: 'main'
target_branch: 'develop'
commit_message_template: 'Merge branch {source_ref} into {target_branch} [skip ci]'
43 changes: 0 additions & 43 deletions .github/workflows/tests.yml

This file was deleted.

19 changes: 18 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
/.nyc_output
/.idea
/dist
/docs
/node_modules


### WebStorm ###
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
.idea/**/contentModel.xml
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
.idea/httpRequests
*.iws
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading