This file contains hidden or 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 { NativeDateAdapter } from '@angular/material/core'; | |
export const TS_DATE_FORMATS = { | |
parse: { | |
dateInput: {month: 'short', year: 'numeric', day: 'numeric'}, | |
}, | |
display: { | |
dateInput: 'input', | |
monthYearLabel: 'inputMonth', |
This file contains hidden or 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
removeByKey(array, params) { | |
array.some(function(item, index) { | |
if (array[index][params.key] === params.value) { | |
array.splice(index, 1); | |
return true; | |
} | |
return false; | |
}); | |
return array; | |
} |
This file contains hidden or 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 { Action, Store } from '@ngrx/store'; | |
import { Subject } from 'rxjs/Subject'; | |
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; | |
/** | |
* Standard mockstore that can be used in unittests to mock a @ngrx/store | |
* | |
* https://github.com/ngrx/store/issues/128#issuecomment-316654714 | |
*/ |
This file contains hidden or 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
lsof -n -i4TCP:4300 |
This file contains hidden or 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
export const rollupGlobals = { | |
'tslib': 'tslib', | |
'moment': 'moment', | |
// lodash | |
'lodash': 'lodash', | |
'lodash-es': 'lodash-es', | |
'lodash-es/at': 'lodash-es/at', | |
'lodash-es/cloneDeep': 'lodash-es/cloneDeep', | |
'lodash-es/concat': 'lodash-es/concat', |
This file contains hidden or 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
const { version: appVersion } = require('../../package.json') | |
// this loads package.json | |
// then you destructure that object and take out the 'version' property from it | |
// and finally with ': appVersion' you rename it to const appVersion | |
@Component({ | |
selector: 'stack-overflow', | |
templateUrl: './stack-overflow.component.html' | |
}) | |
export class StackOverflowComponent { |
This file contains hidden or 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
Show hidden characters
{ | |
"rulesDirectory": [ | |
"node_modules/codelyzer" | |
], | |
"rules": { | |
"angular-whitespace": [ | |
true, | |
"check-interpolation" | |
], | |
"arrow-parens": true, |
This file contains hidden or 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
{ | |
"rules": { | |
"at-rule-name-space-after": "always", | |
"at-rule-semicolon-space-before": "never", | |
"at-rule-semicolon-newline-after": "always", | |
"at-rule-no-vendor-prefix": true, | |
"block-no-empty": true, | |
"block-closing-brace-newline-after": [ | |
"always", | |
"ignoreAtRules": [ |
This file contains hidden or 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
yarn remove karma-sauce-launcher | |
yarn add -D --exact karma-sauce-launcher |
This file contains hidden or 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
➜ my-app git:(fix-link-style-inheritence) ✗ yr docs | |
yarn run v1.2.1 | |
$ yarn run docs:toc | |
DocToccing single file "./README.md" for github.com. | |
================== | |
"./README.md" will be updated |