Skip to content
This repository was archived by the owner on May 25, 2020. It is now read-only.

Commit 4fce401

Browse files
committed
Squashed commit of the following:
commit 2953b3871d91f9500d5a90fc8fa716b6c697354c Author: Amit Jindal <[email protected]> Date: Tue Sep 5 00:41:03 2017 +0530 Cleaning up ID annotations so that this works with H2 database. Signed-off-by: Amit Jindal <[email protected]> commit 1ae159c9b044283c2fcb5064f3a3782f05bcde7f Author: Amit Jindal <[email protected]> Date: Mon Sep 4 23:29:48 2017 +0530 Migrating to latest module structure and latest Jhipster Signed-off-by: Amit Jindal <[email protected]> commit aa688274536836f44b1b862a1237d78bd5ae3391 Author: Amit Jindal <[email protected]> Date: Sun Sep 3 12:57:59 2017 +0530 Committing converted files as is. Signed-off-by: Amit Jindal <[email protected]> Signed-off-by: Amit Jindal <[email protected]>
1 parent 14354ff commit 4fce401

File tree

17 files changed

+616
-5258
lines changed

17 files changed

+616
-5258
lines changed

.editorconfig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1+
# editorconfig.org
12
root = true
23

34
[*]
45
indent_style = space
5-
indent_size = 2
6+
indent_size = 4
7+
end_of_line = lf
68
charset = utf-8
79
trim_trailing_whitespace = true
810
insert_final_newline = true
911

1012
[*.md]
1113
trim_trailing_whitespace = false
14+
15+
[{package,bower}.json]
16+
indent_style = space
17+
indent_size = 2

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
coverage
2+
generators/**/templates
3+
node_modules
4+
travis

.eslintrc.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"es6": true
5+
},
6+
"extends": ["airbnb-base"],
7+
"rules": {
8+
"indent": [2, 4],
9+
"linebreak-style": 0,
10+
"eol-last": 2,
11+
"quotes": [2, "single"],
12+
"semi": [2, "always"],
13+
"eqeqeq": [2, "smart"],
14+
"no-use-before-define": [2, "nofunc"],
15+
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
16+
"no-multi-str": 2,
17+
"no-irregular-whitespace": 2,
18+
"comma-dangle": "off",
19+
"max-len": "off",
20+
"func-names": "off",
21+
"class-methods-use-this": "off",
22+
"no-underscore-dangle": "off",
23+
"no-plusplus": "off",
24+
25+
"no-multi-assign": "off",
26+
"no-param-reassign": "off",
27+
"no-shadow": "off"
28+
}
29+
}

.gitattributes

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1-
* text=auto
1+
# All text files should have the "lf" (Unix) line endings
2+
* text eol=lf
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.java text
7+
*.js text
8+
*.css text
9+
*.html text
10+
11+
# Denote all files that are truly binary and should not be modified.
12+
*.png binary
13+
*.jpg binary
14+
*.jar binary
15+
*.pdf binary
16+
*.eot binary
17+
*.ttf binary
18+
*.gzip binary
19+
*.gz binary
20+
*.ai binary
21+
*.eps binary

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ node_modules
22
coverage
33
.idea
44
*.iml
5+
*.ipr
6+
*.iws
57
atlassian-ide-plugin.xml
68
/.project
79
test/temp/
810
npm-debug.log
11+
*debug.log*
12+
.vscode

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ os:
22
- linux
33
language: node_js
44
node_js:
5-
- "4.5.0"
5+
- "6.11.0"
66
before_install:
77
- npm install -g npm
88
install:
99
- npm install
1010
- npm link
1111
- npm test
12+
script:
13+
- gulp eslint
14+
- gulp test

.yo-rc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"generator-jhipster-module": {
3+
"promptValues": {
4+
"githubName": "amitjindal",
5+
"authorName": "Amit Jindal",
6+
"authorEmail": "[email protected]",
7+
"authorUrl": "https://www.aquevix.com"
8+
}
9+
}
10+
}

README.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,39 +14,44 @@ As this is a [JHipster](http://jhipster.github.io/) module, we expect you have J
1414

1515
# Installation
1616

17+
## With Yarn
18+
1719
To install this module:
1820

1921
```bash
20-
npm install -g generator-jhipster-postgresuuid-converter
22+
yarn global add generator-jhipster-postgresuuid-converter
2123
```
2224

2325
To update this module:
26+
2427
```bash
25-
npm update -g generator-jhipster-postgresuuid-converter
28+
yarn global upgrade generator-jhipster-postgresuuid-converter
2629
```
2730

28-
# Usage
31+
## With NPM
2932

30-
No other steps really needed. The generator should hook automatically into your entity generator and convert the code to UUID.
31-
However there are important considerations to be noted.
33+
To install this module:
3234

33-
WARNING: This is a work in progress. Please do not use it in production or use at your own risk.
35+
```bash
36+
npm install -g generator-jhipster-postgresuuid-converter
37+
```
3438

35-
## Important Considerations
39+
To update this module:
3640

37-
- We assume that Long needs to be converted to UUID so it will convert all Long type parameters to UUID. Please be careful.
38-
- Some tests may not generate completely. That needs to be fixed.
39-
- Elastic Search won't work. Need a fix for that.
40-
- USE AT YOUR OWN RISK. I cannot really cover all cases so if something breaks, sorry.
41+
```bash
42+
npm update -g generator-jhipster-postgresuuid-converter
43+
```
44+
45+
# Usage
4146

4247
# License
4348

44-
MIT © [Amit Jindal](https://amitjindal.me)
49+
MIT © [Amit Jindal](https://www.aquevix.com)
4550

4651

4752
[npm-image]: https://img.shields.io/npm/v/generator-jhipster-postgresuuid-converter.svg
4853
[npm-url]: https://npmjs.org/package/generator-jhipster-postgresuuid-converter
4954
[travis-image]: https://travis-ci.org/amitjindal/generator-jhipster-postgresuuid-converter.svg?branch=master
5055
[travis-url]: https://travis-ci.org/amitjindal/generator-jhipster-postgresuuid-converter
5156
[daviddm-image]: https://david-dm.org/amitjindal/generator-jhipster-postgresuuid-converter.svg?theme=shields.io
52-
[daviddm-url]: https://david-dm.org/amitjindal/generator-jhipster-module
57+
[daviddm-url]: https://david-dm.org/amitjindal/generator-jhipster-postgresuuid-converter

0 commit comments

Comments
 (0)