@tehw0lf/wordlist-generator 0.0.4 → 0.0.8
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/LICENSE +2 -2
- package/package.json +1 -4
- package/schematics/collection.json +8 -3
- package/schematics/ng-add/index.js +13 -26
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/index.spec.js +3 -6
- package/schematics/ng-add/index.spec.js.map +1 -1
- package/schematics/ng-add/setup.d.ts +3 -0
- package/schematics/ng-add/setup.js +48 -0
- package/schematics/ng-add/setup.js.map +1 -0
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2021 Robert Weyres
|
|
3
|
+
Copyright (c) 2021,2022 Robert Weyres
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tehw0lf/wordlist-generator",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/tehw0lf/tehwol.fi.git",
|
|
6
6
|
"repository": {
|
|
@@ -23,9 +23,6 @@
|
|
|
23
23
|
"tslib": "^2.2.0"
|
|
24
24
|
},
|
|
25
25
|
"schematics": "./schematics/collection.json",
|
|
26
|
-
"ng-add": {
|
|
27
|
-
"save": "dependencies"
|
|
28
|
-
},
|
|
29
26
|
"module": "fesm2015/tehw0lf-wordlist-generator.mjs",
|
|
30
27
|
"es2020": "fesm2020/tehw0lf-wordlist-generator.mjs",
|
|
31
28
|
"esm2020": "esm2020/tehw0lf-wordlist-generator.mjs",
|
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
3
|
"schematics": {
|
|
4
4
|
"ng-add": {
|
|
5
|
-
"description": "Add
|
|
5
|
+
"description": "Add wordlist-generator library to the project if material is installed.",
|
|
6
6
|
"factory": "./ng-add/index",
|
|
7
|
-
"schema": "./ng-add/schema.json"
|
|
8
|
-
|
|
7
|
+
"schema": "./ng-add/schema.json"
|
|
8
|
+
},
|
|
9
|
+
"ng-add-setup": {
|
|
10
|
+
"description": "Install dependencies and add the library to the project",
|
|
11
|
+
"private": true,
|
|
12
|
+
"factory": "./ng-add/setup",
|
|
13
|
+
"schema": "./ng-add/schema.json"
|
|
9
14
|
}
|
|
10
15
|
}
|
|
11
16
|
}
|
|
@@ -9,46 +9,33 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const
|
|
13
|
-
const schematics_2 = require("@angular/cdk/schematics");
|
|
12
|
+
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
14
13
|
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
15
14
|
const workspace_models_1 = require("@schematics/angular/utility/workspace-models");
|
|
16
15
|
const package_config_1 = require("./package-config");
|
|
17
|
-
const wordlistGeneratorModuleName = 'WordlistGeneratorModule';
|
|
18
|
-
const wordlistGeneratorPackageName = '@tehw0lf/wordlist-generator';
|
|
19
16
|
function default_1(options) {
|
|
20
17
|
return (host, context) => __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const workspace = yield (0, workspace_1.getWorkspace)(host);
|
|
22
|
-
const project = (0, schematics_2.getProjectFromWorkspace)(workspace, options.project);
|
|
23
|
-
const coreVersion = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/core');
|
|
24
18
|
const materialVersion = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/material');
|
|
25
|
-
const
|
|
19
|
+
const workspace = yield (0, workspace_1.getWorkspace)(host);
|
|
20
|
+
const defaultProject = workspace.extensions.defaultProject;
|
|
21
|
+
const project = options.project
|
|
22
|
+
? workspace.projects.get(options.project)
|
|
23
|
+
: workspace.projects.get(defaultProject);
|
|
24
|
+
if (!project) {
|
|
25
|
+
context.logger.error(`No project specified and can not find default project ${project}`);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
26
28
|
if (project.extensions.projectType !== workspace_models_1.ProjectType.Application) {
|
|
27
29
|
context.logger.error('This library needs to be added to an application project');
|
|
28
30
|
return;
|
|
29
31
|
}
|
|
30
|
-
if (!materialVersion
|
|
31
|
-
context.logger
|
|
32
|
-
.error(`@angular/material ${angularDependencyVersion} not found.
|
|
32
|
+
if (!materialVersion) {
|
|
33
|
+
context.logger.error(`@angular/material not found.
|
|
33
34
|
Please run 'ng add @angular/material' first`);
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
return (0, schematics_1.chain)([addWordlistGeneratorModule(options)]);
|
|
38
|
-
}
|
|
39
|
-
context.logger.warn('Please specify an application project');
|
|
40
|
-
return;
|
|
37
|
+
context.addTask(new tasks_1.RunSchematicTask('ng-add-setup', options));
|
|
41
38
|
});
|
|
42
39
|
}
|
|
43
40
|
exports.default = default_1;
|
|
44
|
-
function addWordlistGeneratorModule(options) {
|
|
45
|
-
return (host) => __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
const workspace = yield (0, workspace_1.getWorkspace)(host);
|
|
47
|
-
const project = (0, schematics_2.getProjectFromWorkspace)(workspace, options.project);
|
|
48
|
-
const appModulePath = (0, schematics_2.getAppModulePath)(host, (0, schematics_2.getProjectMainFile)(project));
|
|
49
|
-
if (!(0, schematics_2.hasNgModuleImport)(host, appModulePath, wordlistGeneratorModuleName)) {
|
|
50
|
-
(0, schematics_2.addModuleImportToRootModule)(host, wordlistGeneratorModuleName, wordlistGeneratorPackageName, project);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,4DAAoE;AACpE,qEAAqE;AACrE,mFAA2E;AAE3E,qDAAoE;AAGpE,mBAAyB,OAAe;IACtC,OAAO,CAAO,IAAU,EAAE,OAAyB,EAAE,EAAE;QACrD,MAAM,eAAe,GAAG,IAAA,iDAAgC,EACtD,IAAI,EACJ,mBAAmB,CACpB,CAAC;QACF,MAAM,SAAS,GAAG,MAAM,IAAA,wBAAY,EAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,cAAc,GAAG,SAAS,CAAC,UAAU,CAAC,cAAwB,CAAC;QAErE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO;YAC7B,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC;YACzC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAE3C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,yDAAyD,OAAO,EAAE,CACnE,CAAC;YACF,OAAO;SACR;QAED,IAAI,OAAO,CAAC,UAAU,CAAC,WAAW,KAAK,8BAAW,CAAC,WAAW,EAAE;YAC9D,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,0DAA0D,CAC3D,CAAC;YACF,OAAO;SACR;QAED,IAAI,CAAC,eAAe,EAAE;YACpB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;mDACwB,CAAC,CAAC;YAC/C,OAAO;SACR;QAED,OAAO,CAAC,OAAO,CAAC,IAAI,wBAAgB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC;IACjE,CAAC,CAAA,CAAC;AACJ,CAAC;AAnCD,4BAmCC"}
|
|
@@ -13,8 +13,7 @@ const testing_1 = require("@angular-devkit/schematics/testing");
|
|
|
13
13
|
const file_content_1 = require("../testing/file-content");
|
|
14
14
|
const test_app_1 = require("../testing/test-app");
|
|
15
15
|
const test_library_1 = require("../testing/test-library");
|
|
16
|
-
|
|
17
|
-
describe('ng-add schematic with material present', () => {
|
|
16
|
+
describe('ng-add-setup schematic with material present', () => {
|
|
18
17
|
let runner;
|
|
19
18
|
let appTree;
|
|
20
19
|
let errorOutput;
|
|
@@ -36,7 +35,7 @@ describe('ng-add schematic with material present', () => {
|
|
|
36
35
|
describe('add module', () => {
|
|
37
36
|
it('should add the WordlistGeneratorModule to the project module', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
38
37
|
const tree = yield runner
|
|
39
|
-
.runSchematicAsync('ng-add', {}, appTree)
|
|
38
|
+
.runSchematicAsync('ng-add-setup', {}, appTree)
|
|
40
39
|
.toPromise();
|
|
41
40
|
const fileContent = (0, file_content_1.getFileContent)(tree, '/projects/material/src/app/app.module.ts');
|
|
42
41
|
expect(fileContent).toContain('WordlistGeneratorModule');
|
|
@@ -68,12 +67,10 @@ describe('ng-add schematic without material present', () => {
|
|
|
68
67
|
.runSchematicAsync('ng-add', {}, appTree)
|
|
69
68
|
.toPromise();
|
|
70
69
|
const fileContent = (0, file_content_1.getFileContent)(tree, '/projects/material/src/app/app.module.ts');
|
|
71
|
-
const coreVersion = (0, package_config_1.getPackageVersionFromPackageJson)(tree, '@angular/core');
|
|
72
70
|
expect(fileContent).not.toContain('WordlistGeneratorModule');
|
|
73
71
|
expect(errorOutput.length).toBe(1);
|
|
74
72
|
expect(warnOutput.length).toBe(0);
|
|
75
|
-
expect(errorOutput[0])
|
|
76
|
-
.toMatch(`@angular/material ${coreVersion} not found.
|
|
73
|
+
expect(errorOutput[0]).toMatch(`@angular/material not found.
|
|
77
74
|
Please run 'ng add @angular/material' first`);
|
|
78
75
|
}));
|
|
79
76
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/ng-add/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,gEAAyE;AAEzE,0DAAyD;AACzD,kDAA+E;AAC/E,0DAA4D;
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/ng-add/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,gEAAyE;AAEzE,0DAAyD;AACzD,kDAA+E;AAC/E,0DAA4D;AAE5D,QAAQ,CAAC,8CAA8C,EAAE,GAAG,EAAE;IAC5D,IAAI,MAA2B,CAAC;IAChC,IAAI,OAAa,CAAC;IAClB,IAAI,WAAqB,CAAC;IAC1B,IAAI,UAAoB,CAAC;IAEzB,UAAU,CAAC,GAAS,EAAE;QACpB,MAAM,GAAG,IAAI,6BAAmB,CAC9B,YAAY,EACZ,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,CACtC,CAAC;QACF,OAAO,GAAG,MAAM,IAAA,oCAAyB,EAAC,MAAM,CAAC,CAAC;QAElD,WAAW,GAAG,EAAE,CAAC;QACjB,UAAU,GAAG,EAAE,CAAC;QAChB,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;YAC5B,IAAI,CAAC,C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AC,MAAM,CAAC,CAAC;QAE9C,WAAW,GAAG,EAAE,CAAC;QACjB,UAAU,GAAG,EAAE,CAAC;QAChB,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;YAC5B,IAAI,CAAC,CAAC,KAAK,KAAK,OAAO,EAAE;gBACvB,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;aAC7B;iBAAM,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,EAAE;gBAC7B,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;aAC5B;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,oDAAoD,EAAE,GAAS,EAAE;QAClE,MAAM,MAAM,CAAC,iBAAiB,CAAC,QAAQ,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC,SAAS,EAAE,CAAC;QAEtE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAC5B,0DAA0D,CAC3D,CAAC;IACJ,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
13
|
+
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
14
|
+
const schematics_2 = require("@angular/cdk/schematics");
|
|
15
|
+
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
16
|
+
const package_config_1 = require("./package-config");
|
|
17
|
+
const wordlistGeneratorModuleName = 'WordlistGeneratorModule';
|
|
18
|
+
const wordlistGeneratorPackageName = '@tehw0lf/wordlist-generator';
|
|
19
|
+
const flexLayoutFallbackVersion = '^13.0.0-beta.36';
|
|
20
|
+
function default_1(options) {
|
|
21
|
+
return () => __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return (0, schematics_1.chain)([addDependencies(), addWordlistGeneratorModule(options)]);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
exports.default = default_1;
|
|
26
|
+
function addWordlistGeneratorModule(options) {
|
|
27
|
+
return (host, context) => __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
const workspace = yield (0, workspace_1.getWorkspace)(host);
|
|
29
|
+
const project = (0, schematics_2.getProjectFromWorkspace)(workspace, options.project);
|
|
30
|
+
const appModulePath = (0, schematics_2.getAppModulePath)(host, (0, schematics_2.getProjectMainFile)(project));
|
|
31
|
+
if (!(0, schematics_2.hasNgModuleImport)(host, appModulePath, wordlistGeneratorModuleName)) {
|
|
32
|
+
(0, schematics_2.addModuleImportToRootModule)(host, wordlistGeneratorModuleName, wordlistGeneratorPackageName, project);
|
|
33
|
+
}
|
|
34
|
+
context.logger.warn('Library is already installed, nothing to do.');
|
|
35
|
+
return;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function addDependencies() {
|
|
39
|
+
return (host, context) => __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
const flexLayoutVersion = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/flex-layout');
|
|
41
|
+
if (!flexLayoutVersion || flexLayoutVersion !== flexLayoutFallbackVersion) {
|
|
42
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/flex-layout', flexLayoutFallbackVersion);
|
|
43
|
+
context.logger.info(`@angular/flex-layout ${flexLayoutFallbackVersion} was added to dependencies.`);
|
|
44
|
+
}
|
|
45
|
+
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../../../libs/wordlist-generator/schematics/ng-add/setup.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2DAAiF;AACjF,4DAA0E;AAC1E,wDAMiC;AACjC,qEAAqE;AAErE,qDAA6F;AAG7F,MAAM,2BAA2B,GAAG,yBAAyB,CAAC;AAC9D,MAAM,4BAA4B,GAAG,6BAA6B,CAAC;AACnE,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;AAEpD,mBAAyB,OAAe;IACtC,OAAO,GAAS,EAAE;QAChB,OAAO,IAAA,kBAAK,EAAC,CAAC,eAAe,EAAE,EAAE,0BAA0B,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC,CAAA,CAAC;AACJ,CAAC;AAJD,4BAIC;AAED,SAAS,0BAA0B,CAAC,OAAe;IACjD,OAAO,CAAO,IAAU,EAAE,OAAyB,EAAE,EAAE;QACrD,MAAM,SAAS,GAAG,MAAM,IAAA,wBAAY,EAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,OAAO,GAAG,IAAA,oCAAuB,EAAC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QACpE,MAAM,aAAa,GAAG,IAAA,6BAAgB,EAAC,IAAI,EAAE,IAAA,+BAAkB,EAAC,OAAO,CAAC,CAAC,CAAC;QAE1E,IAAI,CAAC,IAAA,8BAAiB,EAAC,IAAI,EAAE,aAAa,EAA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