@sprucelabs/spruce-cli 17.1.15 → 17.1.16
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/CHANGELOG.md +8 -0
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.d.ts +2 -0
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js +72 -8
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js.map +1 -1
- package/node_modules/@typescript-eslint/parser/package.json +5 -5
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts +9 -9
- package/node_modules/@typescript-eslint/scope-manager/package.json +5 -5
- package/node_modules/@typescript-eslint/types/package.json +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -5
- package/node_modules/@typescript-eslint/visitor-keys/package.json +3 -3
- package/package.json +3 -3
- package/src/__tests__/behavioral/views/KeepingViewsInSync.test.ts +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [17.1.16](https://github.com/sprucelabsai/spruce-cli-workspace/compare/v17.1.15...v17.1.16) (2022-08-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @sprucelabs/spruce-cli
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [17.1.15](https://github.com/sprucelabsai/spruce-cli-workspace/compare/v17.1.14...v17.1.15) (2022-08-01)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @sprucelabs/spruce-cli
|
|
@@ -6,4 +6,6 @@ export default class KeepingViewsInSyncTest extends AbstractSkillTest {
|
|
|
6
6
|
protected static hasSyncAction(): Promise<void>;
|
|
7
7
|
protected static syncingWithNoViewsGeneratesNothing(): Promise<void>;
|
|
8
8
|
protected static createsValidCombinedEventsFileWhenCreatingANewSvc(): Promise<void>;
|
|
9
|
+
protected static generatesValidTypesFileWithNoSkillViewsC(): Promise<void>;
|
|
10
|
+
private static assertValuedViewsFile;
|
|
9
11
|
}
|
|
@@ -33,13 +33,13 @@ var _AbstractSkillTest2 = _interopRequireDefault(require("../../../tests/Abstrac
|
|
|
33
33
|
|
|
34
34
|
var _test2 = _interopRequireDefault(require("../../../tests/utilities/test.utility"));
|
|
35
35
|
|
|
36
|
-
var _dec, _dec2, _dec3, _class, _class2;
|
|
36
|
+
var _dec, _dec2, _dec3, _dec4, _class, _class2;
|
|
37
37
|
|
|
38
38
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
39
39
|
|
|
40
40
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
41
|
|
|
42
|
-
var KeepingViewsInSyncTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _dec3 = (0, _test.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
42
|
+
var KeepingViewsInSyncTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _dec3 = (0, _test.test)(), _dec4 = (0, _test.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
43
43
|
(0, _inherits2["default"])(KeepingViewsInSyncTest, _AbstractSkillTest);
|
|
44
44
|
|
|
45
45
|
var _super = _createSuper(KeepingViewsInSyncTest);
|
|
@@ -138,7 +138,7 @@ var KeepingViewsInSyncTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(
|
|
|
138
138
|
key: "createsValidCombinedEventsFileWhenCreatingANewSvc",
|
|
139
139
|
value: function () {
|
|
140
140
|
var _createsValidCombinedEventsFileWhenCreatingANewSvc = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
141
|
-
var results
|
|
141
|
+
var results;
|
|
142
142
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
143
143
|
while (1) {
|
|
144
144
|
switch (_context4.prev = _context4.next) {
|
|
@@ -151,11 +151,10 @@ var KeepingViewsInSyncTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(
|
|
|
151
151
|
|
|
152
152
|
case 2:
|
|
153
153
|
results = _context4.sent;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
return this.Service('typeChecker').check(match);
|
|
154
|
+
_context4.next = 5;
|
|
155
|
+
return this.assertValuedViewsFile(results);
|
|
157
156
|
|
|
158
|
-
case
|
|
157
|
+
case 5:
|
|
159
158
|
case "end":
|
|
160
159
|
return _context4.stop();
|
|
161
160
|
}
|
|
@@ -169,8 +168,73 @@ var KeepingViewsInSyncTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(
|
|
|
169
168
|
|
|
170
169
|
return createsValidCombinedEventsFileWhenCreatingANewSvc;
|
|
171
170
|
}()
|
|
171
|
+
}, {
|
|
172
|
+
key: "generatesValidTypesFileWithNoSkillViewsC",
|
|
173
|
+
value: function () {
|
|
174
|
+
var _generatesValidTypesFileWithNoSkillViewsC = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
175
|
+
var results;
|
|
176
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
177
|
+
while (1) {
|
|
178
|
+
switch (_context5.prev = _context5.next) {
|
|
179
|
+
case 0:
|
|
180
|
+
_context5.next = 2;
|
|
181
|
+
return this.Action('view', 'create').execute({
|
|
182
|
+
viewType: 'view',
|
|
183
|
+
nameReadable: 'test',
|
|
184
|
+
viewModel: 'Card'
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
case 2:
|
|
188
|
+
results = _context5.sent;
|
|
189
|
+
|
|
190
|
+
_test.assert.isFalsy(results.errors);
|
|
191
|
+
|
|
192
|
+
_context5.next = 6;
|
|
193
|
+
return this.assertValuedViewsFile(results);
|
|
194
|
+
|
|
195
|
+
case 6:
|
|
196
|
+
case "end":
|
|
197
|
+
return _context5.stop();
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}, _callee5, this);
|
|
201
|
+
}));
|
|
202
|
+
|
|
203
|
+
function generatesValidTypesFileWithNoSkillViewsC() {
|
|
204
|
+
return _generatesValidTypesFileWithNoSkillViewsC.apply(this, arguments);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
return generatesValidTypesFileWithNoSkillViewsC;
|
|
208
|
+
}()
|
|
209
|
+
}, {
|
|
210
|
+
key: "assertValuedViewsFile",
|
|
211
|
+
value: function () {
|
|
212
|
+
var _assertValuedViewsFile = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(results) {
|
|
213
|
+
var match;
|
|
214
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
215
|
+
while (1) {
|
|
216
|
+
switch (_context6.prev = _context6.next) {
|
|
217
|
+
case 0:
|
|
218
|
+
match = _test2["default"].assertFileByPathInGeneratedFiles("views/views.ts", results.files);
|
|
219
|
+
_context6.next = 3;
|
|
220
|
+
return this.Service('typeChecker').check(match);
|
|
221
|
+
|
|
222
|
+
case 3:
|
|
223
|
+
case "end":
|
|
224
|
+
return _context6.stop();
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}, _callee6, this);
|
|
228
|
+
}));
|
|
229
|
+
|
|
230
|
+
function assertValuedViewsFile(_x) {
|
|
231
|
+
return _assertValuedViewsFile.apply(this, arguments);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
return assertValuedViewsFile;
|
|
235
|
+
}()
|
|
172
236
|
}]);
|
|
173
237
|
return KeepingViewsInSyncTest;
|
|
174
|
-
}(_AbstractSkillTest2["default"]), (0, _defineProperty2["default"])(_class2, "skillCacheKey", 'views'), (0, _defineProperty2["default"])(_class2, "action", void 0), _class2), ((0, _applyDecoratedDescriptor2["default"])(_class, "hasSyncAction", [_dec], Object.getOwnPropertyDescriptor(_class, "hasSyncAction"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "syncingWithNoViewsGeneratesNothing", [_dec2], Object.getOwnPropertyDescriptor(_class, "syncingWithNoViewsGeneratesNothing"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "createsValidCombinedEventsFileWhenCreatingANewSvc", [_dec3], Object.getOwnPropertyDescriptor(_class, "createsValidCombinedEventsFileWhenCreatingANewSvc"), _class)), _class));
|
|
238
|
+
}(_AbstractSkillTest2["default"]), (0, _defineProperty2["default"])(_class2, "skillCacheKey", 'views'), (0, _defineProperty2["default"])(_class2, "action", void 0), _class2), ((0, _applyDecoratedDescriptor2["default"])(_class, "hasSyncAction", [_dec], Object.getOwnPropertyDescriptor(_class, "hasSyncAction"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "syncingWithNoViewsGeneratesNothing", [_dec2], Object.getOwnPropertyDescriptor(_class, "syncingWithNoViewsGeneratesNothing"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "createsValidCombinedEventsFileWhenCreatingANewSvc", [_dec3], Object.getOwnPropertyDescriptor(_class, "createsValidCombinedEventsFileWhenCreatingANewSvc"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "generatesValidTypesFileWithNoSkillViewsC", [_dec4], Object.getOwnPropertyDescriptor(_class, "generatesValidTypesFileWithNoSkillViewsC"), _class)), _class));
|
|
175
239
|
exports["default"] = KeepingViewsInSyncTest;
|
|
176
240
|
//# sourceMappingURL=KeepingViewsInSync.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeepingViewsInSync.test.js","names":["KeepingViewsInSyncTest","test","action","Action","assert","isFunction","execute","results","isFalsy","errors","files","viewType","isRoot","match","testUtil","assertFileByPathInGeneratedFiles","Service","check","AbstractSkillTest"],"sources":["../../../../src/__tests__/behavioral/views/KeepingViewsInSync.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport SyncAction from '../../../features/view/actions/SyncAction'\nimport AbstractSkillTest from '../../../tests/AbstractSkillTest'\nimport testUtil from '../../../tests/utilities/test.utility'\n\nexport default class KeepingViewsInSyncTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'views'\n\tprivate static action: SyncAction\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tthis.action = this.Action('view', 'sync')\n\t}\n\n\t@test()\n\tprotected static async hasSyncAction() {\n\t\tassert.isFunction(this.action.execute)\n\t}\n\n\t@test()\n\tprotected static async syncingWithNoViewsGeneratesNothing() {\n\t\tconst results = await this.action.execute({})\n\t\tassert.isFalsy(results.errors)\n\t\tassert.isFalsy(results.files)\n\t}\n\n\t@test()\n\tprotected static async createsValidCombinedEventsFileWhenCreatingANewSvc() {\n\t\tconst results = await this.Action('view', 'create').execute({\n\t\t\tviewType: 'skillView',\n\t\t\tisRoot: true,\n\t\t})\n\n\t\tconst match = testUtil.assertFileByPathInGeneratedFiles(\n\t\t\t`views/views.ts`,\n\t\t\tresults.files\n\t\t)\n\n\t\tawait this.Service('typeChecker').check(match)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"file":"KeepingViewsInSync.test.js","names":["KeepingViewsInSyncTest","test","action","Action","assert","isFunction","execute","results","isFalsy","errors","files","viewType","isRoot","assertValuedViewsFile","nameReadable","viewModel","match","testUtil","assertFileByPathInGeneratedFiles","Service","check","AbstractSkillTest"],"sources":["../../../../src/__tests__/behavioral/views/KeepingViewsInSync.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport { FeatureActionResponse } from '../../../features/features.types'\nimport SyncAction from '../../../features/view/actions/SyncAction'\nimport AbstractSkillTest from '../../../tests/AbstractSkillTest'\nimport testUtil from '../../../tests/utilities/test.utility'\n\nexport default class KeepingViewsInSyncTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'views'\n\tprivate static action: SyncAction\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tthis.action = this.Action('view', 'sync')\n\t}\n\n\t@test()\n\tprotected static async hasSyncAction() {\n\t\tassert.isFunction(this.action.execute)\n\t}\n\n\t@test()\n\tprotected static async syncingWithNoViewsGeneratesNothing() {\n\t\tconst results = await this.action.execute({})\n\t\tassert.isFalsy(results.errors)\n\t\tassert.isFalsy(results.files)\n\t}\n\n\t@test()\n\tprotected static async createsValidCombinedEventsFileWhenCreatingANewSvc() {\n\t\tconst results = await this.Action('view', 'create').execute({\n\t\t\tviewType: 'skillView',\n\t\t\tisRoot: true,\n\t\t})\n\n\t\tawait this.assertValuedViewsFile(results)\n\t}\n\n\t@test()\n\tprotected static async generatesValidTypesFileWithNoSkillViewsC() {\n\t\tconst results = await this.Action('view', 'create').execute({\n\t\t\tviewType: 'view',\n\t\t\tnameReadable: 'test',\n\t\t\tviewModel: 'Card',\n\t\t})\n\t\tassert.isFalsy(results.errors)\n\t\tawait this.assertValuedViewsFile(results)\n\t}\n\n\tprivate static async assertValuedViewsFile(results: FeatureActionResponse) {\n\t\tconst match = testUtil.assertFileByPathInGeneratedFiles(\n\t\t\t`views/views.ts`,\n\t\t\tresults.files\n\t\t)\n\n\t\tawait this.Service('typeChecker').check(match)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAGA;;AACA;;;;;;;;IAEqBA,sB,WASnB,IAAAC,UAAA,G,UAKA,IAAAA,UAAA,G,UAOA,IAAAA,UAAA,G,UAUA,IAAAA,UAAA,G;;;;;;;;;;;;;sGA3BD;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA;;cAAA;gBAEC,KAAKC,MAAL,GAAc,KAAKC,MAAL,CAAY,MAAZ,EAAoB,MAApB,CAAd;;cAFD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;yGAKA;QAAA;UAAA;YAAA;cAAA;gBAECC,YAAA,CAAOC,UAAP,CAAkB,KAAKH,MAAL,CAAYI,OAA9B;;cAFD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;8HAKA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAEuB,KAAKJ,MAAL,CAAYI,OAAZ,CAAoB,EAApB,CAFvB;;cAAA;gBAEOC,OAFP;;gBAGCH,YAAA,CAAOI,OAAP,CAAeD,OAAO,CAACE,MAAvB;;gBACAL,YAAA,CAAOI,OAAP,CAAeD,OAAO,CAACG,KAAvB;;cAJD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;6IAOA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAEuB,KAAKP,MAAL,CAAY,MAAZ,EAAoB,QAApB,EAA8BG,OAA9B,CAAsC;kBAC3DK,QAAQ,EAAE,WADiD;kBAE3DC,MAAM,EAAE;gBAFmD,CAAtC,CAFvB;;cAAA;gBAEOL,OAFP;gBAAA;gBAAA,OAOO,KAAKM,qBAAL,CAA2BN,OAA3B,CAPP;;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;oIAUA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAEuB,KAAKJ,MAAL,CAAY,MAAZ,EAAoB,QAApB,EAA8BG,OAA9B,CAAsC;kBAC3DK,QAAQ,EAAE,MADiD;kBAE3DG,YAAY,EAAE,MAF6C;kBAG3DC,SAAS,EAAE;gBAHgD,CAAtC,CAFvB;;cAAA;gBAEOR,OAFP;;gBAOCH,YAAA,CAAOI,OAAP,CAAeD,OAAO,CAACE,MAAvB;;gBAPD;gBAAA,OAQO,KAAKI,qBAAL,CAA2BN,OAA3B,CARP;;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;iHAWA,kBAA2CA,OAA3C;QAAA;QAAA;UAAA;YAAA;cAAA;gBACOS,KADP,GACeC,iBAAA,CAASC,gCAAT,mBAEbX,OAAO,CAACG,KAFK,CADf;gBAAA;gBAAA,OAMO,KAAKS,OAAL,CAAa,aAAb,EAA4BC,KAA5B,CAAkCJ,KAAlC,CANP;;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EA1CmDK,8B,8DAClB,O"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/parser",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.32.0",
|
|
4
4
|
"description": "An ESLint custom parser which leverages TypeScript ESTree",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@typescript-eslint/scope-manager": "5.
|
|
49
|
-
"@typescript-eslint/types": "5.
|
|
50
|
-
"@typescript-eslint/typescript-estree": "5.
|
|
48
|
+
"@typescript-eslint/scope-manager": "5.32.0",
|
|
49
|
+
"@typescript-eslint/types": "5.32.0",
|
|
50
|
+
"@typescript-eslint/typescript-estree": "5.32.0",
|
|
51
51
|
"debug": "^4.3.4"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
]
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "17dcf2742af64629844a08fecaaf52a583a5be2c"
|
|
75
75
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const TYPE: Readonly<{
|
|
2
|
-
eslintImplicitGlobalSetting:
|
|
3
|
-
isTypeVariable:
|
|
4
|
-
isValueVariable:
|
|
2
|
+
eslintImplicitGlobalSetting: string;
|
|
3
|
+
isTypeVariable: boolean;
|
|
4
|
+
isValueVariable: boolean;
|
|
5
5
|
}>;
|
|
6
6
|
export declare const VALUE: Readonly<{
|
|
7
|
-
eslintImplicitGlobalSetting:
|
|
8
|
-
isTypeVariable:
|
|
9
|
-
isValueVariable:
|
|
7
|
+
eslintImplicitGlobalSetting: string;
|
|
8
|
+
isTypeVariable: boolean;
|
|
9
|
+
isValueVariable: boolean;
|
|
10
10
|
}>;
|
|
11
11
|
export declare const TYPE_VALUE: Readonly<{
|
|
12
|
-
eslintImplicitGlobalSetting:
|
|
13
|
-
isTypeVariable:
|
|
14
|
-
isValueVariable:
|
|
12
|
+
eslintImplicitGlobalSetting: string;
|
|
13
|
+
isTypeVariable: boolean;
|
|
14
|
+
isValueVariable: boolean;
|
|
15
15
|
}>;
|
|
16
16
|
//# sourceMappingURL=base-config.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/scope-manager",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.32.0",
|
|
4
4
|
"description": "TypeScript scope analyser for ESLint",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"typecheck": "cd ../../ && nx typecheck @typescript-eslint/scope-manager"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@typescript-eslint/types": "5.
|
|
42
|
-
"@typescript-eslint/visitor-keys": "5.
|
|
41
|
+
"@typescript-eslint/types": "5.32.0",
|
|
42
|
+
"@typescript-eslint/visitor-keys": "5.32.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/glob": "*",
|
|
46
|
-
"@typescript-eslint/typescript-estree": "5.
|
|
46
|
+
"@typescript-eslint/typescript-estree": "5.32.0",
|
|
47
47
|
"glob": "*",
|
|
48
48
|
"jest-specific-snapshot": "*",
|
|
49
49
|
"make-dir": "*",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "17dcf2742af64629844a08fecaaf52a583a5be2c"
|
|
67
67
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/types",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.32.0",
|
|
4
4
|
"description": "Types for the TypeScript-ESTree AST spec",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"typescript": "*"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "17dcf2742af64629844a08fecaaf52a583a5be2c"
|
|
84
84
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/typescript-estree",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.32.0",
|
|
4
4
|
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@typescript-eslint/types": "5.
|
|
46
|
-
"@typescript-eslint/visitor-keys": "5.
|
|
45
|
+
"@typescript-eslint/types": "5.32.0",
|
|
46
|
+
"@typescript-eslint/visitor-keys": "5.32.0",
|
|
47
47
|
"debug": "^4.3.4",
|
|
48
48
|
"globby": "^11.1.0",
|
|
49
49
|
"is-glob": "^4.0.3",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@types/is-glob": "*",
|
|
60
60
|
"@types/semver": "*",
|
|
61
61
|
"@types/tmp": "*",
|
|
62
|
-
"@typescript-eslint/shared-fixtures": "5.
|
|
62
|
+
"@typescript-eslint/shared-fixtures": "5.32.0",
|
|
63
63
|
"glob": "*",
|
|
64
64
|
"jest-specific-snapshot": "*",
|
|
65
65
|
"make-dir": "*",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
]
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "17dcf2742af64629844a08fecaaf52a583a5be2c"
|
|
86
86
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/visitor-keys",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.32.0",
|
|
4
4
|
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@typescript-eslint/types": "5.
|
|
42
|
+
"@typescript-eslint/types": "5.32.0",
|
|
43
43
|
"eslint-visitor-keys": "^3.3.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
]
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "17dcf2742af64629844a08fecaaf52a583a5be2c"
|
|
60
60
|
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
|
-
"version": "17.1.
|
|
21
|
+
"version": "17.1.16",
|
|
22
22
|
"bin": {
|
|
23
23
|
"spruce": "./build/index.js"
|
|
24
24
|
},
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@sprucelabs/spruce-event-utils": "^27.0.88",
|
|
89
89
|
"@sprucelabs/spruce-skill-booter": "^45.0.0",
|
|
90
90
|
"@sprucelabs/spruce-skill-utils": "^26.3.20",
|
|
91
|
-
"@sprucelabs/spruce-templates": "^17.1.
|
|
91
|
+
"@sprucelabs/spruce-templates": "^17.1.16",
|
|
92
92
|
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
93
93
|
"@typescript-eslint/parser": "^5.27.1",
|
|
94
94
|
"cfonts": "^3.1.1",
|
|
@@ -627,5 +627,5 @@
|
|
|
627
627
|
"terminal-kit"
|
|
628
628
|
]
|
|
629
629
|
},
|
|
630
|
-
"gitHead": "
|
|
630
|
+
"gitHead": "df3827edab0f5c8d6d48d69771d4bcbd4a5ef5a5"
|
|
631
631
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { test, assert } from '@sprucelabs/test'
|
|
2
|
+
import { FeatureActionResponse } from '../../../features/features.types'
|
|
2
3
|
import SyncAction from '../../../features/view/actions/SyncAction'
|
|
3
4
|
import AbstractSkillTest from '../../../tests/AbstractSkillTest'
|
|
4
5
|
import testUtil from '../../../tests/utilities/test.utility'
|
|
@@ -31,6 +32,21 @@ export default class KeepingViewsInSyncTest extends AbstractSkillTest {
|
|
|
31
32
|
isRoot: true,
|
|
32
33
|
})
|
|
33
34
|
|
|
35
|
+
await this.assertValuedViewsFile(results)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@test()
|
|
39
|
+
protected static async generatesValidTypesFileWithNoSkillViewsC() {
|
|
40
|
+
const results = await this.Action('view', 'create').execute({
|
|
41
|
+
viewType: 'view',
|
|
42
|
+
nameReadable: 'test',
|
|
43
|
+
viewModel: 'Card',
|
|
44
|
+
})
|
|
45
|
+
assert.isFalsy(results.errors)
|
|
46
|
+
await this.assertValuedViewsFile(results)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
private static async assertValuedViewsFile(results: FeatureActionResponse) {
|
|
34
50
|
const match = testUtil.assertFileByPathInGeneratedFiles(
|
|
35
51
|
`views/views.ts`,
|
|
36
52
|
results.files
|