Skip to content

Commit

Permalink
Init.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennykorsukewitz committed Nov 24, 2023
1 parent 19a8931 commit b2c4716
Show file tree
Hide file tree
Showing 68 changed files with 2,590 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage
**/templates
50 changes: 50 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"extends": "eslint:recommended",
"env": {
"node": true,
"es6": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 2020
},
"rules": {
"arrow-spacing": ["warn", { "before": true, "after": true }],
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"curly": ["error", "multi-line", "consistent"],
"dot-location": ["error", "property"],
"handle-callback-err": "off",
"indent": ["error", 2],
"keyword-spacing": "error",
"max-nested-callbacks": ["error", { "max": 4 }],
"max-statements-per-line": ["error", { "max": 2 }],
"no-console": "off",
"no-empty-function": "error",
"no-floating-decimal": "error",
"no-inline-comments": "error",
"no-lonely-if": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
"no-shadow": ["error", { "allow": ["err", "resolve", "reject"] }],
"no-trailing-spaces": ["error"],
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"prefer-const": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
"yoda": "error"
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

github: [dennykorsukewitz]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Bug report
about: Create a report to help us improve
title: 'Bug report'
labels: 'Bug'
assignees: 'dennykorsukewitz'
---

# Bug report

## Expected behavior

A clear and concise description of what you expected to happen.

## Actual behavior

A clear and concise description of what happened (the issue/bug/problem).

## How to reproduce

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

## Screenshots

If applicable, add screenshots to help explain your problem.

## Environment

- OS: [e.g. Windows, macOS, Linux]
- VSC Version: [1.78.1]

## Additional information

Add any other information about the problem here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Enhancement
about: Make a wish enhancement ideas.
title: 'Enhancement - ???'
labels: 'Enhancement, Clarification'
assignees: 'dennykorsukewitz'
---

# Enhancement

## Expected behavior

A clear and concise description of what you expected to happen.

## Actual behavior

A clear and concise description of what happened.
39 changes: 39 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Bug report
about: Create a report to help us improve
title: 'Bug report'
labels: 'Bug'
assignees: 'dennykorsukewitz'
---

# Bug report

## Expected behavior

A clear and concise description of what you expected to happen.

## Actual behavior

A clear and concise description of what happened (the issue/bug/problem).

## How to reproduce

Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

## Screenshots

If applicable, add screenshots to help explain your problem.

## Environment

- OS: [e.g. Windows, macOS, Linux]
- VSC Version: [1.78.1]

## Additional information

Add any other information about the problem here.
21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Enhancement
about: Create a enhancement.
title: 'Enhancement #ISSUE - <Name of Enhancement>'
labels: 'Enhancement, Clarification'
assignees: 'dennykorsukewitz'
---

# Enhancement

## Expected behavior

A clear and concise description of what you expected to happen.

## Actual behavior

A clear and concise description of what happened (the issue/bug/problem).

## Changes

A clear and concise description of what you changed.
93 changes: 93 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
repository:
# The name of the repository. Changing this will rename the repository
name: generator-sublime-package

# A short description of the repository that will show up on GitHub
description: Sublime-Package is a Sublime Text package generator for yeoman, which creates scaffold for a sublime-package.

# A URL with more information about the repository
homepage: https://dennykorsukewitz.github.io/generator-sublime-package/

# A comma-separated list of topics to set on the repository
topics: pages, sublime, sublime-text, sublime-package, yeoman, yeoman-generator, workflow

# Either `true` to make the repository private, or `false` to make it public.
private: true

# Either `true` to enable issues for this repository, `false` to disable them.
has_issues: true

# Either `true` to enable projects for this repository, or `false` to disable them.
# If projects are disabled for the organization, passing `true` will cause an API error.
has_projects: false

# Either `true` to enable the wiki for this repository, `false` to disable it.
has_wiki: false

# Either `true` to enable downloads for this repository, `false` to disable them.
has_downloads: true

# Updates the default branch for this repository.
default_branch: dev

# Either `true` to allow squash-merging pull requests, or `false` to prevent
# squash-merging.
allow_squash_merge: true

# Either `true` to allow merging pull requests with a merge commit, or `false`
# to prevent merging pull requests with merge commits.
allow_merge_commit: false

# Either `true` to allow rebase-merging pull requests, or `false` to prevent
# rebase-merging.
allow_rebase_merge: false

# Labels: define labels for Issues and Pull Requests
labels:
- name: dev
color: '#44cc11'
description: Default Branch

- name: Bug
color: '#FF0000'
description: An issue with the system.

- name: Documentation
color: '#EB9419'
description: Improvements or additions to documentation.

- name: Feature
color: '#428BCA'
description: New functionality.

- name: Duplicate
color: '#cfd3d7'
description: This issue or pull request already exists.

- name: Refactoring
color: '#7F8C8D'
description: Refactoring is needed.

- name: WontFix
color: '#000000'
description: This will not be worked on.

- name: Unit Test
color: '#2ea7b2'
description: Unit Test.

- name: Clarification
color: '#3399FF'
description: Clarification of the current situation.

- name: Verified
color: '#b8e550'
description: This issue or pull request was verified.

- name: Verification
color: '#e8dd45'
description: This issue or pull request needs a verification.

- name: Progress
color: '#AD8D43'
description: This is in Progress.
11 changes: 11 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Lint
on:
push:
# branches: ["NEVER"]
pull_request:
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab

jobs:
Lint:
uses: dennykorsukewitz/dennykorsukewitz/.github/workflows/reusable.lint.yml@dev
16 changes: 16 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: GitHub Pages

on:
release:
types:
- published
push:
branches: ["dev", "dev-update"]
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab

jobs:
Pages:
uses: dennykorsukewitz/dennykorsukewitz/.github/workflows/reusable.pages.yml@dev
secrets:
PAT: ${{ secrets.PAT }}
58 changes: 58 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
name: UnitTest

on:
release:
types:
- published
push:
branches: ["dev", "dev-update", "private-dk-dev-init"]
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab

jobs:
ESLint:
name: ESLint
runs-on: ubuntu-22.04 # ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
npm install
npm install eslint
- name: Run ESLint
run: npm run lint

EJSlint:
name: EJSlint
runs-on: ubuntu-22.04 # ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
npm install
npm install -g ejs-lint
- name: Run EJSlint
run: npm run ejslint generators/

UnitTest-Jest:
name: UnitTest:Jest
runs-on: ubuntu-22.04 # ubuntu-latest
needs: [
ESLint,
EJSlint,
]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Set git config
run: |
git config --global user.user "dennykorsukewitz"
git config --global user.name "Denny Korsukéwitz"
git config --global github.user "dennykorsukewitz"
git config --global github.name "Denny Korsukéwitz"
- name: Run jest with coverage
run: npm run coverage
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
coverage
.yo-rc.json
package-lock.json
TODO.md
Loading

0 comments on commit b2c4716

Please sign in to comment.