Skip to content

Commit

Permalink
build: git hook updates
Browse files Browse the repository at this point in the history
* 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
jrassa committed Mar 5, 2024
1 parent 6fecf90 commit 2df266a
Show file tree
Hide file tree
Showing 5 changed files with 570 additions and 419 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

# Config Files
/config/development.js
/config/dev-sender.js
/config/development-*.js

# Packages
Expand Down
2 changes: 1 addition & 1 deletion .husky/post-checkout
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
45 changes: 39 additions & 6 deletions config/development.template.js
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'
}
};
Loading

0 comments on commit 2df266a

Please sign in to comment.