This file contains 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 generator = (model) => { | |
return class extends model { | |
static get QueryBuilder() { | |
return class SearchQueryBuilder extends objectionModel.QueryBuilder { |
This file contains 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
'use strict'; | |
const FastGlob = require('fast-glob'); | |
const LatestVersion = require('latest-version'); | |
const ReplaceInFile = require('replace-in-file'); | |
const Fs = require('fs'); | |
const scope = '@hapi/'; // Scope to add to modules | |
const replaceRequireGlobs = [`${ process.cwd() }/lib/**/*.js`, `${ process.cwd() }/lib/*.js`]; // List of globs or files to replace any requires in | |
const updateVersion = true; // True to update to the latest version of the dep when changing the scope |
This file contains 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 Hapi = require('hapi'); | |
const Joi = require('joi'); | |
const server = Hapi.server({ port : 4000 }); | |
server.route({ | |
method : 'GET', | |
path : '/', | |
handler : (request, h) => { |
This file contains 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
twig: | |
debug: "%kernel.debug%" | |
strict_variables: "%kernel.debug%" | |
form_themes: | |
- 'form/semantic_layout.html.twig' |