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
CREATE TABLE favorites ( | |
id SERIAL PRIMARY KEY, | |
createdAt TEXT NOT NULL | |
); | |
CREATE TABLE listings ( | |
id SERIAL PRIMARY KEY, | |
createdAt TEXT NOT NULL, | |
title VARCHAR(255) NOT NULL, | |
slug VARCHAR(255) NOT NULL, | |
bathrooms TEXT NOT NULL, |
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
"mi-schematic-paisa": { | |
"description": "Un schematic muyyy rico.", | |
"schema": "./mi-schematic-paisa/schema.json", | |
"factory": "./mi-schematic-paisa/index#miSchematicPaisa", | |
"aliases": ["rico"] | |
}, |
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 chained = chain([branchAndMerge(chain([mergeWith(source)]))]); | |
return chained(tree, _context); |
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 source = apply(url('./files'), [ | |
forEach((file: FileEntry) => { | |
let dir = dirname(file.path); | |
let pathName = basename(dir); | |
_options.folderName = pathName; | |
_context.logger.info(`Estamos leyendo en árbol virtual -> ${pathName}`); | |
return file; | |
}), | |
template({ | |
...strings, |
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 { Injectable } from '@angular/core'; | |
import { HttpClient } from '@angular/common/http'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class <%= classify(name) %>Service { | |
constructor(private http: HttpClient) { } | |
} |
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 source = apply(url('./files'), [ | |
template({ | |
...strings, | |
..._options, | |
}), | |
move(path) | |
]); |
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 tsConfigBuffer = tree.read(filePath); | |
if (!tsConfigBuffer) { | |
return; | |
} |
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
tree.getDir('/').visit(filePath => { | |
if (filePath.includes('node_modules')) { | |
return; | |
} | |
)} |
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
// ...node_modules/@angular-devkit/schematics/src/tree/interface.d.ts | |
const hasEntries = tree.getDir(normalize(`${staticPath}${_options.path}`)); |
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
// ...node_modules/@angular-devkit/schematics/src/tree/interface.d.ts | |
const hasEntries = tree.getDir(normalize(`${staticPath}${_options.path}`)); |
NewerOlder