@skyux/packages 10.7.0 → 10.8.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/collection.json CHANGED
@@ -15,6 +15,11 @@
15
15
  "description": "Add @skyux/packages/polyfills to project config.",
16
16
  "factory": "./src/schematics/ng-generate/polyfills/polyfills.schematic",
17
17
  "schema": "./src/schematics/ng-generate/polyfills/schema.json"
18
+ },
19
+ "remove-nx-cache": {
20
+ "description": "Remove the Nx cache directory from git.",
21
+ "factory": "./src/schematics/ng-generate/remove-nx-cache/remove-nx-cache.schematic",
22
+ "schema": "./src/schematics/ng-generate/remove-nx-cache/schema.json"
18
23
  }
19
24
  }
20
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/packages",
3
- "version": "10.7.0",
3
+ "version": "10.8.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "description": "Handles the `ng update` command for SKY UX component libraries.",
6
6
  "keywords": [
@@ -36,53 +36,53 @@
36
36
  "migrations": "./src/schematics/migrations/migration-collection.json",
37
37
  "packageGroup": {
38
38
  "@blackbaud/angular-tree-component": "^1.0.0",
39
- "@skyux-sdk/eslint-config": "10.7.0",
40
- "@skyux-sdk/prettier-schematics": "10.7.0",
41
- "@skyux-sdk/testing": "10.7.0",
42
- "@skyux/a11y": "10.7.0",
43
- "@skyux/action-bars": "10.7.0",
44
- "@skyux/ag-grid": "10.7.0",
45
- "@skyux/angular-tree-component": "10.7.0",
46
- "@skyux/animations": "10.7.0",
47
- "@skyux/assets": "10.7.0",
48
- "@skyux/autonumeric": "10.7.0",
49
- "@skyux/avatar": "10.7.0",
50
- "@skyux/colorpicker": "10.7.0",
51
- "@skyux/config": "10.7.0",
52
- "@skyux/core": "10.7.0",
53
- "@skyux/data-manager": "10.7.0",
54
- "@skyux/datetime": "10.7.0",
55
- "@skyux/errors": "10.7.0",
56
- "@skyux/flyout": "10.7.0",
57
- "@skyux/forms": "10.7.0",
58
- "@skyux/grids": "10.7.0",
59
- "@skyux/i18n": "10.7.0",
39
+ "@skyux-sdk/eslint-config": "10.8.0",
40
+ "@skyux-sdk/prettier-schematics": "10.8.0",
41
+ "@skyux-sdk/testing": "10.8.0",
42
+ "@skyux/a11y": "10.8.0",
43
+ "@skyux/action-bars": "10.8.0",
44
+ "@skyux/ag-grid": "10.8.0",
45
+ "@skyux/angular-tree-component": "10.8.0",
46
+ "@skyux/animations": "10.8.0",
47
+ "@skyux/assets": "10.8.0",
48
+ "@skyux/autonumeric": "10.8.0",
49
+ "@skyux/avatar": "10.8.0",
50
+ "@skyux/colorpicker": "10.8.0",
51
+ "@skyux/config": "10.8.0",
52
+ "@skyux/core": "10.8.0",
53
+ "@skyux/data-manager": "10.8.0",
54
+ "@skyux/datetime": "10.8.0",
55
+ "@skyux/errors": "10.8.0",
56
+ "@skyux/flyout": "10.8.0",
57
+ "@skyux/forms": "10.8.0",
58
+ "@skyux/grids": "10.8.0",
59
+ "@skyux/i18n": "10.8.0",
60
60
  "@skyux/icons": "^7.1.0",
61
- "@skyux/indicators": "10.7.0",
62
- "@skyux/inline-form": "10.7.0",
63
- "@skyux/layout": "10.7.0",
64
- "@skyux/list-builder": "10.7.0",
65
- "@skyux/list-builder-common": "10.7.0",
66
- "@skyux/list-builder-view-checklist": "10.7.0",
67
- "@skyux/list-builder-view-grids": "10.7.0",
68
- "@skyux/lists": "10.7.0",
69
- "@skyux/lookup": "10.7.0",
70
- "@skyux/modals": "10.7.0",
71
- "@skyux/navbar": "10.7.0",
72
- "@skyux/omnibar-interop": "10.7.0",
73
- "@skyux/pages": "10.7.0",
74
- "@skyux/phone-field": "10.7.0",
75
- "@skyux/popovers": "10.7.0",
76
- "@skyux/progress-indicator": "10.7.0",
77
- "@skyux/router": "10.7.0",
78
- "@skyux/select-field": "10.7.0",
79
- "@skyux/split-view": "10.7.0",
80
- "@skyux/tabs": "10.7.0",
81
- "@skyux/text-editor": "10.7.0",
82
- "@skyux/theme": "10.7.0",
83
- "@skyux/tiles": "10.7.0",
84
- "@skyux/toast": "10.7.0",
85
- "@skyux/validation": "10.7.0",
61
+ "@skyux/indicators": "10.8.0",
62
+ "@skyux/inline-form": "10.8.0",
63
+ "@skyux/layout": "10.8.0",
64
+ "@skyux/list-builder": "10.8.0",
65
+ "@skyux/list-builder-common": "10.8.0",
66
+ "@skyux/list-builder-view-checklist": "10.8.0",
67
+ "@skyux/list-builder-view-grids": "10.8.0",
68
+ "@skyux/lists": "10.8.0",
69
+ "@skyux/lookup": "10.8.0",
70
+ "@skyux/modals": "10.8.0",
71
+ "@skyux/navbar": "10.8.0",
72
+ "@skyux/omnibar-interop": "10.8.0",
73
+ "@skyux/pages": "10.8.0",
74
+ "@skyux/phone-field": "10.8.0",
75
+ "@skyux/popovers": "10.8.0",
76
+ "@skyux/progress-indicator": "10.8.0",
77
+ "@skyux/router": "10.8.0",
78
+ "@skyux/select-field": "10.8.0",
79
+ "@skyux/split-view": "10.8.0",
80
+ "@skyux/tabs": "10.8.0",
81
+ "@skyux/text-editor": "10.8.0",
82
+ "@skyux/theme": "10.8.0",
83
+ "@skyux/tiles": "10.8.0",
84
+ "@skyux/toast": "10.8.0",
85
+ "@skyux/validation": "10.8.0",
86
86
  "ag-grid-angular": "~31.2.0",
87
87
  "ag-grid-community": "~31.2.0",
88
88
  "ag-grid-enterprise": "~31.2.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schematics": {
3
3
  "noop": {
4
- "version": "10.7.0",
4
+ "version": "10.8.0",
5
5
  "factory": "./noop/noop.schematic",
6
6
  "description": "Update all SKY UX component packages"
7
7
  },
@@ -25,6 +25,11 @@
25
25
  "factory": "./update-10/i18n-resources-module/i18n-resources-module.schematic",
26
26
  "description": "Regenerate i18n resources modules for libraries."
27
27
  },
28
+ "remove-nx-cache": {
29
+ "version": "10.8.0",
30
+ "factory": "./update-10/remove-nx-cache/remove-nx-cache.schematic",
31
+ "description": "Remove `.nx/cache` from git and add `.gitignore` entry."
32
+ },
28
33
  "remove-old-compat-stylesheets": {
29
34
  "version": "10.0.0",
30
35
  "factory": "./update-10/remove-old-compat-stylesheets/remove-old-compat-stylesheets.schematic",
@@ -0,0 +1,2 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ export default function (): Rule;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const remove_nx_cache_1 = require("../../../rules/remove-nx-cache/remove-nx-cache");
4
+ function default_1() {
5
+ return async () => {
6
+ return (0, remove_nx_cache_1.removeNxCache)({
7
+ rootDir: '.',
8
+ });
9
+ };
10
+ }
11
+ exports.default = default_1;
12
+ //# sourceMappingURL=remove-nx-cache.schematic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-nx-cache.schematic.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/packages/src/schematics/migrations/update-10/remove-nx-cache/remove-nx-cache.schematic.ts"],"names":[],"mappings":";;AAEA,oFAA+E;AAE/E;IACE,OAAO,KAAK,IAAI,EAAE;QAChB,OAAO,IAAA,+BAAa,EAAC;YACnB,OAAO,EAAE,GAAG;SACb,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAND,4BAMC"}
@@ -0,0 +1,2 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ export default function (): Rule;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const remove_nx_cache_1 = require("../../rules/remove-nx-cache/remove-nx-cache");
4
+ function default_1() {
5
+ return async () => {
6
+ return (0, remove_nx_cache_1.removeNxCache)({
7
+ rootDir: '.',
8
+ });
9
+ };
10
+ }
11
+ exports.default = default_1;
12
+ //# sourceMappingURL=remove-nx-cache.schematic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-nx-cache.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/ng-generate/remove-nx-cache/remove-nx-cache.schematic.ts"],"names":[],"mappings":";;AAEA,iFAA4E;AAE5E;IACE,OAAO,KAAK,IAAI,EAAE;QAChB,OAAO,IAAA,+BAAa,EAAC;YACnB,OAAO,EAAE,GAAG;SACb,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAND,4BAMC"}
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "type": "object",
4
+ "properties": {}
5
+ }
@@ -0,0 +1,6 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ interface RemoveNxCacheOptions {
3
+ rootDir: string;
4
+ }
5
+ export declare function removeNxCache(options: RemoveNxCacheOptions): Rule;
6
+ export {};
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeNxCache = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const child_process_1 = require("child_process");
6
+ function isGitPath(path) {
7
+ try {
8
+ (0, child_process_1.spawnSync)('git', ['-C', path, 'rev-parse', '--quiet', '--verify', 'HEAD'], {
9
+ stdio: 'ignore',
10
+ });
11
+ return true;
12
+ }
13
+ catch (e) {
14
+ return false;
15
+ }
16
+ }
17
+ function removeNxCache(options) {
18
+ return (tree) => {
19
+ if (schematics_1.HostTree.isHostTree(tree) && isGitPath(options.rootDir)) {
20
+ (0, child_process_1.spawnSync)('git', [
21
+ '-C',
22
+ options.rootDir,
23
+ 'rm',
24
+ '-rf',
25
+ '--cached',
26
+ '--quiet',
27
+ '.nx/cache',
28
+ ], {
29
+ stdio: 'ignore',
30
+ });
31
+ }
32
+ const gitIgnore = tree.readText('.gitignore');
33
+ if (!gitIgnore?.includes('.nx/cache')) {
34
+ const recorder = tree.beginUpdate('.gitignore');
35
+ recorder.insertLeft(0, `# Ignore cache directory used by @angular-eslint/builder\n/.nx/cache\n\n`);
36
+ tree.commitUpdate(recorder);
37
+ }
38
+ };
39
+ }
40
+ exports.removeNxCache = removeNxCache;
41
+ //# sourceMappingURL=remove-nx-cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-nx-cache.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/rules/remove-nx-cache/remove-nx-cache.ts"],"names":[],"mappings":";;;AAAA,2DAAkE;AAElE,iDAA0C;AAM1C,SAAS,SAAS,CAAC,IAAY;IAC7B,IAAI,CAAC;QACH,IAAA,yBAAS,EAAC,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE;YACzE,KAAK,EAAE,QAAQ;SAChB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,SAAgB,aAAa,CAAC,OAA6B;IACzD,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,IAAI,qBAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;YAC5D,IAAA,yBAAS,EACP,KAAK,EACL;gBACE,IAAI;gBACJ,OAAO,CAAC,OAAO;gBACf,IAAI;gBACJ,KAAK;gBACL,UAAU;gBACV,SAAS;gBACT,WAAW;aACZ,EACD;gBACE,KAAK,EAAE,QAAQ;aAChB,CACF,CAAC;QACJ,CAAC;QACD,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAC9C,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;YACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;YAChD,QAAQ,CAAC,UAAU,CACjB,CAAC,EACD,0EAA0E,CAC3E,CAAC;YACF,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AA7BD,sCA6BC"}
package/src/version.js CHANGED
@@ -19,5 +19,5 @@ exports.Version = Version;
19
19
  /**
20
20
  * Represents the version of @skyux/core.
21
21
  */
22
- exports.VERSION = new Version('10.7.0');
22
+ exports.VERSION = new Version('10.8.0');
23
23
  //# sourceMappingURL=version.js.map