generator-nokode 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,6 +6,7 @@ export default class NokodeGenerator extends BaseGenerator {
6
6
  }
7
7
 
8
8
  writing() {
9
+ this._writeKodlyConfigFiles();
9
10
  this._writeGradleFiles();
10
11
  this._writeJavaSrcFiles();
11
12
  this._writeConfigFiles();
@@ -13,6 +14,10 @@ export default class NokodeGenerator extends BaseGenerator {
13
14
  this._writeJavaTestFiles();
14
15
  }
15
16
 
17
+ _writeKodlyConfigFiles() {
18
+ this._writeFile('kodlyconfig.json');
19
+ }
20
+
16
21
  _writeGradleFiles() {
17
22
  this._writeDir('./gradle');
18
23
  this._writeFile('build.sh');
@@ -109,7 +114,7 @@ export default class NokodeGenerator extends BaseGenerator {
109
114
  _writeMainResourceFiles() {
110
115
  const srcPath = `03-main-resources`;
111
116
  const destPath = `src/main/resources`;
112
- ['application.properties', 'META-INF/additional-spring-configuration-metadata.json'].forEach((fileName) =>
117
+ ['application.properties', 'META-INF/additional-spring-configuration-metadata.json', 'messages.properties'].forEach((fileName) =>
113
118
  this._writeFileWithPaths(`${srcPath}/${fileName}`, `${destPath}/${fileName}`)
114
119
  );
115
120
  }
@@ -0,0 +1,59 @@
1
+ # Exception Messages
2
+ exception.unexpected=An unexpected error occurred
3
+ exception.login.failed=Login failed
4
+ exception.loginfailed.unregistered=User is not registered
5
+ exception.loginfailed.mismatch=Invalid credentials provided
6
+ exception.user.already.exists=User already exists
7
+ exception.user.invalid=User is invalid
8
+
9
+ # Success Messages
10
+ message.otp.sent.successfully=OTP sent successfully
11
+ message.password.reset.successfully=Password reset successfully
12
+
13
+ # OTP Message Content
14
+ message.otp.generated.subject=Your OTP Code
15
+ message.otp.generated.content=Your OTP code is: {0}
16
+
17
+ # Log Messages
18
+ log.error.updating.invalid.tokens=Error updating invalid tokens
19
+
20
+ # Base Exception Messages
21
+ exception.default.message=Something Bad Happened!
22
+ exception.generic.error=An unexpected error occurred
23
+
24
+ # Entity Related Exceptions
25
+ exception.entity.invalid=Entity is invalid!
26
+ exception.entity.not.found=Entity not found!
27
+ exception.entity.not.found.with.id={0} not found with the given id: {1}
28
+ exception.entity.not.found.criteria={0} not found with the given criteria
29
+ exception.entity.already.exists=Another {0} already exists with the slug: {1}
30
+ exception.entity.already.exists.with.field={0} already exists with {1}: {2}
31
+
32
+ # Authentication/Authorization Exceptions
33
+ exception.not.authenticated=Not authenticated!
34
+ exception.not.authorized=Not Authorized!
35
+ exception.auth.unable.to.verify.token=Unable to verify the token
36
+ exception.auth.invalid.token=Invalid Token provided!
37
+ exception.auth.token.expired=Token expired
38
+ exception.auth.user.not.found=User not found
39
+ exception.auth.user.not.found.with.id=User not found with the given id: {0}
40
+ exception.auth.unauthorized.action=You are not authorized to take this action
41
+ exception.auth.user.account.inactive=User account is not active
42
+ exception.auth.token.invalid=Token is invalid!
43
+ exception.auth.token.empty=Token is empty!
44
+
45
+ # Validation Exceptions
46
+ exception.validation.parameter.anomaly=Parameter anomaly. Field '{0}' must not be {1}
47
+ exception.validation.min.greater.than.max=min cannot be greater than max
48
+
49
+ # Rest Exception Handler Messages
50
+ exception.rest.request.parameter.anomaly=Request parameter anomaly. {0} {1}
51
+ exception.rest.request.body.empty.or.malformed=Request body is empty or malformed
52
+ exception.rest.invalid.enum.value=Invalid enum value: '{0}' for the field: '{1}'. The value must be one of: {2}
53
+ exception.rest.field.invalid=Request parameter anomaly. {0} is invalid. {1}
54
+
55
+ # Converter Exceptions
56
+ exception.converter.unable.to.convert=Unable to convert {0} to desired class type
57
+
58
+ # Application Constants
59
+ app.csv.import.message=CSV import message
@@ -0,0 +1,6 @@
1
+ {
2
+ "projectInitialized": true,
3
+ "projectName": "<%= appName %>",
4
+ "projectGroupId": "<%= groupId %>",
5
+ "projectPackageName": "<%= packageName %>"
6
+ }
@@ -41,7 +41,7 @@ export default class BaseGenerator extends Generator {
41
41
  }
42
42
 
43
43
  _destinationPrefix() {
44
- return this.configData['appNameSlug'];
44
+ return this.options['appName'];
45
45
  }
46
46
 
47
47
  _writeFileWithPaths(srcFilePath, destinationFilePath) {
@@ -1,10 +1,10 @@
1
1
  const constants = {
2
2
  JAVA_VERSION: '17',
3
- SPRING_BOOT_VERSION: '3.5.5',
3
+ SPRING_BOOT_VERSION: '3.5.6',
4
4
  SPRING_PLUGIN_VERSION: '1.1.7',
5
5
  SPRINGDOC_PLUGIN_VERSION: '1.9.0',
6
6
  SPRINGDOC_OPENAPI_VERSION: '2.8.13',
7
- SIXSPRINTS_AUTH_VERSION: '3.5.513',
7
+ SIXSPRINTS_AUTH_VERSION: '3.5.600',
8
8
  SIXSPRINTS_CLOUD_STORAGE_API_VERSION: '2.0.1',
9
9
  MAPSTRUCT_VERSION: '1.6.3',
10
10
  LOMBOK_MAPSTRUCT_BINDING_VERSION: '0.2.0',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-nokode",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "A Yeoman generator for creating Spring Boot applications with Nokode framework",
5
5
  "main": "index.js",
6
6
  "type": "module",