Skip to content

Commit

Permalink
Switching all CSS files to SASS (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Dec 12, 2017
1 parent 2517b67 commit 811fec1
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .angular-cli.json
Expand Up @@ -52,7 +52,7 @@
}
},
"defaults": {
"styleExt": "css",
"styleExt": "scss",
"component": {}
}
}
13 changes: 0 additions & 13 deletions build
Expand Up @@ -8,17 +8,4 @@ set -e

npm run travis

for CSS_FILE in `find ./src/ -type f -name "*.css"`;
do
CSS_BEAUTIFIED=$(mktemp)
# Beautify the CSS, but strip the first line because cssbeautify prints the
# filename in the output file.
cssbeautify-cli \
--file "${CSS_FILE}" \
--indent 2 \
| tail -n +2 \
> "${CSS_BEAUTIFIED}"
diff "${CSS_FILE}" "${CSS_BEAUTIFIED}"
done

npm run build
2 changes: 1 addition & 1 deletion src/app/_components/footer/footer.component.ts
Expand Up @@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-footer',
templateUrl: './footer.component.html',
styleUrls: ['./footer.component.css'],
styleUrls: ['./footer.component.scss'],
})
export class FooterComponent implements OnInit {

Expand Down
2 changes: 1 addition & 1 deletion src/app/_components/mailing-list/mailing-list.component.ts
Expand Up @@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-mailing-list',
templateUrl: './mailing-list.component.html',
styleUrls: ['./mailing-list.component.css'],
styleUrls: ['./mailing-list.component.scss'],
})
export class MailingListComponent implements OnInit {

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/app/_components/nav/nav.component.ts
Expand Up @@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-nav',
templateUrl: './nav.component.html',
styleUrls: ['./nav.component.css'],
styleUrls: ['./nav.component.scss'],
})
export class NavComponent implements OnInit {

Expand Down
2 changes: 1 addition & 1 deletion src/app/_components/recipe-list/recipe-list.component.ts
Expand Up @@ -9,7 +9,7 @@ import { recipesPerPage, maxPageButtons, recipeCategories } from '../../constant
@Component({
selector: 'app-recipe-list',
templateUrl: './recipe-list.component.html',
styleUrls: ['./recipe-list.component.css'],
styleUrls: ['./recipe-list.component.scss'],
})
export class RecipeListComponent implements OnInit {

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Expand Up @@ -3,7 +3,7 @@ import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
}

0 comments on commit 811fec1

Please sign in to comment.