-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update husky and lint-staged to latest version * add post-checkout hook to automatically copy config/development.template.js to config/development.js if it does not already exist. * updates to development.template.js
- Loading branch information
Showing
5 changed files
with
570 additions
and
419 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
|
||
# Config Files | ||
/config/development.js | ||
/config/dev-sender.js | ||
/config/development-*.js | ||
|
||
# Packages | ||
|
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,4 +1,4 @@ | ||
if ! test -f config/development.js; then | ||
echo "config/developmnet.js not found. Creating from template" | ||
echo "config/developmnet.js not found. Creating from template..." | ||
cp config/development.template.js config/development.js | ||
fi |
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,33 +1,66 @@ | ||
'use strict'; | ||
|
||
/** | ||
* Copy this file to 'development.js' and selectively pull in first-level properties | ||
* Copy this file to 'development.js' and selectively pull in properties | ||
* to override the properties in 'default.js'. | ||
*/ | ||
module.exports = { | ||
mode: 'development', | ||
|
||
// Basic title and instance name | ||
app: { | ||
title: 'Node REST Starter (Development Settings)', | ||
clientUrl: 'http://localhost:4200/#', | ||
helpUrl: 'http://localhost:4200/#/help' | ||
}, | ||
|
||
/** | ||
* System Settings | ||
* Core System Settings | ||
*/ | ||
|
||
// MongoDB | ||
db: { | ||
admin: 'mongodb://127.0.0.1/node-rest-starter-dev' | ||
}, | ||
mongooseFailOnIndexOptionsConflict: false, | ||
|
||
/** | ||
* Environment Settings | ||
*/ | ||
|
||
// Configuration for outgoing mail server | ||
mailer: { | ||
provider: './src/app/core/email/providers/log-email.provider' | ||
}, | ||
|
||
/** | ||
* Development/debugging settings | ||
*/ | ||
|
||
mongooseLogging: false, | ||
expressLogging: false, | ||
exposeServerErrors: true, | ||
|
||
/** | ||
* Logging Settings | ||
*/ | ||
|
||
logger: { | ||
application: [ | ||
// Console logger | ||
{ | ||
stream: 'process.stdout', | ||
level: 'debug' | ||
} | ||
] | ||
}, | ||
|
||
/** | ||
* Not So Environment-Specific Settings | ||
* UI Settings | ||
*/ | ||
// Header/footer | ||
banner: { | ||
// The string to display | ||
html: 'DEVELOPMENT SETTINGS', | ||
|
||
// additional CSS class to apply to the banner | ||
style: 'default' | ||
} | ||
}; |
Oops, something went wrong.