This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run mv add_component.sh /usr/local/bin | |
# Creates boilerplate for Functional TypeScript React Component | |
mkdir $1 | |
cd $1 | |
touch $1.tsx | |
touch $1.scss | |
touch $1.spec.tsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { SwUpdate } from '@angular/service-worker'; | |
import { interval } from 'rxjs'; | |
import { MatSnackBar } from '@angular/material'; | |
@Injectable() | |
export class WorkerService { | |
constructor(public updates: SwUpdate, public snackBar: MatSnackBar) { | |
// If updates are enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sass/ | |
| | |
|– base/ | |
| |– _reset.scss # Reset/normalize | |
| |– _typography.scss # Typography rules | |
| ... # Etc… | |
| | |
|– components/ | |
| |– _buttons.scss # Buttons | |
| |– _carousel.scss # Carousel |