Skip to content
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

build: init FEM project #1

Merged
merged 18 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
root = true

[*]
end_of_line = lf
charset = utf-8
indent_style = space
indent_size = 2
Expand Down
48 changes: 48 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"@typescript-eslint/no-unused-vars": 0
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended",
"plugin:@angular-eslint/template/accessibility"
],
"rules": {}
}
]
}
7 changes: 5 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
"recommendations": ["angular.ng-template"]
"recommendations": [
"angular.ng-template",
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint"
]
}
21 changes: 14 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"name": "Load Angular App in Chrome",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
"preLaunchTask": "serve",
"url": "http://localhost:4200/",
"runtimeArgs": [
"--auto-open-devtools-for-tabs",
"--user-data-dir=${userHome}/.config/vscode-chrome-dev"
]
},
{
"name": "ng test",
"name": "Load Angular App in Chrome (prod)",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: test",
"url": "http://localhost:9876/debug.html"
"preLaunchTask": "serve (prod)",
"url": "http://localhost:4200/",
"runtimeArgs": [
"--auto-open-devtools-for-tabs",
"--user-data-dir=${userHome}/.config/vscode-chrome-dev"
]
}
]
}
65 changes: 56 additions & 9 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,86 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"label": "serve",
"type": "shell",
"command": "ng serve",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
"regexp": "Building..."
},
"endsPattern": {
"regexp": "bundle generation complete"
"regexp": "Application bundle generation complete"
}
}
}
},
{
"type": "npm",
"script": "test",
"label": "serve (prod)",
"type": "shell",
"command": "ng serve -c production",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
"regexp": "Building..."
},
"endsPattern": {
"regexp": "bundle generation complete"
"regexp": "Application bundle generation complete"
}
}
}
},
{
"label": "test (all specs)",
"type": "shell",
"command": "ng test",
"isBackground": true,
"group": {
"kind": "test",
"isDefault": false
},
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "Generating browser application bundles"
},
"endsPattern": {
"regexp": "Browser application bundle generation complete"
}
}
}
},
{
"label": "test (current spec)",
"type": "shell",
"command": "ng test --include ${relativeFile}",
"isBackground": true,
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "Generating browser application bundles"
},
"endsPattern": {
"regexp": "Browser application bundle generation complete"
}
}
}
Expand Down
21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Johnny Gérard

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
67 changes: 40 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,40 @@
# FemGalleriaSlideshowSite

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.1.0.

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.

## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
# Frontend Mentor | Galleria slideshow site
This is my solution to the [Galleria slideshow site challenge](https://www.frontendmentor.io/challenges/galleria-slideshow-site-tEA4pwsa6) from [Frontend Mentor](https://www.frontendmentor.io/).

[![project status](https://img.shields.io/badge/status-work%20in%20progress-red?style=for-the-badge)](https://fem-galleria-slideshow-site-jgerard.vercel.app)

## Tech Stack
- Angular 17
- Sass

## Main Features
- Standalone components
- Self-hosted fonts (downloaded from [Google Fonts](https://fonts.google.com))
- Bash automation (see [PR #1](../../pull/1))
- [GitHub Actions](../../tree/main/.github/workflows):
- Vercel deployments
- CodeQL analysis

## Developer Tools
- VS Code
- Figma
- GitHub Copilot

## Links
- [Website](https://fem-galleria-slideshow-site-jgerard.vercel.app) hosted with [Vercel](https://vercel.com/)
- Images served from [ImageKit](https://imagekit.io/) CDN
<!-- - [Solution]() -->

<!-- ## Screenshots
### Desktop
![desktop screenshot](screenshots/desktop.webp)
### Tablet
![tablet screenshot](screenshots/tablet.webp)
### Mobile
![mobile screenshot](screenshots/mobile.webp) -->

## About Frontend Mentor
[Frontend Mentor](https://www.frontendmentor.io/) challenges help you improve your coding skills by building realistic projects.

## Copyright
© 2024 Johnny Gérard
38 changes: 35 additions & 3 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"changeDetection": "OnPush",
"displayBlock": true,
"style": "scss",
"skipTests": true
},
Expand Down Expand Up @@ -48,9 +50,14 @@
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/favicon-32x32.png",
"src/assets"
],
"stylePreprocessorOptions": {
"includePaths": [
"src/styles"
]
},
"styles": [
"src/styles.scss"
],
Expand All @@ -75,7 +82,13 @@
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
"sourceMap": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.development.ts"
}
]
}
},
"defaultConfiguration": "production"
Expand Down Expand Up @@ -108,16 +121,35 @@
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/favicon-32x32.png",
"src/assets"
],
"stylePreprocessorOptions": {
"includePaths": [
"src/styles"
]
},
"styles": [
"src/styles.scss"
],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}
Loading