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
{ | |
"extends": ["tslint:latest"], | |
"linterOptions": { | |
"exclude": ["build/*", "node_modules/*", "*/**/*[^.d$].ts"] | |
}, | |
"rules": { | |
"class-name": true, | |
"indent": [true, "spaces"], | |
"max-line-length": false, | |
"member-ordering": [ |
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
{ | |
"restartable": "rs", | |
"ignore": [".git", "node_modules/**/node_modules"], | |
"verbose": true, | |
"execMap": { | |
"js": "node --harmony" | |
}, | |
"events": { | |
"restart": "node scripts/restart.js $FILENAME" | |
}, |
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
#!/bin/bash | |
./node_modules/.bin/eslint "./**/*.{ts,js,vue}" | |
if [ $? == 0 ]; then | |
node ./scripts/success.js "ESLint" | |
fi |
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 chalk = require('chalk'); | |
const cmd = process.argv[2] !== undefined ? process.argv[2] + ':' : ''; | |
const msg = chalk.green.bold(`${cmd} No Errors Found`); | |
console.log(''); | |
console.log(`${chalk.bgGreen.black.bold(' DONE ')} ${msg}`); |
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 default class StrUtils { | |
public static reverseString(value: string): string { | |
return value.split('').reverse().join(''); | |
} | |
public static revereStringLoop(str: string): string { | |
let result: string = ''; | |
for (let i: number = str.length - 1; i >= 0; i--) { | |
result += str[i]; | |
} | |
return result; |
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
/** @test */ | |
public function it_what_should_happen(): void | |
{ | |
$this->assertTrue(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
#!/usr/bin/env bash | |
alias cls="clear && ls" | |
alias cll="clear && ls -la" | |
alias code="cd /var/www/html" | |
alias home="cd /var/www/html" | |
alias dev="cd /var/www/html" | |
alias ptest="./vendor/bin/phpunit --colors=always" | |
alias ea="vi ~/.bash_aliases" | |
alias ra="source !/.bash_aliases" |
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 ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
const path = require("path"); | |
const glob = require("glob-all"); | |
const PurgecssPlugin = require("purgecss-webpack-plugin"); | |
/** | |
* Custom PurgeCSS Extractor | |
* https://github.com/FullHuman/purgecss | |
* https://github.com/FullHuman/purgecss-webpack-plugin | |
*/ |
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 ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
const path = require("path"); | |
const glob = require("glob-all"); | |
const PurgecssPlugin = require("purgecss-webpack-plugin"); | |
/** | |
* Custom PurgeCSS Extractor | |
* https://github.com/FullHuman/purgecss | |
* https://github.com/FullHuman/purgecss-webpack-plugin | |
*/ |
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
/* global require */ | |
// requires chokidar, execa, cd-messenger, sass-lint and chalk | |
let chokidar = require('chokidar'); | |
let execa = require('execa'); | |
let msg = require('cd-messenger'); | |
let chalk = require('chalk'); | |
let srcFiles = './src/sass/*.scss'; |