Skip to content

chore(frontend): prepare release of the Milestone #1 #6

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

Draft
wants to merge 27 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e90904c
feat(monorepo): start create monorepo
glyad Feb 23, 2023
d1a62b3
feat: setup monorepo with yarn
glyad Feb 24, 2023
5432177
chore: update dependencies
glyad Feb 24, 2023
4d95094
chore: remove auto deleted file
glyad Feb 24, 2023
d8308fb
feat(au1-app): add the application package
glyad Feb 26, 2023
dfad77b
feat(au1-app): fix jest tests
glyad Feb 26, 2023
5477ba5
chore: add root start and postinstall scripts
glyad Feb 26, 2023
9bd5435
feat: create sample component packages
glyad Feb 27, 2023
b0651d9
feat: create component packages and components
glyad Mar 1, 2023
f959fa0
feat(au1-app): add Cypress
glyad Mar 2, 2023
4764e09
feat(au1-app): add Cypress
glyad Mar 2, 2023
2487b2c
chore: add .huskyrc file
glyad Mar 4, 2023
dee364b
Merge pull request #5 from devops-example-org/feature/create-monorepo
glyad Mar 5, 2023
ebf23a7
Merge branch 'main' into develop
glyad Mar 5, 2023
2fd464d
feat(au1-app): add the router and home route
glyad Mar 6, 2023
cee1070
chore: add autolinks to workspace settings
glyad Mar 6, 2023
51fa668
Merge branch 'develop' into feature/implement-the-router-and-left-sid…
glyad Mar 6, 2023
d687f8b
chore: fix branch name in workflow
glyad Mar 6, 2023
886cd73
chore: try husky pre-commit with Cypress
glyad Mar 6, 2023
df70910
Merge branch 'main' into develop
glyad Mar 6, 2023
16a6223
style(fast-components): clean code
glyad Mar 6, 2023
769837c
feat(au1-app): add the nav menu
glyad Mar 8, 2023
c3b75b5
Merge branch 'develop' into feature/implement-the-router-and-left-sid…
glyad Mar 8, 2023
36dd9fb
chore: disable temporary codeql workflow on push or pr
glyad Mar 9, 2023
b7a78b2
chore: merge pull request #8 from devops-example-org/feature/implemen…
glyad Mar 14, 2023
710cfcc
Merge branch 'main' into develop
glyad Mar 14, 2023
1a9003b
chore: merge branch 'main' into develop
glyad Mar 14, 2023
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
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:
push:
branches:
- main
- dev
- develop
- feature/*
pull_request:
branches:
- main
- dev
- develop

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: CodeQL

on:
push:
branches: [develop,feature/*]
pull_request:
branches: [develop,feature/*]
# push:
# branches: [develop,feature/*]
# pull_request:
# branches: [develop,feature/*]
schedule:
# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ minute (0 - 59)
# β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ hour (0 - 23)
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
57 changes: 57 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# https://github.com/changesets/action#with-publishing
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
registry-url: 'https://npm.pkg.github.com'
scope: '@heygrady'
- name: Setup .yarnrc.yml
run: |
yarn config set npmScopes.heygrady.npmRegistryServer "https://npm.pkg.github.com"
yarn config set npmScopes.heygrady.npmAlwaysAuth true
yarn config set npmScopes.heygrady.npmAuthToken $NPM_AUTH_TOKEN
env:
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cache node_modules and yarn cache
uses: actions/cache@v3
with:
path: |
node_modules
apps/*/node_modules
packages/*/node_modules
scripts/*/node_modules
.yarn/cache
key: root-node-modules-folder-v1
restore-keys: |
root-node-modules-folder-
- run: yarn install
# FIXME: run yarn lint and yarn test before releasing
- name: Create Release Pull Request or Publish to Github Package Registry
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called version which updates the lockfile after calling `changeset version`.
version: yarn version
# This expects you to have a script called release which builds your packages and then calls `changeset publish`.
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#example-workflow
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
YARN_ENABLE_IMMUTABLE_INSTALLS: false
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,17 @@ dist
# Special VSCode Local History plugin's folder
.history

.yarn
# Yarn Not-Zero-Installs
# https://yarnpkg.com/getting-started/qa/#which-files-should-be-gitignored
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.turbo
.pnp.cjs

coverage-jest
**/*.mp4
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit ${1}
4 changes: 4 additions & 0 deletions .husky/manypkg-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn manypkg check
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn run e2e

yarn run cy
2 changes: 2 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
. ~/.nvm/nvm.sh
PATH="/usr/local/bin:$PATH"
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@devops-example-org:registry=https://npm.pkg.github.com

//npm.pkg.github.com/:_authToken=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
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"aureliaeffect.aurelia",
"steoates.autoimport",
"editorconfig.editorconfig",
"christian-kohler.path-intellisense",
"behzad88.aurelia"
]
}
25 changes: 25 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome against localhost",
"type": "chrome",
"request": "launch",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}/*",
"sourceMaps": true,
"userDataDir": "${workspaceFolder}/.vscode/.chrome",
"sourceMapPathOverrides": {
"webpack://@devops-example/au1-app/*": "${workspaceRoot}/packages/au1-app/*",
"webpack://@devops-example/au1-component/*": "${webroot}/packages/au1-component/*",
"webpack://@devops-example/fast-components/*": "${webroot}/packages/fast-components/*"
},
"skipFiles": [
"${workspaceFolder}/node_modules/**/*"
]
}
]
}
25 changes: 24 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
{}
{
"typescript.tsdk": "node_modules/typescript/lib",
"html.suggest.angular1": false,
"html.suggest.ionic": false,
"cSpell.words": [
"execa",
"testid"
],
"devskim.ignoreRulesList": [
"DS137138"
],
"gitlens.autolinks": [

{
"prefix": "issue: #",
"url": "https://github.com/devops-example-org/frontend/issues/<num>"
},
{
"prefix": "pr: #",
"url": "https://github.com/devops-example-org/frontend/pull/<num>"
}
],
"cmake.configureOnOpen": false
}
541 changes: 541 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-typescript.cjs

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
nodeLinker: node-modules
nmHoistingLimits: "none"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
npmScopes:
devops-example:
npmPublishRegistry: "https://npm.pkg.github.com"
npmRegistryServer: "https://npm.pkg.github.com"
npmAlwaysAuth: true
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional', '@commitlint/config-lerna-scopes'],
}
22 changes: 22 additions & 0 deletions frontend.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"folders": [
{
"name": "✨ frontend",
"path": "."
},
{
"name": "πŸ“¦ au1-app",
"path": "packages/au1-app"
},
{
"name": "πŸ“¦ fast-components",
"path": "packages/fast-components"
}
],
"settings": {
"jest.disabledWorkspaceFolders": [
"πŸ“¦ fast-components",
"πŸ“¦ au1-app"
]
}
}
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('jest').Config} */
const config = {
projects: ['<rootDir>/packages/au1-app', '<rootDir>/packages/au1-component'],
};

module.exports = config;
82 changes: 82 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"name": "frontend",
"packageManager": "[email protected]",
"version": "1.0.0",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"preinstall": "npx only-allow yarn",
"prepare": "husky install",
"build": "turbo run --concurrency=4 build",
"clean": "turbo run clean",
"coverage": "turbo run --concurrency=4 coverage",
"coverage:ci": "turbo run --concurrency=2 coverage -- --maxWorkers=2 --forceExit",
"format": "turbo run --concurrency=4 format",
"lint": "turbo run --concurrency=4 lint",
"postinstall": "husky install && npx playwright install",
"release": "yarn build && changeset publish",
"test": "turbo run --concurrency=4 test",
"test:ci": "turbo run --concurrency=2 test -- --maxWorkers=2 --forceExit",
"version": "changeset version && yarn install",
"start": "cd packages/au1-app && turbo run --concurrency=2 start",
"cy": "cd packages/au1-app && turbo run --concurrency=2 cy",
"cy:dev": "cd packages/au1-app && turbo run --concurrency=2 cy:dev",
"e2e": "cd packages/au1-app && yarn run e2e"
},
"devDependencies": {
"@badeball/cypress-cucumber-preprocessor": "^15.1.4",
"@changesets/cli": "^2.26.0",
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@commitlint/config-lerna-scopes": "^17.4.2",
"@cypress/browserify-preprocessor": "^3.0.2",
"@manypkg/cli": "^0.20.0",
"@microsoft/fast-components": "^2.30.6",
"@microsoft/fast-element": "^1.11.0",
"@microsoft/fast-foundation": "^2.47.1-0",
"@microsoft/fast-web-utilities": "^6.0.0",
"@types/copyfiles": "^2.4.1",
"@types/is-ci": "^3",
"aurelia-binding": "^2.5.4",
"aurelia-bootstrapper": "^2.4.0",
"aurelia-dependency-injection": "^1.5.2",
"aurelia-event-aggregator": "^1.0.3",
"aurelia-framework": "^1.4.1",
"aurelia-history-browser": "^1.4.0",
"aurelia-hot-module-reload": "^0.3.0",
"aurelia-loader-webpack": "^2.2.5",
"aurelia-logging": "^1.5.2",
"aurelia-logging-console": "^1.1.1",
"aurelia-pal": "^1.8.2",
"aurelia-path": "^1.1.7",
"aurelia-router": "^1.7.1",
"aurelia-task-queue": "^1.3.3",
"aurelia-templating": "^1.11.1",
"aurelia-templating-binding": "^1.6.0",
"aurelia-templating-resources": "^1.14.3",
"aurelia-templating-router": "^1.5.0",
"aurelia-typed-observable-plugin": "^0.5.1",
"aurelia-validation": "2.0.0-rc1",
"aurelia-webpack-plugin": "^5.0.5",
"clean-webpack-plugin": "^4.0.0",
"concurrently": "^7.6.0",
"copyfiles": "^2.4.1",
"cypress": "^12.7.0",
"cypress-visual-regression": "^2.1.1",
"execa": "^7.0.0",
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"office-ui-fabric-core": "^11.1.0",
"resolve-typescript-plugin": "^2.0.0",
"source-map-loader": "^4.0.1",
"ts-loader": "^9.4.2",
"tslib": "^2.5.0",
"turbo": "^1.8.3",
"typescript": "^4.9.5",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.11.1"
}
}
Loading