diff --git a/.drone.yml b/.drone.yml index eb4ecbc..920ea05 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,10 +26,10 @@ steps: from_secret: dragon_scale script: - /usr/local/bin/docker pull hub.chagarlamudi.net/rc-portfolio:latest - - /usr/local/bin/docker stop rc-portfolio-container || true # Stop the container if it exists - - /usr/local/bin/docker rm rc-portfolio-container || true # Remove the container - - /usr/local/bin/docker run -d -p 8080:80 --name rc-portfolio-container hub.chagarlamudi.net/rc-portfolio:latest # Start the container + - /usr/local/bin/docker stop rc-portfolio-container || true # Stop the container if it exists + - /usr/local/bin/docker rm rc-portfolio-container || true # Remove the container + - /usr/local/bin/docker run -d -p 8080:80 --name rc-portfolio-container hub.chagarlamudi.net/rc-portfolio:latest # Start the container when: branch: - - main # Trigger this pipeline only for the main branch + - main # Trigger this pipeline only for the main branch diff --git a/.prettierrc b/.prettierrc index 438e72b..dba0122 100644 --- a/.prettierrc +++ b/.prettierrc @@ -5,18 +5,19 @@ "printWidth": 120, "tabWidth": 2, "endOfLine": "auto", - "bracketSpacing": true, + "bracketSpacing": true, "overrides": [ { "files": "*.scss", "options": { "singleQuote": false } - }, { + }, + { "files": "*.html", "options": { - "printWidth": 120 + "printWidth": 120 } } ] -} \ No newline at end of file +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 0df8f38..449a54f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,4 +12,4 @@ "editor.defaultFormatter": "esbenp.prettier-vscode", "prettier.configPath": ".prettierrc.json", "editor.formatOnSave": true -} \ No newline at end of file +} diff --git a/angular.json b/angular.json index d348283..1d73991 100644 --- a/angular.json +++ b/angular.json @@ -20,9 +20,7 @@ "outputPath": "dist/rc-portfolio", "index": "src/index.html", "browser": "src/main.ts", - "polyfills": [ - "zone.js" - ], + "polyfills": ["zone.js"], "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ @@ -31,9 +29,7 @@ "input": "public" } ], - "styles": [ - "src/styles.scss" - ], + "styles": ["src/styles.scss"], "scripts": [] }, "configurations": { @@ -78,10 +74,7 @@ "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "polyfills": [ - "zone.js", - "zone.js/testing" - ], + "polyfills": ["zone.js", "zone.js/testing"], "tsConfig": "tsconfig.spec.json", "inlineStyleLanguage": "scss", "assets": [ @@ -90,27 +83,20 @@ "input": "public" } ], - "styles": [ - "src/styles.scss" - ], + "styles": ["src/styles.scss"], "scripts": [] } }, "lint": { "builder": "@angular-eslint/builder:lint", "options": { - "lintFilePatterns": [ - "src/**/*.ts", - "src/**/*.html" - ] + "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"] } } } } }, "cli": { - "schematicCollections": [ - "angular-eslint" - ] + "schematicCollections": ["angular-eslint"] } } diff --git a/eslint.config.js b/eslint.config.js index 8266a71..9b23911 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,35 +1,35 @@ // @ts-check -const eslint = require("@eslint/js"); -const tseslint = require("typescript-eslint"); -const angular = require("angular-eslint"); -const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended"); +const eslint = require('@eslint/js'); +const tseslint = require('typescript-eslint'); +const angular = require('angular-eslint'); +const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended'); module.exports = tseslint.config( { - files: ["**/*.ts"], + files: ['**/*.ts'], extends: [ eslint.configs.recommended, ...tseslint.configs.recommended, ...tseslint.configs.stylistic, ...angular.configs.tsRecommended, - eslintPluginPrettierRecommended + eslintPluginPrettierRecommended, ], processor: angular.processInlineTemplates, rules: { - "@angular-eslint/directive-selector": [ - "error", + '@angular-eslint/directive-selector': [ + 'error', { - type: "attribute", - prefix: "app", - style: "camelCase", + type: 'attribute', + prefix: 'app', + style: 'camelCase', }, ], - "@angular-eslint/component-selector": [ - "error", + '@angular-eslint/component-selector': [ + 'error', { - type: "element", - prefix: "app", - style: "kebab-case", + type: 'element', + prefix: 'app', + style: 'kebab-case', }, ], '@typescript-eslint/no-explicit-any': ['off'], @@ -42,11 +42,8 @@ module.exports = tseslint.config( }, }, { - files: ["**/*.html"], - extends: [ - ...angular.configs.templateRecommended, - ...angular.configs.templateAccessibility, - ], + files: ['**/*.html'], + extends: [...angular.configs.templateRecommended, ...angular.configs.templateAccessibility], rules: {}, } ); diff --git a/package.json b/package.json index b04cae6..aa972d1 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test", - "lint": "ng lint" + "lint": "ng lint", + "format": "prettier --write ." }, "private": true, "dependencies": { diff --git a/src/app/app.component.html b/src/app/app.component.html index 36093e1..9081e6e 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -36,9 +36,18 @@ --pill-accent: var(--bright-blue); - font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, - Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", - "Segoe UI Symbol"; + font-family: + 'Inter', + -apple-system, + BlinkMacSystemFont, + 'Segoe UI', + Roboto, + Helvetica, + Arial, + sans-serif, + 'Apple Color Emoji', + 'Segoe UI Emoji', + 'Segoe UI Symbol'; box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; @@ -51,9 +60,18 @@ line-height: 100%; letter-spacing: -0.125rem; margin: 0; - font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, - Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", - "Segoe UI Symbol"; + font-family: + 'Inter Tight', + -apple-system, + BlinkMacSystemFont, + 'Segoe UI', + Roboto, + Helvetica, + Arial, + sans-serif, + 'Apple Color Emoji', + 'Segoe UI Emoji', + 'Segoe UI Symbol'; } p { @@ -180,12 +198,7 @@
-
- @for (item of [ - { title: 'Explore the Docs', link: 'https://angular.dev' }, - { title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' }, - { title: 'CLI Docs', link: 'https://angular.dev/tools/cli' }, - { title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' }, - { title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' }, - ]; track item.title) { - + @for ( + item of [ + { title: 'Explore the Docs', link: 'https://angular.dev' }, + { title: 'Learn with Tutorials', link: 'https://angular.dev/tutorials' }, + { title: 'CLI Docs', link: 'https://angular.dev/tools/cli' }, + { title: 'Angular Language Service', link: 'https://angular.dev/tools/language-service' }, + { title: 'Angular DevTools', link: 'https://angular.dev/tools/devtools' }, + ]; + track item.title + ) { + {{ item.title }} - + @@ -260,39 +258,15 @@ }