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 { writeFileSync, readFileSync, readdirSync, statSync } = require('fs'); | |
const { join } = require('path'); | |
function isExt(filepath, ext) { | |
return filepath.endsWith(ext); | |
} | |
function walkDir(dir, ext, callback) { | |
readdirSync(dir).forEach( f => { | |
let dirPath = join(dir, f); |
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 fs = require('fs'); | |
const path = require('path'); | |
const { exec } = require('child_process'); | |
const { parseFiles } = require('@nrwl/schematics/src/command-line/shared'); | |
const { affectedApps } = require('@nrwl/schematics/src/command-line/affected-apps'); | |
const { | |
readdir | |
} = require('fs-extra'); |
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 { readdir } = require('fs-extra'); | |
const { pexec } = require('./utils'); | |
const publishLibs = async (dirs) => { | |
for (let dir of dirs) { | |
const publishResult = await pexec(`npm publish @common/${dir}`); | |
} | |
} |
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 { getAffectedLibs, pexec } = require('./utils'); | |
const libs = getAffectedLibs(); | |
(async () => { | |
try { | |
await pexec(`node ./node_modules/.bin/jest ${libs.join(' ')}`) | |
} catch (e) { | |
console.error(e); | |
} | |
})(); |
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 { getAffectedLibs, pexec } = require("./utils"); | |
const buildLibs = async (apps, rest) => { | |
if (apps.length > 0) { | |
console.log("Building " + apps.join(', ')); | |
for (app of apps) { | |
await pexec("./node_modules/.bin/ng-packagr -p libs/" + app + "/package.json", { stdio: [0, 1, 2]}); | |
} | |
} | |
else { |
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 { getAffectedLibs } = require('./utils'); | |
const libs = getAffectedLibs(); | |
console.log(libs.join(' ')); |
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 | |
torrentid=$1 | |
torrentname=$2 | |
torrentpath=$3 | |
files=($( ls $torrentpath | grep "mp4\|mkv" )) | |
for i in ${files[@]}: | |
do |
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 { Observable } from 'rxjs'; | |
import { SampleService } from './sample.service'; | |
const mockAirports = { | |
DUB: { name: 'Dublin' }, | |
WRO: { name: 'Wroclaw' }, | |
MAD: { name: 'Madrid' } | |
}; | |
describe('Service: SampleService no TestBed', () => { |
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 { TestBed, inject } from '@angular/core/testing'; | |
import { | |
HttpClientTestingModule, | |
HttpTestingController | |
} from '@angular/common/http/testing'; | |
import { | |
HttpClient, | |
} from '@angular/common/http'; | |
import { SampleService } from './sample.service'; |
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
$('.contentTableList_myx .tab_myx a').slice(0, 10).toArray().forEach(el => $(el).trigger('click')); | |
$('#contentAction_delete_myx > div > a > span > button').trigger('click') |
NewerOlder