Skip to content

Commit

Permalink
Merge pull request #1 from design4pro/develop
Browse files Browse the repository at this point in the history
feat(nx-custom-webpack): initial commit
  • Loading branch information
rafalwolak committed Apr 18, 2021
2 parents 3ebdf33 + 6345aaa commit ff00332
Show file tree
Hide file tree
Showing 29 changed files with 49,263 additions and 15,044 deletions.
34 changes: 34 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = {
extends: ['@commitlint/config-angular'],
rules: {
'type-enum': [
2,
'always',
[
// Minor
'feat',
// Patch
'build',
'docs',
'fix',
'perf',
'refactor',
// None
'chore',
'ci',
'revert',
'test',
],
],
'scope-empty': [0],
'scope-enum': [
2,
'always',
// prettier-ignore
[
'nx-custom-webpack'
],
],
},
ignores: [(message) => message.toLowerCase().startsWith('wip')],
};
61 changes: 61 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Labels: define labels for Issues and Pull Requests
labels:
# type
- name: 'type: bug'
description: 'App is not working correctly.'
color: 'fbca04'
- name: 'type: discussion'
description: 'Discussing usage, best practices, questions, etc.'
color: 'e99695'
- name: 'type: documentation'
description: 'Related to improving documentation and the wiki.'
color: '6addf7'
- name: 'type: security'
description: 'Questions, concerns, or suggestions for improving the security of the app.'
color: '1d76db'
- name: 'type: enhancement'
description: 'A new feature suggestion or improvement upon an existing feature.'
color: '84b6eb'
- name: 'type: maintenance'
color: 'fbca04'
- name: 'type: question'
color: 'cc317c'
- name: 'type: feature'
color: '1d76db'

#status
- name: 'status: in progress️'
description: 'Currently being developed for a future release.'
color: 'cccccc'
- name: 'status: on hold'
description: 'Work has stopped. There may be one or more blockers or needs more information.'
color: 'e11d21'
- name: 'status: abandoned'
color: '000000'
- name: 'status: accepted'
color: '009800'
- name: 'status: available'
color: 'bfe5bf'
- name: 'status: blocked'
color: 'e11d21'
- name: 'status: completed'
description: 'This has been addressed in a branch and will be scheduled for release in the assigned milestone.'
color: '006b75'
- name: 'status: pending'
color: 'fef2c0'
- name: 'status: review needed'
color: 'fbca04'

# priority
- name: 'priority: critical'
description: 'Critical priority, needs immediate response'
color: 'e11d21'
- name: 'priority: high'
description: 'High priority, needs immediate response'
color: 'eb6420'
- name: 'priority: medium'
description: 'Medium priority'
color: 'fbca04'
- name: 'priority: low'
description: 'Low priority'
color: '009800'
25 changes: 25 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PR Check

on: pull_request

env:
CI: true

jobs:
check:
name: PR Check
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v1
- name: Install Dependencies
run: npm ci
- name: Lint Workspace & Code
run: |
npm run nx -- workspace-lint
npm run affected:lint -- --all
- name: Unit Tests
run: npm run affected:test -- --all
- name: Test Builds
run: npm run affected:build -- --all
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
branches:
- main

env:
CI: true

jobs:
release:
name: Build, Release & Publish
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v1
- name: Install Dependencies
run: npm ci
- name: Lint Workspace & Code
run: |
npm run nx -- workspace-lint
npm run affected:lint -- --all
- name: Unit Tests
run: npm run affected:test -- --all
- name: Build, Release on GitHub & Publish to NPM
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*.launch
.settings/
*.sublime-workspace
*.code-workspace

# IDE - VSCode
.vscode/*
Expand Down
Loading

0 comments on commit ff00332

Please sign in to comment.