Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: git hook updates #282

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 4 additions & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
if ! test -f config/development.js; then
echo "config/development.js not found. Creating from template..."
cp config/development.template.js config/development.js
fi
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
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
Loading