Skip to content

Commit edd5c69

Browse files
committed
feat: Add some Angular app.
1 parent 6ec660a commit edd5c69

23 files changed

Lines changed: 10940 additions & 10 deletions

‎.editorconfig‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
ij_typescript_use_double_quotes = false
14+
15+
[*.md]
16+
max_line_length = off
17+
trim_trailing_whitespace = false

‎.github/workflows/pages.yml‎

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: pages
2+
3+
on:
4+
push:
5+
branches: [gh-pages]
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: pages-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout source
21+
uses: actions/checkout@v7
22+
23+
- name: Set up Node.js
24+
uses: actions/setup-node@v7
25+
with:
26+
node-version: "24"
27+
cache: npm
28+
29+
- name: Configure Pages
30+
id: pages
31+
uses: actions/configure-pages@v6
32+
33+
- name: Install dependencies
34+
run: npm ci
35+
36+
- name: Build Angular site
37+
run: |
38+
npx ng build --configuration production --base-href "${{ steps.pages.outputs.base_path }}/"
39+
cp dist/toktok-repos/browser/index.html dist/toktok-repos/browser/404.html
40+
41+
- name: Upload Pages artifact
42+
uses: actions/upload-pages-artifact@v5
43+
with:
44+
path: dist/toktok-repos/browser
45+
46+
deploy:
47+
needs: build
48+
runs-on: ubuntu-latest
49+
50+
environment:
51+
name: github-pages
52+
url: ${{ steps.deployment.outputs.page_url }}
53+
54+
permissions:
55+
id-token: write
56+
pages: write
57+
58+
steps:
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v5

‎.gitignore‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
!.vscode/mcp.json
30+
.history/*
31+
32+
# Miscellaneous
33+
/.angular/cache
34+
.sass-cache/
35+
/connect.lock
36+
/coverage
37+
/libpeerconnection.log
38+
testem.log
39+
/typings
40+
__screenshots__/
41+
42+
# System files
43+
.DS_Store
44+
Thumbs.db

‎.nojekyll‎

Whitespace-only changes.

‎.prettierrc‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"printWidth": 100,
3+
"singleQuote": true,
4+
"overrides": [
5+
{
6+
"files": "*.html",
7+
"options": {
8+
"parser": "angular",
9+
"htmlWhitespaceSensitivity": "ignore"
10+
}
11+
}
12+
]
13+
}

‎README.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# toktok-stack status
2+
3+
Angular frontend showing repository, CI, and pull request status for `TokTok/toktok-stack` and its `.gitmodules`.
4+
5+
```sh
6+
npm ci
7+
npm start
8+
npm test -- --watch=false
9+
npm run build
10+
```

‎angular.json‎

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"cli": {
5+
"packageManager": "npm"
6+
},
7+
"newProjectRoot": "projects",
8+
"projects": {
9+
"toktok-repos": {
10+
"projectType": "application",
11+
"schematics": {},
12+
"root": "",
13+
"sourceRoot": "src",
14+
"prefix": "app",
15+
"architect": {
16+
"build": {
17+
"builder": "@angular/build:application",
18+
"options": {
19+
"browser": "src/main.ts",
20+
"tsConfig": "tsconfig.app.json",
21+
"assets": [
22+
{
23+
"glob": "**/*",
24+
"input": "public"
25+
}
26+
],
27+
"styles": ["src/styles.css"]
28+
},
29+
"configurations": {
30+
"production": {
31+
"budgets": [
32+
{
33+
"type": "initial",
34+
"maximumWarning": "500kB",
35+
"maximumError": "1MB"
36+
},
37+
{
38+
"type": "anyComponentStyle",
39+
"maximumWarning": "4kB",
40+
"maximumError": "8kB"
41+
}
42+
],
43+
"outputHashing": "all"
44+
},
45+
"development": {
46+
"optimization": false,
47+
"extractLicenses": false,
48+
"sourceMap": true
49+
}
50+
},
51+
"defaultConfiguration": "production"
52+
},
53+
"serve": {
54+
"builder": "@angular/build:dev-server",
55+
"configurations": {
56+
"production": {
57+
"buildTarget": "toktok-repos:build:production"
58+
},
59+
"development": {
60+
"buildTarget": "toktok-repos:build:development"
61+
}
62+
},
63+
"defaultConfiguration": "development"
64+
},
65+
"test": {
66+
"builder": "@angular/build:unit-test"
67+
}
68+
}
69+
}
70+
}
71+
}

‎index.html‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)