-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: update outdated packages fix: do not check if log file exists before boot chore: update cli templates to reflect api changes
- Loading branch information
1 parent
4341f5c
commit 2512e85
Showing
44 changed files
with
562 additions
and
351 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 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 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 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
export default async function test() { | ||
// @flow | ||
|
||
/** | ||
* @private | ||
*/ | ||
export default async function test(): Promise<void> { | ||
console.log('Coming Soon!'); | ||
} |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/** | ||
* @private | ||
*/ | ||
export const VALID_DATABASES = [ | ||
'postgres', | ||
'sqlite', | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
// @flow | ||
import { classify } from 'inflection'; | ||
|
||
export default (name) => { | ||
import template from '../../template'; | ||
|
||
/** | ||
* @private | ||
*/ | ||
export default (name: string): string => { | ||
name = classify(name.replace('-', '_')); | ||
|
||
return ` | ||
import Lux from 'lux-framework'; | ||
return template` | ||
import { Application } from 'lux-framework'; | ||
class ${name} extends Lux { | ||
class ${name} extends Application { | ||
} | ||
} | ||
export default ${name}; | ||
`.substr(1).trim(); | ||
export default ${name}; | ||
`; | ||
}; |
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 |
---|---|---|
@@ -1,20 +1,23 @@ | ||
export default (name) => { | ||
return ` | ||
{ | ||
"plugins": [ | ||
"transform-es2015-modules-commonjs", | ||
"transform-decorators-legacy", | ||
"transform-class-properties", | ||
"transform-es2015-classes", | ||
"transform-es2015-destructuring", | ||
"transform-es2015-parameters", | ||
"transform-es2015-spread", | ||
"transform-decorators", | ||
"syntax-trailing-function-commas", | ||
"transform-object-rest-spread", | ||
"transform-async-to-generator", | ||
"transform-exponentiation-operator" | ||
] | ||
} | ||
`.substr(1).trim(); | ||
}; | ||
// @flow | ||
import template from '../../template'; | ||
|
||
/** | ||
* @private | ||
*/ | ||
export default (): string => template` | ||
{ | ||
"plugins": [ | ||
"external-helpers-2", | ||
"syntax-trailing-function-commas", | ||
"transform-decorators-legacy", | ||
"transform-class-properties", | ||
"transform-decorators", | ||
"transform-es2015-destructuring", | ||
"transform-es2015-parameters", | ||
"transform-es2015-spread", | ||
"transform-object-rest-spread", | ||
"transform-async-to-generator", | ||
"transform-exponentiation-operator" | ||
] | ||
} | ||
`; |
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 |
---|---|---|
@@ -1,15 +1,21 @@ | ||
export default (name, env) => { | ||
// @flow | ||
import template from '../../template'; | ||
|
||
/** | ||
* @private | ||
*/ | ||
export default (name: string, env: string): string => { | ||
const isProdENV = env === 'production'; | ||
let keyPrefix = `${name}`; | ||
|
||
if (!isProdENV) { | ||
keyPrefix += `::${env}`; | ||
} | ||
|
||
return ` | ||
export default { | ||
log: ${!isProdENV}, | ||
domain: 'http://localhost:4000' | ||
}; | ||
`.substr(1).trim(); | ||
return template` | ||
export default { | ||
log: ${!isProdENV}, | ||
domain: 'http://localhost:4000' | ||
}; | ||
`; | ||
}; |
Oops, something went wrong.