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

convert to css and add tailwind #9

Merged
merged 1 commit into from
Feb 15, 2025
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
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"*.ts": ["prettier --write", "eslint"],
"*.html": ["eslint", "prettier --write"],
"*.scss": "prettier --write"
"*.css": "prettier --write"
}
5 changes: 5 additions & 0 deletions .postcssrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"plugins": {
"@tailwindcss/postcss": {}
}
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The goal of this assignment is to showcase your skills and coding style while bu
> **State Management** - We have included all of the `@ngrx` packages but you're welcome to use any state management library you see fit or just stateful services.
>
> **Component Library** - We have included [@angular/material](https://material.angular.io/components/categories) but you're welcome to use any component library that suites your needs. Ex: [PrimeNG](https://primeng.org/installation)
>
> **Styling** - We have included [tailwindcss](https://tailwindcss.com/docs/styling-with-utility-classes) but you can style using scss, or css directly if you prefer.

## Getting Started

Expand Down
4 changes: 2 additions & 2 deletions apps/angular-task/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"zone.js"
],
"tsConfig": "apps/angular-task/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"inlineStyleLanguage": "css",
"assets": [
{
"glob": "**/*",
Expand All @@ -28,7 +28,7 @@
],
"styles": [
"@angular/material/prebuilt-themes/azure-blue.css",
"apps/angular-task/src/styles.scss"
"apps/angular-task/src/styles.css"
],
"scripts": [],
"server": "apps/angular-task/src/main.server.ts",
Expand Down
4 changes: 0 additions & 4 deletions apps/angular-task/src/app/app.component.scss

This file was deleted.

4 changes: 3 additions & 1 deletion apps/angular-task/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import { Component } from '@angular/core';
import { RouterModule } from '@angular/router';

@Component({
host: {
class: 'block p-4'
},
imports: [RouterModule],
selector: 'crx-root',
templateUrl: './app.component.html',
styleUrl: './app.component.scss'
})
export class AppComponent {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "tailwindcss";

html,
body {
height: 100%;
Expand Down
4 changes: 2 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@
"e2eTestRunner": "playwright",
"prefix": "crx",
"linter": "eslint",
"style": "scss",
"style": "css",
"unitTestRunner": "jest"
},
"@nx/angular:library": {
"linter": "eslint",
"unitTestRunner": "jest"
},
"@nx/angular:component": {
"style": "scss",
"style": "css",
"standalone": true
}
},
Expand Down
Loading
Loading