nodefony 7.0.0-beta.13 → 7.0.0-beta.14
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
## [7.0.0-beta.
|
|
1
|
+
## [7.0.0-beta.14](https://github.com/nodefony/nodefony/compare/v7.0.0-beta.13...v7.0.0-beta.14) (2023-01-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **sequelize:** add sync alter on cli || manage response prompt ([e4ce684](https://github.com/nodefony/nodefony/commit/e4ce684e2625d788c3d97d6088b37b2dabb3fdc1))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **build:** changelog ([c6f3db9](https://github.com/nodefony/nodefony/commit/c6f3db9965572bef6b4e0c557cf4ef871fa29d3a))
|
|
12
|
+
* **sequelize:** add users seeder ([ab36609](https://github.com/nodefony/nodefony/commit/ab3660978c6700cd90a9ea0cd98e5815dc616667))
|
|
13
|
+
* **sequelize:** hash user password on seed ([765e1c9](https://github.com/nodefony/nodefony/commit/765e1c9483a1ae3740fdd6720395ad453035dba7))
|
|
14
|
+
* **sequelize:** sync and seed on install ([7a8cd21](https://github.com/nodefony/nodefony/commit/7a8cd21a233d7af59b4b5cddecb07f298633c11e))
|
|
2
15
|
|
|
3
16
|
## [7.0.0-beta.13](https://github.com/nodefony/nodefony/compare/v7.0.0-beta.12...v7.0.0-beta.13) (2023-01-03)
|
|
4
17
|
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"validator": "13.7.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@babel/core": "7.20.
|
|
24
|
+
"@babel/core": "7.20.12",
|
|
25
25
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
26
26
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
27
27
|
"@babel/preset-env": "^7.20.2",
|
|
28
28
|
"@babel/preset-react": "7.18.6",
|
|
29
29
|
"@mapbox/node-pre-gyp": "1.0.10",
|
|
30
30
|
"@popperjs/core": "2.11.6",
|
|
31
|
-
"babel-loader": "
|
|
31
|
+
"babel-loader": "9.1.2",
|
|
32
32
|
"babel-register": "^6.26.0",
|
|
33
33
|
"bootstrap": "^5.2.3",
|
|
34
34
|
"buffer": "6.0.3",
|
|
@@ -65,7 +65,7 @@ module.exports = class sequlizeBuilder extends nodefony.Builder {
|
|
|
65
65
|
case "create":
|
|
66
66
|
return this.cli.setCommand("sequelize:create:database");
|
|
67
67
|
case "sync":
|
|
68
|
-
return this.
|
|
68
|
+
return this.sync()
|
|
69
69
|
case "migrate":
|
|
70
70
|
return this.cli.setCommand("sequelize:migrate:up");
|
|
71
71
|
case "migrateP":
|
|
@@ -80,4 +80,20 @@ module.exports = class sequlizeBuilder extends nodefony.Builder {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
sync(){
|
|
84
|
+
return this.cli.prompt([{
|
|
85
|
+
type: 'list',
|
|
86
|
+
name: 'sync',
|
|
87
|
+
message: `Synchronize type`,
|
|
88
|
+
default: 0,
|
|
89
|
+
pageSize: 3,
|
|
90
|
+
choices: ["sync", "alter", "force"],
|
|
91
|
+
filter: (value) => {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
}])
|
|
95
|
+
.then((response)=>{
|
|
96
|
+
return this.cli.setCommand("sequelize:sync", [response.sync]);
|
|
97
|
+
})
|
|
98
|
+
}
|
|
83
99
|
};
|
|
@@ -56,9 +56,10 @@ module.exports = nodefony.register.call(nodefony.commands, "nodefony", function(
|
|
|
56
56
|
switch (this.orm) {
|
|
57
57
|
case "sequelize":
|
|
58
58
|
return this.installSequelize(force, strategy || this.cli.kernel.getOrmStrategy())
|
|
59
|
-
|
|
59
|
+
/*.then(() => {
|
|
60
60
|
return this.generateSequelizeFixture();
|
|
61
|
-
})
|
|
61
|
+
})*/
|
|
62
|
+
.catch((e) => {
|
|
62
63
|
throw e;
|
|
63
64
|
});
|
|
64
65
|
case "mongoose":
|
|
@@ -92,12 +93,20 @@ module.exports = nodefony.register.call(nodefony.commands, "nodefony", function(
|
|
|
92
93
|
if (!force && strategy === "migrate") {
|
|
93
94
|
task = command.getTask("migrate");
|
|
94
95
|
await task.up();
|
|
96
|
+
await task.status();
|
|
97
|
+
task = command.getTask("sync");
|
|
98
|
+
await task.entities(force);
|
|
99
|
+
task = command.getTask("seedeers");
|
|
100
|
+
await task.up();
|
|
95
101
|
return await task.status();
|
|
96
102
|
}
|
|
97
103
|
// with sysnc
|
|
98
104
|
if (strategy === "sync") {
|
|
99
105
|
task = command.getTask("sync");
|
|
100
|
-
|
|
106
|
+
await task.entities(force);
|
|
107
|
+
task = command.getTask("seedeers");
|
|
108
|
+
await task.up();
|
|
109
|
+
return await task.status();
|
|
101
110
|
}
|
|
102
111
|
} catch (e) {
|
|
103
112
|
this.log(e, "ERROR");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodefony",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.14",
|
|
4
4
|
"main": "autoloader.es6",
|
|
5
5
|
"description": "Nodefony Framework Core",
|
|
6
6
|
"contributors": [],
|
|
@@ -32,22 +32,22 @@
|
|
|
32
32
|
"nodefony": "bin/nodefony"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/core": "7.20.
|
|
35
|
+
"@babel/core": "7.20.12",
|
|
36
36
|
"@babel/parser": "7.20.7",
|
|
37
37
|
"@graphql-tools/merge": "8.3.14",
|
|
38
38
|
"@graphql-tools/schema": "9.0.12",
|
|
39
39
|
"@graphql-tools/utils": "9.1.3",
|
|
40
|
-
"@nodefony/elastic-bundle": "7.0.0-beta.
|
|
41
|
-
"@nodefony/framework-bundle": "7.0.0-beta.
|
|
42
|
-
"@nodefony/http-bundle": "7.0.0-beta.
|
|
43
|
-
"@nodefony/mail-bundle": "7.0.0-beta.
|
|
44
|
-
"@nodefony/mongoose-bundle": "7.0.0-beta.
|
|
45
|
-
"@nodefony/monitoring-bundle": "7.0.0-beta.
|
|
46
|
-
"@nodefony/realtime-bundle": "7.0.0-beta.
|
|
47
|
-
"@nodefony/redis-bundle": "7.0.0-beta.
|
|
48
|
-
"@nodefony/security-bundle": "7.0.0-beta.
|
|
49
|
-
"@nodefony/sequelize-bundle": "7.0.0-beta.
|
|
50
|
-
"@nodefony/unittests-bundle": "7.0.0-beta.
|
|
40
|
+
"@nodefony/elastic-bundle": "7.0.0-beta.14",
|
|
41
|
+
"@nodefony/framework-bundle": "7.0.0-beta.14",
|
|
42
|
+
"@nodefony/http-bundle": "7.0.0-beta.14",
|
|
43
|
+
"@nodefony/mail-bundle": "7.0.0-beta.14",
|
|
44
|
+
"@nodefony/mongoose-bundle": "7.0.0-beta.14",
|
|
45
|
+
"@nodefony/monitoring-bundle": "7.0.0-beta.14",
|
|
46
|
+
"@nodefony/realtime-bundle": "7.0.0-beta.14",
|
|
47
|
+
"@nodefony/redis-bundle": "7.0.0-beta.14",
|
|
48
|
+
"@nodefony/security-bundle": "7.0.0-beta.14",
|
|
49
|
+
"@nodefony/sequelize-bundle": "7.0.0-beta.14",
|
|
50
|
+
"@nodefony/unittests-bundle": "7.0.0-beta.14",
|
|
51
51
|
"@vue/cli": "5.0.8",
|
|
52
52
|
"@vue/cli-service": "5.0.8",
|
|
53
53
|
"@vue/cli-service-global": "4.5.19",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"yarn": "1.22.19"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"babel-loader": "
|
|
91
|
+
"babel-loader": "9.1.2",
|
|
92
92
|
"babel-polyfill": "^6.26.0",
|
|
93
93
|
"webpack-cli": "5.0.1",
|
|
94
94
|
"webpack-merge": "^5.8.0"
|