@o3r/stylelint-plugin 10.0.0-prerelease.103 → 10.0.0-prerelease.109

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/stylelint-plugin",
3
- "version": "10.0.0-prerelease.103",
3
+ "version": "10.0.0-prerelease.109",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -19,7 +19,7 @@
19
19
  "build": "yarn nx build stylelint-plugin",
20
20
  "postbuild": "patch-package-json-main",
21
21
  "prepare:publish": "prepare-publish ./dist",
22
- "prepare:build:builders": "yarn cpy './collection.json' dist",
22
+ "prepare:build:builders": "yarn cpy 'schematics/**/*.json' 'schematics/**/templates/**' dist/schematics && yarn cpy './collection.json' dist",
23
23
  "build:builders": "tsc -b tsconfig.builders.json --pretty && yarn generate-cjs-manifest"
24
24
  },
25
25
  "dependencies": {
@@ -39,9 +39,9 @@
39
39
  "@compodoc/compodoc": "^1.1.19",
40
40
  "@nx/eslint-plugin": "~18.0.2",
41
41
  "@nx/jest": "~18.0.2",
42
- "@o3r/build-helpers": "^10.0.0-prerelease.103",
43
- "@o3r/eslint-config-otter": "^10.0.0-prerelease.103",
44
- "@o3r/eslint-plugin": "^10.0.0-prerelease.103",
42
+ "@o3r/build-helpers": "^10.0.0-prerelease.109",
43
+ "@o3r/eslint-config-otter": "^10.0.0-prerelease.109",
44
+ "@o3r/eslint-plugin": "^10.0.0-prerelease.109",
45
45
  "@stylistic/eslint-plugin-ts": "^1.5.4",
46
46
  "@types/jest": "~29.5.2",
47
47
  "@types/node": "^20.0.0",
@@ -1,6 +1,7 @@
1
1
  import type { Rule } from '@angular-devkit/schematics';
2
+ import type { NgAddSchematicsSchema } from './schema';
2
3
  /**
3
4
  * Add Otter stylelint-plugin to an Angular Project
4
5
  */
5
- export declare function ngAdd(): Rule;
6
+ export declare const ngAdd: (options: NgAddSchematicsSchema) => Rule;
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEvD;;GAEG;AACH,wBAAgB,KAAK,IAAI,IAAI,CAG5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAmBtD;;GAEG;AACH,eAAO,MAAM,KAAK,0CAAiD,CAAC"}
@@ -1,13 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ngAdd = void 0;
4
- const schematics_1 = require("@angular-devkit/schematics");
4
+ const schematics_1 = require("@o3r/schematics");
5
+ const path = require("node:path");
6
+ const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
5
7
  /**
6
8
  * Add Otter stylelint-plugin to an Angular Project
9
+ * @param options
7
10
  */
8
- function ngAdd() {
11
+ function ngAddFn(options) {
9
12
  /* ng add rules */
10
- return (0, schematics_1.noop)();
13
+ return (tree) => {
14
+ return (0, schematics_1.setupDependencies)({
15
+ projectName: options.projectName,
16
+ dependencies: (0, schematics_1.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, true)
17
+ });
18
+ };
11
19
  }
12
- exports.ngAdd = ngAdd;
20
+ /**
21
+ * Add Otter stylelint-plugin to an Angular Project
22
+ */
23
+ exports.ngAdd = (0, schematics_1.createSchematicWithMetricsIfInstalled)(ngAddFn);
13
24
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "ngAddSchematicsSchema",
4
+ "title": "Add Otter stylelint-plugin ",
5
+ "description": "ngAdd Otter stylelint-plugin ",
6
+ "properties": {
7
+ "projectName": {
8
+ "type": "string",
9
+ "description": "Project name",
10
+ "$default": {
11
+ "$source": "projectName"
12
+ }
13
+ }
14
+ },
15
+ "additionalProperties": true,
16
+ "required": [
17
+ ]
18
+ }