-
-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge with fratzinger/nextgen (#2511)
- Loading branch information
Showing
70 changed files
with
1,130 additions
and
533 deletions.
There are no files selected for viewing
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { join } from 'path' | ||
import { VariablesAppBase } from '..'; | ||
import { GeneratorContext, RenderResult } from '../../../../src'; | ||
import { VariablesApp } from '../../new'; | ||
|
||
export function render (context: GeneratorContext<VariablesApp & VariablesAppBase>): RenderResult { | ||
const to = join(context.h.lib, 'index.ts'); | ||
const body = ` | ||
import { app } from './app.js'; | ||
import { logger } from './logger.js'; | ||
const port = app.get('port'); | ||
const host = app.get('host'); | ||
app.listen(port).then(() => { | ||
logger.info(\`Feathers app listening on http://\${host}:\${port}\`); | ||
}); | ||
` | ||
|
||
return { | ||
body, | ||
to | ||
} | ||
} |
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { join } from 'path' | ||
import { VariablesAppBase } from '..'; | ||
import { GeneratorContext, RenderResult } from '../../../../src'; | ||
import { VariablesApp } from '../../new'; | ||
|
||
export function render (context: GeneratorContext<VariablesApp & VariablesAppBase>): RenderResult { | ||
const to = join('package.json'); | ||
|
||
const pkg = { | ||
...context.h.pkg, | ||
type: 'module', | ||
scripts: { | ||
...context.h.pkg.scripts, | ||
start: `node ${context.h.lib}/`, | ||
dev: `nodemon ${context.h.lib}/`, | ||
test: 'mocha test/ --recursive --exit' | ||
} | ||
}; | ||
|
||
const body = JSON.stringify(pkg) | ||
|
||
return { | ||
body, | ||
to, | ||
force: true | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.