Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Feb 28, 2024
0 parents commit 017ee72
Show file tree
Hide file tree
Showing 399 changed files with 38,128 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .defaults/config/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# https://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = tab
max_line_length = 160
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
indent_style = space
insert_final_newline = false
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .defaults/config/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/assets/**
52 changes: 52 additions & 0 deletions .defaults/config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Next
.next

# GraphQL
src/__generated__

# IDE's
.idea
.project
*.sublime-*
*.code-*


# Node.js
node_modules
npm-debug.log


# Build and test tools
*.zip
dist/*

# Cache
.sass-cache
.cache


# Operating system
.DS_Store
Thumbs.db


# Other
/.husky
/.reports
.env
.eslintcache
*~
*.log
*.tgz

assets/bundes/
assets/codicons/
assets/fontawesome-free/
assets/icofont/
assets/kreon/
assets/material-icons/
assets/material-symbols/
assets/noto-sans/
assets/roboto/
assets/tabler-icons/
assets/kolibri.ico
5 changes: 5 additions & 0 deletions .defaults/config/.knip.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"entry": ["src/index.ts"],
"project": ["src/**/*.ts"]
}
7 changes: 7 additions & 0 deletions .defaults/config/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# - npm
legacy-peer-deps=true
save-exact=true

# - pnpm
auto-install-peers=true
strict-peer-dependencies=false
1 change: 1 addition & 0 deletions .defaults/config/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/assets/**
40 changes: 40 additions & 0 deletions .defaults/config/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"editor.formatOnSave": true,
"editor.renderWhitespace": "all",
// Configure glob patterns for excluding files and folders.
// For example, the files explorer decides which files and folders to show
// or hide based on this setting.
// Read more about glob patterns [here](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options).
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true
},
// Configure glob patterns of file paths to exclude from file watching.
// Patterns must match on absolute paths
// (i.e. prefix with ** or the full path to match properly).
// Changing this setting requires a restart.
// When you experience Code consuming lots of cpu time on startup,
// you can exclude large folders to reduce the initial load.
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/tmp/**": true,
"**/bower_components/**": true,
"**/dist/**": true
},
// Configure glob patterns for excluding files and folders in searches.
// Inherits all glob patterns from the `files.exclude` setting.
// Read more about glob patterns [here](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options).
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true
},
"javascript.preferences.importModuleSpecifier": "relative",
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.updateImportsOnFileMove.enabled": "always"
}
5 changes: 5 additions & 0 deletions .defaults/config/prettier.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
printWidth: 160,
singleQuote: true,
useTabs: true,
};
3 changes: 3 additions & 0 deletions .defaults/static/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Binary file added .defaults/static/assets/logo.angular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .defaults/static/assets/logo.astro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .defaults/static/assets/logo.ember.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .defaults/static/assets/logo.kolibri.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions .defaults/static/assets/logo.kolibri.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .defaults/static/assets/logo.leanupjs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .defaults/static/assets/logo.nextjs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .defaults/static/assets/logo.preact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .defaults/static/assets/logo.react.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .defaults/static/assets/logo.remix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .defaults/static/assets/logo.solid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .defaults/static/assets/logo.svelte.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .defaults/static/assets/logo.vanilla.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .defaults/static/assets/logo.vue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions .defaults/static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# https://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = tab
max_line_length = 160
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
indent_style = space
insert_final_newline = false
trim_trailing_whitespace = false

[*.yml]
indent_style = space
86 changes: 86 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: github-actions
directory: /
labels:
- dependabot
schedule:
interval: daily

- package-ecosystem: "npm"
directory: "/"
labels:
- dependabot
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/templates/angular-webpack/"
labels:
- dependabot
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/templates/astro/"
labels:
- dependabot
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/templates/next.js/"
labels:
- dependabot
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/templates/preact-webpack/"
labels:
- dependabot
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/templates/react-vite/"
labels:
- dependabot
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/templates/react-webpack/"
labels:
- dependabot
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/templates/solid-webpack/"
labels:
- dependabot
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/templates/static-page/"
labels:
- dependabot
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/templates/svg2font/"
labels:
- dependabot
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/templates/vue-vite/"
labels:
- dependabot
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/templates/vue-webpack/"
labels:
- dependabot
schedule:
interval: "daily"
7 changes: 7 additions & 0 deletions .github/dod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dod:
- Meaningful title for the release notes
- Pull request is linked to an issue
- All changes relate to the issue
- A11y tests performed successfully
- Code review carried out successfully
- Manual test performed successfully
74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: CI-Pipeline

on:
pull_request:
push:
branches:
- 'develop'
- 'main'
- 'release/*'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

# - uses: pnpm/action-setup@v3
# with:
# run_install: false
# version: 8
# - uses: actions/setup-node@v4
# with:
# cache: pnpm
# node-version: 20

# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time
- name: Install Node.js
uses: actions/setup-node@v4
with:
# cache: pnpm
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v3
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store
restore-keys: |
${{ runner.os }}-pnpm-store
- name: Install
run: pnpm i --no-frozen-lockfile
# - name: Unused
# run: pnpm -r unused
- name: Format
run: pnpm -r format
- name: Build
run: pnpm -r build
- name: Lint
run: pnpm -r lint
# - name: Test
# run: pnpm -r --workspace-concurrency=1 test # https://pnpm.io/configuring

- uses: actions/upload-artifact@v4
if: failure()
name: Upload theme test reports
with:
name: reports
path: |
packages/themes/**/test-results/**/*.png
!**/node_modules
40 changes: 40 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 'CLA Assistant'

on:
issue_comment:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]

jobs:
cla:
if: github.repository == 'public-ui/create-kolibri-templates'
runs-on: ubuntu-latest
steps:
- name: 'CLA Assistant'
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
# Beta Release
uses: contributor-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# the below token should have repo scope and must be manually added by you in the repository's secret
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
path-to-signatures: 'cla/kolibri/signatures-v1.0.json'
path-to-document: 'https://github.com/public-ui/kolibri/blob/main/docs/CLA.md' # e.g. a CLA or a DCO document
remote-organization-name: 'public-ui'
remote-repository-name: '.github-private'
# branch should not be protected
branch: 'main'
allowlist: actions-user,bot*

#below are the optional inputs - If the optional inputs are not given, then default values will be taken
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
#remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
#signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
#use-dco-flag: true - If you are using DCO instead of CLA
Loading

0 comments on commit 017ee72

Please sign in to comment.