Skip to content

Commit

Permalink
convert to css and add tailwind (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmclellan-crexi authored Feb 15, 2025
1 parent 9608db4 commit ee04121
Show file tree
Hide file tree
Showing 10 changed files with 545 additions and 13 deletions.
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

0 comments on commit ee04121

Please sign in to comment.