create-sip 1.3.4 → 1.3.6
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/manager.js +25 -0
- package/package.json +2 -17
- package/expressapi/.env +0 -10
- package/expressapi/.gitignore +0 -4
package/manager.js
CHANGED
|
@@ -73,6 +73,31 @@ const genExpressApi = async (target) => {
|
|
|
73
73
|
copyDir(`${dir}/expressapi`, target);
|
|
74
74
|
updatePackageName(`${target}/package.json`, target);
|
|
75
75
|
|
|
76
|
+
const envContent = `
|
|
77
|
+
APP_PORT=8000
|
|
78
|
+
APP_KEY=
|
|
79
|
+
APP_LOG=console.log
|
|
80
|
+
|
|
81
|
+
DB_DIALECT=sqlite
|
|
82
|
+
DB_HOST=127.0.0.1
|
|
83
|
+
DB_NAME=
|
|
84
|
+
DB_USER=
|
|
85
|
+
DB_PASS=
|
|
86
|
+
DB_STORAGE=database.sqlite
|
|
87
|
+
`
|
|
88
|
+
|
|
89
|
+
await fse.writeFile(`${target}/.env`, envContent, 'utf8');
|
|
90
|
+
|
|
91
|
+
const gitignoreContent = `
|
|
92
|
+
/node_modules
|
|
93
|
+
/access.log
|
|
94
|
+
/.env
|
|
95
|
+
/database.sqlite
|
|
96
|
+
|
|
97
|
+
`
|
|
98
|
+
|
|
99
|
+
await fse.writeFile(`${target}/.gitignore`, gitignoreContent, 'utf8');
|
|
100
|
+
|
|
76
101
|
console.log('ExpressJS REST API skeleton created');
|
|
77
102
|
console.log('Read docs/user_doc.md');
|
|
78
103
|
console.log('Run next commands:');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-sip",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-sip": "create-sip.js"
|
|
@@ -24,20 +24,5 @@
|
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
26
|
"url": "https://github.com/andteki/create-sip.git"
|
|
27
|
-
}
|
|
28
|
-
"files": [
|
|
29
|
-
"create-sip.js",
|
|
30
|
-
"manager.js",
|
|
31
|
-
"utils.js",
|
|
32
|
-
"expressapi",
|
|
33
|
-
"expressapi/.env",
|
|
34
|
-
"expressapi/.gitignore",
|
|
35
|
-
"javascript",
|
|
36
|
-
"mockapi",
|
|
37
|
-
"webbootstrap",
|
|
38
|
-
"webesbuildjs",
|
|
39
|
-
"webesbuildts",
|
|
40
|
-
"webnodejs",
|
|
41
|
-
"webpage"
|
|
42
|
-
]
|
|
27
|
+
}
|
|
43
28
|
}
|
package/expressapi/.env
DELETED
package/expressapi/.gitignore
DELETED