ПК в HolyJS
- 2018
- Про Apollo и GraphQL (видео), Frontend Conf (Москва, 05 октября)
- 2019
- 2020
ПК в HolyJS
const fs = require("fs"); | |
const path = require("path"); | |
const util = require("util"); | |
const { exec } = require("child_process"); | |
const yargs = require("yargs/yargs"); | |
const { hideBin } = require("yargs/helpers"); | |
const execAsync = util.promisify(exec); | |
function commonYargs() { | |
const argv = yargs(hideBin(process.argv)) |
import { createTextMaskInputElement } from 'text-mask-core'; | |
import emailMask from 'text-mask-addons/dist/emailMask'; | |
function inputHandler(el) { | |
el.textMaskInputElement.update(el.value); | |
el.dispatchEvent(new Event('input')); | |
} | |
function setupTextMask(outEl) { | |
const el = outEl; |
directive('ip', function () { | |
return { | |
require: 'ngModel', | |
link: function (scope, element, attr, ngModelCtrl) { | |
if(!ngModelCtrl) { | |
return; | |
} | |
ngModelCtrl.$parsers.push(function(val) { | |
if (angular.isUndefined(val)) { | |
var val = ''; |