Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zahmo authored Aug 31, 2024
0 parents commit cc7f0aa
Show file tree
Hide file tree
Showing 346 changed files with 65,907 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
# For IE 9-11 support, please uncomment the last line of the file and adjust as needed
> 0.5%
last 2 versions
Firefox ESR
not dead
# IE 9-11
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

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

[*.md]
max_line_length = off
trim_trailing_whitespace = false
59 changes: 59 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
which template:

* [ ] MaterialDesignFrameworkModule — Material Design
* [ ] Bootstrap3FrameworkModule — Bootstrap 3
* [ ] Bootstrap4FrameworkModule — Bootstrap 4
* [ ] Bootstrap5FrameworkModule — Bootstrap 5
* [ ] DaisyUIFrameworkModule — DaisyUI
* [ ] NoFrameworkModule — plain HTML
* [ ] Other (please specify below)

A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. ...

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

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Log output covering before error and any error statements**

```logs
Insert log hereCopy
```

**Additional context**
Add any other context about the problem here.


<!--- For feature requests -->
**Detailed Description**
<!--- Provide a detailed description of the change or addition you are proposing -->

**Context**
<!--- Why is this change important to you? How would you use it? -->
<!--- How can it benefit other users? -->

**Possible Implementation**
<!--- Not obligatory, but suggest an idea for implementing addition or change -->
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
ci:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, lts/*]

steps:
- uses: actions/checkout@v3
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: Build libs and demo
run: npm run build:demo
- name: Test libs
run: |
npm run test:core -- --code-coverage --no-watch --no-progress --browsers=ChromeHeadlessCI
npm run test:bs3 -- --code-coverage --no-watch --no-progress --browsers=ChromeHeadlessCI
npm run test:bs4 -- --code-coverage --no-watch --no-progress --browsers=ChromeHeadlessCI
npm run test:material -- --code-coverage --no-watch --no-progress --browsers=ChromeHeadlessCI
- name: Publish code coverage
run: npm run publish:coverage
54 changes: 54 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "CodeQL"

on:
push:
branches: [main, angular6-json-schema-form]
pull_request:
# The branches below must be a subset of the branches above
branches: [main, angular6-json-schema-form]
schedule:
- cron: '0 18 * * 3'

jobs:
analyse:
name: Analyse
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# 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@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
113 changes: 113 additions & 0 deletions .github/workflows/createdist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
#workflow creates a dist branch for each library, based on its package version
#should create the following 2 dist branches per lib project
#for example the material library project with package version x.x.x will create branches:
#dist_material
#dist_material_vx.x.x

name: CreateDist

on:
push:
branches: [ main ]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: setup Node
uses: actions/setup-node@v3
- run: npm ci
- run: npm run build:libs

- name: version core
uses: nyaa8/package-version@v1
with:
path: './dist/@zajsf/core/package.json'

- name: dist core versioned
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_core_v${{ env.PACKAGE_VERSION }}
FOLDER: ./dist/@zajsf/core
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: dist core
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_core
FOLDER: ./dist/@zajsf/core
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: version bootstrap3
uses: nyaa8/package-version@v1
with:
path: './dist/@zajsf/bootstrap3/package.json'

- name: dist bootstrap3 versioned
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_bootstrap3_v${{ env.PACKAGE_VERSION }}
FOLDER: ./dist/@zajsf/bootstrap3
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: dist bootstrap3
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_bootstrap3
FOLDER: ./dist/@zajsf/bootstrap3
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: version bootstrap4
uses: nyaa8/package-version@v1
with:
path: './dist/@zajsf/bootstrap4/package.json'


- name: dist_bootstrap4 versioned
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_bootstrap4_v${{ env.PACKAGE_VERSION }}
FOLDER: ./dist/@zajsf/bootstrap4
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: dist_bootstrap4
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_bootstrap4
FOLDER: ./dist/@zajsf/bootstrap4
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: version material
uses: nyaa8/package-version@v1
with:
path: './dist/@zajsf/material/package.json'

- name: dist material versioned
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_material_v${{ env.PACKAGE_VERSION }}
FOLDER: ./dist/@zajsf/material
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: dist material
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_material
FOLDER: ./dist/@zajsf/material
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}




46 changes: 46 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
version: 2
updates:
# npm dependencies
- package-ecosystem: "npm"
# package.json directory
directory: "/"
# Check for dependencies update every week on Sunday so owners are not spammed during the week
schedule:
interval: "monthly"
# 10 PRs created per week max seems managable?
open-pull-requests-limit: 5
commit-message:
# Prefix all commit messages with "build"
prefix: "build"
- package-ecosystem: "npm"
directory: "/projects/zajsf-core"
schedule:
interval: "weekly"
day: "sunday"
open-pull-requests-limit: 5
commit-message:
prefix: "build"
- package-ecosystem: "npm"
directory: "/projects/zajsf-material"
schedule:
interval: "weekly"
day: "sunday"
open-pull-requests-limit: 5
commit-message:
prefix: "build"
- package-ecosystem: "npm"
directory: "/projects/zajsf-bootstrap3"
schedule:
interval: "weekly"
day: "sunday"
open-pull-requests-limit: 5
commit-message:
prefix: "build"
- package-ecosystem: "npm"
directory: "/projects/zajsf-bootstrap4"
schedule:
interval: "weekly"
day: "sunday"
open-pull-requests-limit: 5
commit-message:
prefix: "build"
28 changes: 28 additions & 0 deletions .github/workflows/deploy-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: DeployBranch

on:
workflow_dispatch:
inputs:
branch:
description: 'Define branch name'
required: true
default: 'main'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
- name: setup Node
uses: actions/setup-node@v3
- run: npm ci
- run: npm run build:demo

- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/demo
exclude_assets: ''
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy

on:
push:
branches: [ main ]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: setup Node
uses: actions/setup-node@v3
- run: npm ci
- run: npm run build:demo

- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/demo
exclude_assets: ''
Loading

0 comments on commit cc7f0aa

Please sign in to comment.