Skip to content

Commit

Permalink
Merge pull request #15 from mathieuher/preview/angular
Browse files Browse the repository at this point in the history
Preview/angular
  • Loading branch information
mathieuher authored Dec 5, 2024
2 parents 42e02bc + 0a1ed8e commit 473ebd5
Show file tree
Hide file tree
Showing 241 changed files with 11,409 additions and 93,222 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
- name: Use Node.js 20
uses: actions/setup-node@v2
with:
node-version: '20.10'
node-version: '20.11.1'

- name: 🔨 Build Project
run: |
npm install
npm run build
yarn install
yarn run build
- name: 📂 Sync files
uses: SamKirkland/[email protected]
Expand Down
49 changes: 41 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,42 @@
.vscode
node_modules
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# Node
/node_modules
npm-debug.log
yarn-error.log

# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
dist
dist-ssr
*.local
test/images/actual.png
test/images/diff-*.png
yarn.lock
Thumbs.db
28 changes: 0 additions & 28 deletions LICENSE

This file was deleted.

125 changes: 125 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"RetroSki": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss",
"changeDetection": "OnPush",
"skipTests": true
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/assets",
{
"glob": "**/*",
"input": "src/app/game/images",
"output": "assets/images"
},
{
"glob": "**/*",
"input": "src/app/game/sounds",
"output": "assets/sounds"
},
{
"glob": "**/*",
"input": "src/app/game/ghosts",
"output": "assets/ghosts"
},
{
"glob": "**/*",
"input": "src/app/game/tracks",
"output": "assets/tracks"
},
{
"glob": "**/*",
"input": "public"
}
],
"styles": [
"src/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kB",
"maximumError": "2MB"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kB",
"maximumError": "4kB"
}
],
"outputHashing": "all"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"buildTarget": "RetroSki:build:production"
},
"development": {
"buildTarget": "RetroSki:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n"
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
{
"glob": "**/*",
"input": "public"
}
],
"styles": [
"src/styles.scss"
],
"scripts": []
}
}
}
}
}
}
25 changes: 18 additions & 7 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"ignore": []
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 4,
"lineWidth": 120
},
"organizeImports": {
"enabled": true
},
Expand All @@ -15,15 +30,11 @@
}
}
},
"formatter": {
"enabled": true,
"indentWidth": 4,
"lineWidth": 110
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"arrowParentheses": "asNeeded"
"arrowParentheses": "asNeeded",
"trailingCommas": "none"
}
}
}
Loading

0 comments on commit 473ebd5

Please sign in to comment.