generator-verdaccio-plugin 3.0.1 → 4.0.0-next.0
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/README.md +1 -1
- package/build/app/index.js +133 -0
- package/build/app/index.js.map +1 -0
- package/build/app/templates/typescript/auth/_package.json +34 -0
- package/{generators/app/templates/typescript/auth/src/index.ts → build/app/templates/typescript/auth/src/index.js} +21 -20
- package/build/app/templates/typescript/auth/src/index.js.map +1 -0
- package/build/app/templates/typescript/auth/types/index.js +6 -0
- package/build/app/templates/typescript/auth/types/index.js.map +1 -0
- package/{generators/app/templates/javascript → build/app/templates/typescript}/common/README.md +0 -0
- package/{generators/app/templates/javascript → build/app/templates/typescript}/common/editorconfig +0 -0
- package/{generators/app/templates/javascript → build/app/templates/typescript}/common/eslintignore +0 -0
- package/build/app/templates/typescript/common/eslintrc +12 -0
- package/{generators/app/templates/javascript → build/app/templates/typescript}/common/gitignore +0 -0
- package/build/app/templates/typescript/common/index.js +14 -0
- package/build/app/templates/typescript/common/index.js.map +1 -0
- package/build/app/templates/typescript/common/jest.config.js +4 -0
- package/{generators/app/templates/javascript → build/app/templates/typescript}/common/npmignore +1 -2
- package/{generators → build}/app/templates/typescript/common/tsconfig.json +2 -1
- package/build/app/templates/typescript/middleware/_package.json +35 -0
- package/build/app/templates/typescript/middleware/src/index.js +36 -0
- package/build/app/templates/typescript/middleware/src/index.js.map +1 -0
- package/build/app/templates/typescript/middleware/types/index.js +6 -0
- package/build/app/templates/typescript/middleware/types/index.js.map +1 -0
- package/build/app/templates/typescript/storage/_package.json +35 -0
- package/{generators/app/templates/javascript → build/app/templates/typescript}/storage/src/PackageStorage.js +35 -20
- package/build/app/templates/typescript/storage/src/PackageStorage.js.map +1 -0
- package/build/app/templates/typescript/storage/src/index.js +16 -0
- package/build/app/templates/typescript/storage/src/index.js.map +1 -0
- package/{generators/app/templates/javascript → build/app/templates/typescript}/storage/src/plugin.js +41 -18
- package/build/app/templates/typescript/storage/src/plugin.js.map +1 -0
- package/build/app/templates/typescript/storage/types/index.js +6 -0
- package/build/app/templates/typescript/storage/types/index.js.map +1 -0
- package/package.json +81 -39
- package/CHANGELOG.md +0 -106
- package/generators/app/index.d.ts +0 -11
- package/generators/app/index.js +0 -134
- package/generators/app/index.ts +0 -215
- package/generators/app/templates/.eslintrc +0 -5
- package/generators/app/templates/javascript/.eslintrc +0 -5
- package/generators/app/templates/javascript/auth/_package.json +0 -33
- package/generators/app/templates/javascript/auth/src/index.js +0 -35
- package/generators/app/templates/javascript/common/babelrc +0 -3
- package/generators/app/templates/javascript/common/eslintrc +0 -3
- package/generators/app/templates/javascript/common/index.js +0 -1
- package/generators/app/templates/javascript/common/jest.config.js +0 -10
- package/generators/app/templates/javascript/common/travis.yml +0 -6
- package/generators/app/templates/javascript/middleware/_package.json +0 -34
- package/generators/app/templates/javascript/middleware/src/index.js +0 -8
- package/generators/app/templates/javascript/storage/_package.json +0 -33
- package/generators/app/templates/javascript/storage/src/index.js +0 -1
- package/generators/app/templates/typescript/auth/_package.json +0 -40
- package/generators/app/templates/typescript/auth/types/index.ts +0 -5
- package/generators/app/templates/typescript/common/README.md +0 -22
- package/generators/app/templates/typescript/common/babelrc +0 -3
- package/generators/app/templates/typescript/common/editorconfig +0 -12
- package/generators/app/templates/typescript/common/eslintignore +0 -2
- package/generators/app/templates/typescript/common/eslintrc +0 -3
- package/generators/app/templates/typescript/common/gitignore +0 -3
- package/generators/app/templates/typescript/common/index.ts +0 -3
- package/generators/app/templates/typescript/common/jest.config.js +0 -10
- package/generators/app/templates/typescript/common/npmignore +0 -4
- package/generators/app/templates/typescript/common/travis.yml +0 -6
- package/generators/app/templates/typescript/middleware/_package.json +0 -41
- package/generators/app/templates/typescript/middleware/src/index.ts +0 -35
- package/generators/app/templates/typescript/middleware/types/index.ts +0 -5
- package/generators/app/templates/typescript/storage/_package.json +0 -40
- package/generators/app/templates/typescript/storage/src/PackageStorage.ts +0 -183
- package/generators/app/templates/typescript/storage/src/index.ts +0 -1
- package/generators/app/templates/typescript/storage/src/plugin.ts +0 -140
- package/generators/app/templates/typescript/storage/types/index.ts +0 -5
- package/generators/app/types.d.ts +0 -10
- package/generators/app/types.js +0 -2
- package/generators/app/types.ts +0 -10
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import { getNotFound, getConflict, getInternalError } from '@verdaccio/commons-api';
|
|
1
|
+
"use strict";
|
|
3
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
4
7
|
|
|
5
|
-
|
|
6
|
-
constructor(
|
|
8
|
+
class StoragePluginManage {
|
|
9
|
+
constructor(config, packageName, logger) {
|
|
7
10
|
this.logger = logger;
|
|
8
11
|
this.packageName = packageName;
|
|
9
12
|
this.config = config;
|
|
10
13
|
}
|
|
11
|
-
|
|
12
14
|
/**
|
|
13
15
|
* Handle a metadata update and
|
|
14
16
|
* @param name
|
|
@@ -17,6 +19,8 @@ export default class StoragePluginManage {
|
|
|
17
19
|
* @param transformPackage
|
|
18
20
|
* @param onEnd
|
|
19
21
|
*/
|
|
22
|
+
|
|
23
|
+
|
|
20
24
|
updatePackage(name, updateHandler, onWrite, transformPackage, onEnd) {
|
|
21
25
|
/**
|
|
22
26
|
* Example of implementation:
|
|
@@ -31,14 +35,15 @@ export default class StoragePluginManage {
|
|
|
31
35
|
});
|
|
32
36
|
*/
|
|
33
37
|
}
|
|
34
|
-
|
|
35
38
|
/**
|
|
36
39
|
* Delete a specific file (tarball or package.json)
|
|
37
40
|
* @param fileName
|
|
38
41
|
* @param callback
|
|
39
42
|
*/
|
|
43
|
+
|
|
44
|
+
|
|
40
45
|
deletePackage(fileName, callback) {
|
|
41
|
-
|
|
46
|
+
/**
|
|
42
47
|
* Example of implementation:
|
|
43
48
|
this.customStore.delete(fileName, (err) => {
|
|
44
49
|
if (err) {
|
|
@@ -49,12 +54,13 @@ export default class StoragePluginManage {
|
|
|
49
54
|
})
|
|
50
55
|
*/
|
|
51
56
|
}
|
|
52
|
-
|
|
53
57
|
/**
|
|
54
58
|
* Delete a package (folder, path)
|
|
55
59
|
* This happens after all versions ar tarballs have been removed.
|
|
56
60
|
* @param callback
|
|
57
61
|
*/
|
|
62
|
+
|
|
63
|
+
|
|
58
64
|
removePackage(callback) {
|
|
59
65
|
/**
|
|
60
66
|
* Example of implementation:
|
|
@@ -67,14 +73,15 @@ export default class StoragePluginManage {
|
|
|
67
73
|
})
|
|
68
74
|
*/
|
|
69
75
|
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
76
|
+
/**
|
|
72
77
|
* Publish a new package (version).
|
|
73
78
|
* @param name
|
|
74
79
|
* @param data
|
|
75
80
|
* @param callback
|
|
76
81
|
*/
|
|
77
|
-
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
createPackage(name, data, callback) {
|
|
78
85
|
/**
|
|
79
86
|
* Example of implementation:
|
|
80
87
|
* this.customStore.create(name, data).then(err => {
|
|
@@ -88,7 +95,6 @@ export default class StoragePluginManage {
|
|
|
88
95
|
})
|
|
89
96
|
*/
|
|
90
97
|
}
|
|
91
|
-
|
|
92
98
|
/**
|
|
93
99
|
* Perform write anobject to the storage.
|
|
94
100
|
* Similar to updatePackage but without middleware handlers
|
|
@@ -96,8 +102,10 @@ export default class StoragePluginManage {
|
|
|
96
102
|
* @param pkg package metadata
|
|
97
103
|
* @param callback
|
|
98
104
|
*/
|
|
99
|
-
|
|
100
|
-
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
savePackage(pkgName, pkg, callback) {
|
|
108
|
+
/*
|
|
101
109
|
Example of implementation:
|
|
102
110
|
this.cumstomStore.write(pkgName, pkgName).then(data => {
|
|
103
111
|
callback(null);
|
|
@@ -106,13 +114,14 @@ export default class StoragePluginManage {
|
|
|
106
114
|
})
|
|
107
115
|
*/
|
|
108
116
|
}
|
|
109
|
-
|
|
110
117
|
/**
|
|
111
118
|
* Read a package from storage
|
|
112
119
|
* @param pkgName package name
|
|
113
120
|
* @param callback
|
|
114
121
|
*/
|
|
115
|
-
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
readPackage(pkgName, callback) {
|
|
116
125
|
/**
|
|
117
126
|
* Example of implementation:
|
|
118
127
|
* this.customStorage.read(name, (err, pkg: Package) => {
|
|
@@ -126,23 +135,25 @@ export default class StoragePluginManage {
|
|
|
126
135
|
});
|
|
127
136
|
*/
|
|
128
137
|
}
|
|
129
|
-
|
|
130
138
|
/**
|
|
131
139
|
* Create writtable stream (write a tarball)
|
|
132
140
|
* @param name
|
|
133
141
|
*/
|
|
142
|
+
|
|
143
|
+
|
|
134
144
|
writeTarball(name) {
|
|
135
|
-
|
|
145
|
+
/**
|
|
136
146
|
* Example of implementation:
|
|
137
147
|
* const stream = new UploadTarball({});
|
|
138
148
|
return stream;
|
|
139
149
|
*/
|
|
140
150
|
}
|
|
141
|
-
|
|
142
151
|
/**
|
|
143
152
|
* Create a readable stream (read a from a tarball)
|
|
144
153
|
* @param name
|
|
145
154
|
*/
|
|
155
|
+
|
|
156
|
+
|
|
146
157
|
readTarball(name) {
|
|
147
158
|
/**
|
|
148
159
|
* Example of implementation:
|
|
@@ -150,4 +161,8 @@ export default class StoragePluginManage {
|
|
|
150
161
|
return stream;
|
|
151
162
|
*/
|
|
152
163
|
}
|
|
153
|
-
|
|
164
|
+
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
exports.default = StoragePluginManage;
|
|
168
|
+
//# sourceMappingURL=PackageStorage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PackageStorage.js","names":["StoragePluginManage","constructor","config","packageName","logger","updatePackage","name","updateHandler","onWrite","transformPackage","onEnd","deletePackage","fileName","callback","removePackage","createPackage","data","savePackage","pkgName","pkg","readPackage","writeTarball","readTarball"],"sources":["../../../../../../generators/app/templates/typescript/storage/src/PackageStorage.ts"],"sourcesContent":["import {\n Callback,\n Logger,\n ILocalPackageManager,\n StorageUpdateCallback,\n PackageTransformer,\n StorageWriteCallback,\n CallbackAction,\n Package,\n ReadPackageCallback,\n} from '@verdaccio/types';\nimport {UploadTarball, ReadTarball} from '@verdaccio/streams';\nimport {getNotFound, getConflict, getInternalError} from '@verdaccio/commons-api';\n\nimport {CustomConfig} from '../types/index';\nexport default class StoragePluginManage implements ILocalPackageManager {\n public logger: Logger;\n public packageName: string;\n public config: CustomConfig;\n\n public constructor(\n config: CustomConfig,\n packageName: string,\n logger: Logger,\n ) {\n this.logger = logger;\n this.packageName = packageName;\n this.config = config;\n }\n\n /**\n * Handle a metadata update and\n * @param name\n * @param updateHandler\n * @param onWrite\n * @param transformPackage\n * @param onEnd\n */\n public updatePackage(\n name: string,\n updateHandler: StorageUpdateCallback,\n onWrite: StorageWriteCallback,\n transformPackage: PackageTransformer,\n onEnd: CallbackAction,\n ): void {\n /**\n * Example of implementation:\n this.customStore.get().then((pkg: Package) => {\n updateHandler(pkg, function onUpdateFinish(err) {\n if (err) {\n onEnd(err);\n } else {\n onWrite(name, pkg, onEnd);\n }\n })\n });\n */\n }\n\n /**\n * Delete a specific file (tarball or package.json)\n * @param fileName\n * @param callback\n */\n public deletePackage(fileName: string, callback: CallbackAction): void {\n /**\n * Example of implementation:\n this.customStore.delete(fileName, (err) => {\n if (err) {\n callback(err);\n } else {\n callback(null);\n }\n })\n */\n }\n\n /**\n * Delete a package (folder, path)\n * This happens after all versions ar tarballs have been removed.\n * @param callback\n */\n public removePackage(callback: CallbackAction): void {\n /**\n * Example of implementation:\n this.customStore.removePackage((err) => {\n if (err) {\n callback(err);\n } else {\n callback(null);\n }\n })\n */\n }\n\n /**\n * Publish a new package (version).\n * @param name\n * @param data\n * @param callback\n */\n public createPackage(\n name: string,\n data: Package,\n callback: CallbackAction,\n ): void {\n /**\n * Example of implementation:\n * this.customStore.create(name, data).then(err => {\n if (err.notFound) {\n callback(getNotFound());\n } else if (err.alreadyExist) {\n callback(getConflict());\n } else {\n callback(null);\n }\n })\n */\n }\n\n /**\n * Perform write anobject to the storage.\n * Similar to updatePackage but without middleware handlers\n * @param pkgName package name\n * @param pkg package metadata\n * @param callback\n */\n public savePackage(pkgName: string, pkg: Package, callback: CallbackAction): void {\n /*\n Example of implementation:\n this.cumstomStore.write(pkgName, pkgName).then(data => {\n callback(null);\n }).catch(err => {\n callback(getInternalError(err.message));\n })\n */\n }\n\n /**\n * Read a package from storage\n * @param pkgName package name\n * @param callback\n */\n public readPackage(pkgName: string, callback: ReadPackageCallback): void {\n /**\n * Example of implementation:\n * this.customStorage.read(name, (err, pkg: Package) => {\n if (err.fooError) {\n callback(getInternalError(err))\n } else if (err.barError) {\n callback(getNotFound());\n } else {\n callback(null, pkg)\n }\n });\n */\n }\n\n /**\n * Create writtable stream (write a tarball)\n * @param name\n */\n public writeTarball(name: string): UploadTarball {\n /**\n * Example of implementation:\n * const stream = new UploadTarball({});\n return stream;\n */\n\n }\n\n /**\n * Create a readable stream (read a from a tarball)\n * @param name\n */\n public readTarball(name: string): ReadTarball {\n /**\n * Example of implementation:\n * const stream = new ReadTarball({});\n return stream;\n */\n }\n}\n"],"mappings":";;;;;;;AAee,MAAMA,mBAAN,CAA0D;EAKhEC,WAAW,CACdC,MADc,EAEdC,WAFc,EAGdC,MAHc,EAIhB;IACA,KAAKA,MAAL,GAAcA,MAAd;IACA,KAAKD,WAAL,GAAmBA,WAAnB;IACA,KAAKD,MAAL,GAAcA,MAAd;EACD;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;;EACSG,aAAa,CAChBC,IADgB,EAEhBC,aAFgB,EAGhBC,OAHgB,EAIhBC,gBAJgB,EAKhBC,KALgB,EAMZ;IACN;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACG;EAED;AACF;AACA;AACA;AACA;;;EACSC,aAAa,CAACC,QAAD,EAAmBC,QAAnB,EAAmD;IACrE;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACG;EAED;AACF;AACA;AACA;AACA;;;EACSC,aAAa,CAACD,QAAD,EAAiC;IACnD;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACG;EAED;AACF;AACA;AACA;AACA;AACA;;;EACSE,aAAa,CAChBT,IADgB,EAEhBU,IAFgB,EAGhBH,QAHgB,EAIZ;IACN;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACG;EAED;AACF;AACA;AACA;AACA;AACA;AACA;;;EACSI,WAAW,CAACC,OAAD,EAAkBC,GAAlB,EAAgCN,QAAhC,EAAgE;IAChF;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;EACG;EAED;AACF;AACA;AACA;AACA;;;EACSO,WAAW,CAACF,OAAD,EAAkBL,QAAlB,EAAuD;IACvE;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACG;EAED;AACF;AACA;AACA;;;EACSQ,YAAY,CAACf,IAAD,EAA8B;IAC/C;AACJ;AACA;AACA;AACA;EAEG;EAED;AACF;AACA;AACA;;;EACSgB,WAAW,CAAChB,IAAD,EAA4B;IAC5C;AACJ;AACA;AACA;AACA;EACG;;AAtKsE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "default", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _plugin.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _plugin = _interopRequireDefault(require("./plugin"));
|
|
14
|
+
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../generators/app/templates/typescript/storage/src/index.ts"],"sourcesContent":["export {default} from './plugin';\n"],"mappings":";;;;;;;;;;;;AAAA"}
|
package/{generators/app/templates/javascript → build/app/templates/typescript}/storage/src/plugin.js
RENAMED
|
@@ -1,32 +1,53 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _PackageStorage = _interopRequireDefault(require("./PackageStorage"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
11
|
|
|
3
12
|
class VerdaccioStoragePlugin {
|
|
4
13
|
constructor(config, options) {
|
|
5
14
|
this.config = config;
|
|
6
15
|
this.logger = options.logger;
|
|
7
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
|
|
8
21
|
|
|
9
22
|
async getSecret() {
|
|
10
|
-
|
|
23
|
+
/**
|
|
11
24
|
* return await resolveSecret();
|
|
12
25
|
*/
|
|
13
26
|
}
|
|
14
27
|
|
|
15
28
|
async setSecret(secret) {
|
|
16
|
-
|
|
29
|
+
/**
|
|
17
30
|
* return await getYourSecret();
|
|
18
31
|
*/
|
|
19
32
|
}
|
|
20
|
-
|
|
21
33
|
/**
|
|
22
34
|
* Add a new element.
|
|
23
35
|
* @param {*} name
|
|
24
36
|
* @return {Error|*}
|
|
25
37
|
*/
|
|
26
|
-
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
add(name, callback) {}
|
|
41
|
+
/**
|
|
42
|
+
* Perform a search in your registry
|
|
43
|
+
* @param onPackage
|
|
44
|
+
* @param onEnd
|
|
45
|
+
* @param validateName
|
|
46
|
+
*/
|
|
47
|
+
|
|
27
48
|
|
|
28
49
|
search(onPackage, onEnd, validateName) {
|
|
29
|
-
|
|
50
|
+
/**
|
|
30
51
|
* Example of implementation:
|
|
31
52
|
* try {
|
|
32
53
|
* someApi.getPackages((items) => {
|
|
@@ -42,52 +63,54 @@ class VerdaccioStoragePlugin {
|
|
|
42
63
|
* });
|
|
43
64
|
*/
|
|
44
65
|
}
|
|
45
|
-
|
|
46
66
|
/**
|
|
47
67
|
* Remove an element from the database.
|
|
48
68
|
* @param {*} name
|
|
49
69
|
* @return {Error|*}
|
|
50
70
|
*/
|
|
71
|
+
|
|
72
|
+
|
|
51
73
|
remove(name, callback) {
|
|
52
|
-
|
|
74
|
+
/**
|
|
53
75
|
* Example of implementation
|
|
54
76
|
database.getPackage(name, (item, err) => {
|
|
55
77
|
if (err) {
|
|
56
78
|
callback(getInternalError('your own message here'));
|
|
57
79
|
}
|
|
58
|
-
|
|
59
|
-
// if all goes well we return nothing
|
|
80
|
+
// if all goes well we return nothing
|
|
60
81
|
callback(null);
|
|
61
82
|
}
|
|
62
83
|
*/
|
|
63
84
|
}
|
|
64
|
-
|
|
65
85
|
/**
|
|
66
86
|
* Return all database elements.
|
|
67
87
|
* @return {Array}
|
|
68
88
|
*/
|
|
89
|
+
|
|
90
|
+
|
|
69
91
|
get(callback) {
|
|
70
|
-
|
|
92
|
+
/*
|
|
71
93
|
Example of implementation
|
|
72
94
|
database.getAll((allItems, err) => {
|
|
73
95
|
callback(err, allItems);
|
|
74
96
|
})
|
|
75
97
|
*/
|
|
76
98
|
}
|
|
77
|
-
|
|
78
99
|
/**
|
|
79
100
|
* Create an instance of the `PackageStorage`
|
|
80
101
|
* @param packageInfo
|
|
81
102
|
*/
|
|
103
|
+
|
|
104
|
+
|
|
82
105
|
getPackageStorage(packageInfo) {
|
|
83
|
-
return new
|
|
106
|
+
return new _PackageStorage.default(this.config, packageInfo, this.logger);
|
|
84
107
|
}
|
|
85
|
-
|
|
86
108
|
/**
|
|
87
109
|
* All methods for npm token support
|
|
88
110
|
* more info here https://github.com/verdaccio/verdaccio/pull/1427
|
|
89
111
|
*/
|
|
90
112
|
|
|
113
|
+
|
|
91
114
|
saveToken(token) {
|
|
92
115
|
throw new Error('Method not implemented.');
|
|
93
116
|
}
|
|
@@ -99,8 +122,8 @@ class VerdaccioStoragePlugin {
|
|
|
99
122
|
readTokens(filter) {
|
|
100
123
|
throw new Error('Method not implemented.');
|
|
101
124
|
}
|
|
125
|
+
|
|
102
126
|
}
|
|
103
127
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
};
|
|
128
|
+
exports.default = VerdaccioStoragePlugin;
|
|
129
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","names":["VerdaccioStoragePlugin","constructor","config","options","logger","getSecret","setSecret","secret","add","name","callback","search","onPackage","onEnd","validateName","remove","get","getPackageStorage","packageInfo","PackageStorage","saveToken","token","Error","deleteToken","user","tokenKey","readTokens","filter"],"sources":["../../../../../../generators/app/templates/typescript/storage/src/plugin.ts"],"sourcesContent":["import {\n Logger,\n Callback,\n IPluginStorage,\n PluginOptions,\n IPackageStorage,\n TokenFilter,\n Token,\n Config,\n onEndSearchPackage,\n onSearchPackage,\n onValidatePackage,\n} from '@verdaccio/types';\nimport {getInternalError} from '@verdaccio/commons-api';\n\nimport {CustomConfig} from '../types/index';\n\nimport PackageStorage from './PackageStorage';\n\nexport default class VerdaccioStoragePlugin implements IPluginStorage<CustomConfig> {\n config: CustomConfig & Config;\n version?: string;\n public logger: Logger;\n public constructor(\n config: CustomConfig,\n options: PluginOptions<CustomConfig>,\n ) {\n this.config = config;\n this.logger = options.logger;\n }\n\n /**\n *\n */\n public async getSecret(): Promise<string> {\n /**\n * return await resolveSecret();\n */\n }\n\n public async setSecret(secret: string): Promise<any> {\n /**\n * return await getYourSecret();\n */\n }\n\n /**\n * Add a new element.\n * @param {*} name\n * @return {Error|*}\n */\n public add(name: string, callback: Callback): void {\n\n }\n\n /**\n * Perform a search in your registry\n * @param onPackage\n * @param onEnd\n * @param validateName\n */\n public search(\n onPackage: onSearchPackage,\n onEnd: onEndSearchPackage,\n validateName: onValidatePackage,\n ): void {\n /**\n * Example of implementation:\n * try {\n * someApi.getPackages((items) => {\n * items.map(() => {\n * if (validateName(item.name)) {\n * onPackage(item);\n * }\n * });\n * onEnd();\n * } catch(err) {\n * onEnd(err);\n * }\n * });\n */\n }\n\n /**\n * Remove an element from the database.\n * @param {*} name\n * @return {Error|*}\n */\n public remove(name: string, callback: Callback): void {\n /**\n * Example of implementation\n database.getPackage(name, (item, err) => {\n if (err) {\n callback(getInternalError('your own message here'));\n }\n\n // if all goes well we return nothing\n callback(null);\n }\n */\n }\n\n /**\n * Return all database elements.\n * @return {Array}\n */\n public get(callback: Callback): void {\n /*\n Example of implementation\n database.getAll((allItems, err) => {\n callback(err, allItems);\n })\n */\n }\n\n /**\n * Create an instance of the `PackageStorage`\n * @param packageInfo\n */\n public getPackageStorage(packageInfo: string): IPackageStorage {\n return new PackageStorage(this.config, packageInfo, this.logger);\n }\n\n /**\n * All methods for npm token support\n * more info here https://github.com/verdaccio/verdaccio/pull/1427\n */\n\n public saveToken(token: Token): Promise<any> {\n throw new Error('Method not implemented.');\n }\n\n public deleteToken(user: string, tokenKey: string): Promise<any> {\n throw new Error('Method not implemented.');\n }\n\n public readTokens(filter: TokenFilter): Promise<Token[]> {\n throw new Error('Method not implemented.');\n }\n}\n"],"mappings":";;;;;;;AAiBA;;;;AAEe,MAAMA,sBAAN,CAAqE;EAI3EC,WAAW,CACdC,MADc,EAEdC,OAFc,EAGhB;IACA,KAAKD,MAAL,GAAcA,MAAd;IACA,KAAKE,MAAL,GAAcD,OAAO,CAACC,MAAtB;EACD;EAED;AACF;AACA;;;EACwB,MAATC,SAAS,GAAoB;IACxC;AACJ;AACA;EACG;;EAEqB,MAATC,SAAS,CAACC,MAAD,EAA+B;IACnD;AACJ;AACA;EACG;EAED;AACF;AACA;AACA;AACA;;;EACSC,GAAG,CAACC,IAAD,EAAeC,QAAf,EAAyC,CAElD;EAED;AACF;AACA;AACA;AACA;AACA;;;EACSC,MAAM,CACTC,SADS,EAETC,KAFS,EAGTC,YAHS,EAIL;IACN;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACG;EAED;AACF;AACA;AACA;AACA;;;EACSC,MAAM,CAACN,IAAD,EAAeC,QAAf,EAAyC;IACpD;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAEG;EAED;AACF;AACA;AACA;;;EACSM,GAAG,CAACN,QAAD,EAA2B;IACnC;AACJ;AACA;AACA;AACA;AACA;EACG;EAED;AACF;AACA;AACA;;;EACSO,iBAAiB,CAACC,WAAD,EAAuC;IAC7D,OAAO,IAAIC,uBAAJ,CAAmB,KAAKjB,MAAxB,EAAgCgB,WAAhC,EAA6C,KAAKd,MAAlD,CAAP;EACD;EAED;AACF;AACA;AACA;;;EAESgB,SAAS,CAACC,KAAD,EAA6B;IAC3C,MAAM,IAAIC,KAAJ,CAAU,yBAAV,CAAN;EACD;;EAEMC,WAAW,CAACC,IAAD,EAAeC,QAAf,EAA+C;IAC/D,MAAM,IAAIH,KAAJ,CAAU,yBAAV,CAAN;EACD;;EAEMI,UAAU,CAACC,MAAD,EAAwC;IACvD,MAAM,IAAIL,KAAJ,CAAU,yBAAV,CAAN;EACD;;AAvHiF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../../generators/app/templates/typescript/storage/types/index.ts"],"sourcesContent":["import {Config} from '@verdaccio/types';\n\nexport interface CustomConfig extends Config {\n foo: string;\n}\n"],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-verdaccio-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-next.0",
|
|
4
4
|
"description": "plugin generator for verdaccio",
|
|
5
5
|
"homepage": "https://github.com/verdaccio",
|
|
6
6
|
"author": {
|
|
@@ -9,57 +9,99 @@
|
|
|
9
9
|
"url": "https://github.com/verdaccio/generator-verdaccio-plugin"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
|
-
"
|
|
12
|
+
"build"
|
|
13
13
|
],
|
|
14
|
-
"main": "
|
|
14
|
+
"main": "build/app/index.js",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"verdaccio-plugin",
|
|
17
17
|
"yeoman-generator"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"chalk": "
|
|
21
|
-
"lodash": "
|
|
22
|
-
"yeoman-
|
|
23
|
-
"
|
|
20
|
+
"chalk": "4.1.2",
|
|
21
|
+
"lodash": "4.17.21",
|
|
22
|
+
"yeoman-environment": "3.9.1",
|
|
23
|
+
"yeoman-generator": "5.6.1",
|
|
24
|
+
"yosay": "2.0.2"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"typescript": "
|
|
50
|
-
"
|
|
51
|
-
"
|
|
27
|
+
"@babel/cli": "7.16.8",
|
|
28
|
+
"@babel/core": "7.16.12",
|
|
29
|
+
"@babel/node": "7.16.8",
|
|
30
|
+
"@changesets/changelog-github": "0.4.2",
|
|
31
|
+
"@changesets/cli": "2.15.0",
|
|
32
|
+
"@changesets/get-dependents-graph": "1.2.4",
|
|
33
|
+
"@babel/plugin-proposal-class-properties": "7.16.7",
|
|
34
|
+
"@babel/plugin-proposal-decorators": "7.16.7",
|
|
35
|
+
"@babel/plugin-proposal-export-namespace-from": "7.16.7",
|
|
36
|
+
"@babel/plugin-proposal-function-sent": "7.16.7",
|
|
37
|
+
"@babel/plugin-proposal-json-strings": "7.16.7",
|
|
38
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7",
|
|
39
|
+
"@babel/plugin-proposal-numeric-separator": "7.16.7",
|
|
40
|
+
"@babel/plugin-proposal-object-rest-spread": "7.16.7",
|
|
41
|
+
"@babel/plugin-proposal-optional-chaining": "7.16.7",
|
|
42
|
+
"@babel/plugin-proposal-throw-expressions": "7.16.7",
|
|
43
|
+
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
44
|
+
"@babel/plugin-syntax-import-meta": "7.10.4",
|
|
45
|
+
"@babel/plugin-transform-async-to-generator": "7.16.8",
|
|
46
|
+
"@babel/plugin-transform-classes": "7.16.7",
|
|
47
|
+
"@babel/plugin-transform-runtime": "7.16.10",
|
|
48
|
+
"@babel/preset-env": "7.16.11",
|
|
49
|
+
"@babel/preset-react": "7.16.7",
|
|
50
|
+
"@babel/preset-typescript": "7.16.7",
|
|
51
|
+
"@babel/register": "7.16.9",
|
|
52
|
+
"@babel/runtime": "7.16.7",
|
|
53
|
+
"@trivago/prettier-plugin-sort-imports": "3.2.0",
|
|
54
|
+
"@types/chalk": "2.2.0",
|
|
55
|
+
"@types/express": "4.17.13",
|
|
56
|
+
"@types/lodash": "4.14.182",
|
|
57
|
+
"@types/mocha": "9.1.1",
|
|
58
|
+
"@types/node": "17.0.40",
|
|
59
|
+
"@types/yeoman-environment": "2.10.7",
|
|
60
|
+
"@types/yeoman-generator": "5.2.10",
|
|
61
|
+
"@types/yeoman-test": "4.0.3",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "5.25.0",
|
|
63
|
+
"@typescript-eslint/parser": "5.25.0",
|
|
64
|
+
"@verdaccio/types": "10.4.2",
|
|
65
|
+
"eslint": "8.17.0",
|
|
66
|
+
"eslint-config-google": "0.14.0",
|
|
67
|
+
"npm-run-all": "4.1.5",
|
|
68
|
+
"eslint-config-prettier": "8.5.0",
|
|
69
|
+
"eslint-plugin-babel": "5.3.1",
|
|
70
|
+
"eslint-plugin-import": "2.26.0",
|
|
71
|
+
"eslint-plugin-jest": "26.2.2",
|
|
72
|
+
"eslint-plugin-prettier": "4.0.0",
|
|
73
|
+
"eslint-plugin-simple-import-sort": "7.0.0",
|
|
74
|
+
"express": "4.18.1",
|
|
75
|
+
"jest": "28.1.1",
|
|
76
|
+
"prettier": "2.6.2",
|
|
77
|
+
"ts-jest": "^28.0.4",
|
|
78
|
+
"typescript": "4.7.3",
|
|
79
|
+
"yeoman-assert": "3.1.1",
|
|
80
|
+
"yeoman-test": "6.3.0"
|
|
81
|
+
},
|
|
82
|
+
"engines": {
|
|
83
|
+
"node": ">=12"
|
|
52
84
|
},
|
|
53
85
|
"repository": {
|
|
54
86
|
"type": "git",
|
|
55
87
|
"url": "git://github.com/verdaccio/generator-verdaccio-plugin"
|
|
56
88
|
},
|
|
89
|
+
"license": "MIT",
|
|
57
90
|
"scripts": {
|
|
91
|
+
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,yml,yaml,md}\"",
|
|
92
|
+
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,yml,yaml,md}\"",
|
|
58
93
|
"release": "standard-version -a -s",
|
|
59
|
-
"
|
|
60
|
-
"build": "
|
|
61
|
-
"
|
|
62
|
-
"
|
|
94
|
+
"type-check": "tsc --noEmit -p tsconfig.build.json",
|
|
95
|
+
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json",
|
|
96
|
+
"build": "babel generators/ --out-dir build/ --copy-files --extensions \".ts,.tsx\" --source-maps",
|
|
97
|
+
"test": "jest",
|
|
98
|
+
"lint": "eslint --max-warnings 0 \"**/*.{js,ts}\"",
|
|
99
|
+
"changeset": "changeset",
|
|
100
|
+
"changeset:check": "changeset status --since-master",
|
|
101
|
+
"ci:version": "run-s ci:version:changeset ci:version:install",
|
|
102
|
+
"ci:version:install": "pnpm install --frozen-lockfile=false",
|
|
103
|
+
"ci:version:changeset": "changeset version",
|
|
104
|
+
"ci:publish": "changeset publish"
|
|
63
105
|
},
|
|
64
|
-
"
|
|
65
|
-
}
|
|
106
|
+
"readme": "# Verdaccio plugin generator\n\n[![NPM version][npm-image]][npm-url]\n[![Dependency Status][daviddm-image]][daviddm-url]\n[](https://dependabot.com)\n[](https://david-dm.org/verdaccio/generator-verdaccio-plugin/master?type=dev)\n[](./LICENSE)\n\n[](https://opencollective.com/verdaccio)\n[](https://stackshare.io/verdaccio)\n[](http://chat.verdaccio.org/)\n[](https://twitter.com/verdaccio_npm)\n\nVerdaccio plugin generator based in [Yeoman](http://yeoman.io) aims to help to scaffold plugins development\n\n### Maintainers\n\n* [Anix](https://github.com/anikethsaha)\n* [Juan Picado](https://github.com/juanpicado)\n\n## Installation\n\nFirst, install [Yeoman](http://yeoman.io) and generator-verdaccio-plugin using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).\n\n```bash\nnpm install -g yo\nnpm install -g generator-verdaccio-plugin\n```\n\nThen generate your new project:\n\n```bash\nyo verdaccio-plugin\n```\n\n## Plugin Types Supported\n\n- Authentication\n- Storage\n- Middleware\n\n\n## License\n\nMIT © [Juan Picado <@jotadeveloper>]()\n\n[npm-image]: https://badge.fury.io/js/generator-verdaccio-plugin.svg\n[npm-url]: https://npmjs.org/package/generator-verdaccio-plugin\n[daviddm-image]: https://david-dm.org/verdaccio/generator-verdaccio-plugin.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/verdaccio/generator-verdaccio-plugin\n"
|
|
107
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
-
|
|
5
|
-
### [3.0.1](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v3.0.0...v3.0.1) (2020-12-23)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Bug Fixes
|
|
9
|
-
|
|
10
|
-
* release workflow ([4fb266f](https://github.com/verdaccio/generator-verdaccio-plugin/commit/4fb266f296d4a0b7aa841ff3ef81de0a5be1e927))
|
|
11
|
-
|
|
12
|
-
## [3.0.0](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v2.0.1...v3.0.0) (2020-12-23)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Bug Fixes
|
|
16
|
-
|
|
17
|
-
* remove node 10 support ([6c0604e](https://github.com/verdaccio/generator-verdaccio-plugin/commit/6c0604ef68007e19ad4eb42f6f74072d1c7270c4))
|
|
18
|
-
|
|
19
|
-
### [2.0.1](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v2.0.0...v2.0.1) (2020-12-23)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
### Bug Fixes
|
|
23
|
-
|
|
24
|
-
* package.json & yarn.lock to reduce vulnerabilities ([#36](https://github.com/verdaccio/generator-verdaccio-plugin/issues/36)) ([097db60](https://github.com/verdaccio/generator-verdaccio-plugin/commit/097db607a3540b06bba261ede7e0db6982fb665f))
|
|
25
|
-
* update dependencies ([3fd5a14](https://github.com/verdaccio/generator-verdaccio-plugin/commit/3fd5a14cde0e46dce01bc582e6e77d3e67a91cad))
|
|
26
|
-
|
|
27
|
-
## [2.0.0](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.5...v2.0.0) (2020-07-17)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
### ⚠ BREAKING CHANGES
|
|
31
|
-
|
|
32
|
-
* Use Nodev10 minimum
|
|
33
|
-
|
|
34
|
-
* chore: fix linting
|
|
35
|
-
|
|
36
|
-
### Features
|
|
37
|
-
|
|
38
|
-
* update dependencies and remove Node v8 ([#27](https://github.com/verdaccio/generator-verdaccio-plugin/issues/27)) ([397e58e](https://github.com/verdaccio/generator-verdaccio-plugin/commit/397e58e93f748cd0662bd2ec337c80b42f70a021))
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Bug Fixes
|
|
42
|
-
|
|
43
|
-
* storage template ([#35](https://github.com/verdaccio/generator-verdaccio-plugin/issues/35)) ([e5ef0ef](https://github.com/verdaccio/generator-verdaccio-plugin/commit/e5ef0efdc0278ba17e4008581c014aa77a61f42c))
|
|
44
|
-
* update dependencies ([#34](https://github.com/verdaccio/generator-verdaccio-plugin/issues/34)) ([ffc6421](https://github.com/verdaccio/generator-verdaccio-plugin/commit/ffc642117aa2c071473325d6db210d18b09865b0))
|
|
45
|
-
* upgrade yeoman-generator from 4.3.0 to 4.4.0 ([#22](https://github.com/verdaccio/generator-verdaccio-plugin/issues/22)) ([e3a9a3a](https://github.com/verdaccio/generator-verdaccio-plugin/commit/e3a9a3a6be98d6eabaf740369819baa977999d7b))
|
|
46
|
-
* upgrade yeoman-generator from 4.4.0 to 4.5.0 ([#23](https://github.com/verdaccio/generator-verdaccio-plugin/issues/23)) ([6f3cffa](https://github.com/verdaccio/generator-verdaccio-plugin/commit/6f3cffab99ef5eb0e6bc2bcfdd5ab118f9c83022))
|
|
47
|
-
|
|
48
|
-
### [1.1.5](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.4...v1.1.5) (2019-12-26)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
### Bug Fixes
|
|
52
|
-
|
|
53
|
-
* plugin type is not part of the name ([#21](https://github.com/verdaccio/generator-verdaccio-plugin/issues/21)) ([8e69fa6](https://github.com/verdaccio/generator-verdaccio-plugin/commit/8e69fa66070d53f0bf7961931f71d07743eb6652))
|
|
54
|
-
|
|
55
|
-
### [1.1.4](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.3...v1.1.4) (2019-12-26)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### Bug Fixes
|
|
59
|
-
|
|
60
|
-
* plugin suffix ([#19](https://github.com/verdaccio/generator-verdaccio-plugin/issues/19)) ([d7d0c02](https://github.com/verdaccio/generator-verdaccio-plugin/commit/d7d0c02e689ac904109ebe7bc66114acdae14f84))
|
|
61
|
-
* remove suffix ([#20](https://github.com/verdaccio/generator-verdaccio-plugin/issues/20)) ([28df490](https://github.com/verdaccio/generator-verdaccio-plugin/commit/28df490347ad46e9593955d764c24850aeaefffc))
|
|
62
|
-
|
|
63
|
-
### [1.1.3](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.2...v1.1.3) (2019-12-25)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
### Bug Fixes
|
|
67
|
-
|
|
68
|
-
* refactor storage template ([#18](https://github.com/verdaccio/generator-verdaccio-plugin/issues/18)) ([19b609a](https://github.com/verdaccio/generator-verdaccio-plugin/commit/19b609aebf582bd308f0ae9324add859a873c475))
|
|
69
|
-
|
|
70
|
-
### [1.1.2](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.2-6...v1.1.2) (2019-12-23)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
### Bug Fixes
|
|
74
|
-
|
|
75
|
-
* auth minor bugs ([#17](https://github.com/verdaccio/generator-verdaccio-plugin/issues/17)) ([f948088](https://github.com/verdaccio/generator-verdaccio-plugin/commit/f9480884dcc67dcc05913989b366ec0905d1f41a))
|
|
76
|
-
|
|
77
|
-
### [1.1.2-6](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.2-5...v1.1.2-6) (2019-12-23)
|
|
78
|
-
|
|
79
|
-
### [1.1.2-5](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.2-4...v1.1.2-5) (2019-12-23)
|
|
80
|
-
|
|
81
|
-
### [1.1.2-4](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.2-3...v1.1.2-4) (2019-12-23)
|
|
82
|
-
|
|
83
|
-
### [1.1.2-3](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.2-2...v1.1.2-3) (2019-12-23)
|
|
84
|
-
|
|
85
|
-
### [1.1.2-2](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.2-1...v1.1.2-2) (2019-12-23)
|
|
86
|
-
|
|
87
|
-
### [1.1.2-1](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.2-0...v1.1.2-1) (2019-12-23)
|
|
88
|
-
|
|
89
|
-
### [1.1.2-0](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.1...v1.1.2-0) (2019-12-23)
|
|
90
|
-
|
|
91
|
-
### [1.1.1](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.1.0...v1.1.1) (2019-12-23)
|
|
92
|
-
|
|
93
|
-
## [1.1.0](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v1.0.7...v1.1.0) (2019-12-23)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Features
|
|
97
|
-
|
|
98
|
-
* improve auth example ([#16](https://github.com/verdaccio/generator-verdaccio-plugin/issues/16)) ([4d7a2da](https://github.com/verdaccio/generator-verdaccio-plugin/commit/4d7a2da934121c5e2026f9d5c55d9bfa84b4bfc5))
|
|
99
|
-
|
|
100
|
-
### [1.0.7](https://github.com/verdaccio/generator-verdaccio-plugin/compare/v0.1.0...v1.0.7) (2019-12-22)
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
### Bug Fixes
|
|
104
|
-
|
|
105
|
-
* issue on generate template ([#15](https://github.com/verdaccio/generator-verdaccio-plugin/issues/15)) ([61eeae8](https://github.com/verdaccio/generator-verdaccio-plugin/commit/61eeae886b7e99a115055097cefd6ccc6ad17381))
|
|
106
|
-
* major file handling fixes ([0c9e890](https://github.com/verdaccio/generator-verdaccio-plugin/commit/0c9e890f021e6598b0105cdd82e93993aea1e4e1))
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import Generator from "yeoman-generator";
|
|
2
|
-
export default class VerdaccioPluginGenerator extends Generator {
|
|
3
|
-
private props;
|
|
4
|
-
private projectName;
|
|
5
|
-
private destinationPathName;
|
|
6
|
-
constructor(args: any, opts: any);
|
|
7
|
-
prompting(): Promise<void>;
|
|
8
|
-
packageJSON(): void;
|
|
9
|
-
writing(): void;
|
|
10
|
-
install(): void;
|
|
11
|
-
}
|