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 * as fs from 'fs-extra' | |
| import * as nodeID3 from 'node-id3' | |
| import * as path from 'path' | |
| const TARGET = 'au_kaiwa_1705_A' | |
| const filePaths = fs.readdirSync(TARGET) | |
| .map((file) => path.join(process.cwd(), TARGET, file)) | |
| .filter((filePath) => fs.existsSync(filePath)) |
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 { WindowWrapper } from './WindowWrapper'; | |
| let _namespace: Namespace | undefined; | |
| export class Namespace { | |
| private readonly key: string; | |
| static fromName(key: string): Namespace { | |
| if (!_namespace) { | |
| _namespace = new Namespace(key); |
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 root = path.resolve(); | |
| // Create jest.config.js | |
| const jestConfigJS = `module.exports = { | |
| preset: 'jest-preset-angular', | |
| roots: ['src'], | |
| testRegex: '\\\\.spec\\\\.ts$', |
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 * as jsyaml from 'js-yaml'; | |
| import * as path from 'path'; | |
| import * as fs from 'fs'; | |
| interface PropertyStructure { | |
| required: string[]; | |
| properties: Record<string, { type: string }>; | |
| } | |
| class Definition { |
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
| type ParamValue = string | number | boolean; | |
| export interface ParamsObject { | |
| [key: string]: ParamValue | ParamValue[]; | |
| } | |
| export class RouterWrapper { | |
| private _location: Location; | |
| private _URL: typeof URL; |
OlderNewer