@sasjs/cli 6.28.0 → 6.30.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.
@@ -90,7 +90,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
90
90
  return (mod && mod.__esModule) ? mod : { "default": mod };
91
91
  };
92
92
  Object.defineProperty(exports, "__esModule", { value: true });
93
- exports.isSasJsServerInServerMode = exports.getNodeModulePath = exports.isSASjsProject = exports.terminateProcess = exports.loadEnvVariables = exports.millisecondsToDdHhMmSs = exports.arrToObj = void 0;
93
+ exports.isSasJsServerInServerMode = exports.getNodeModulePath = exports.isSASjsProject = exports.terminateProcess = exports.loadEnvVariables = exports.millisecondsToDdHhMmSs = exports.arrToObj = exports.seedAppUrls = void 0;
94
94
  exports.inExistingProject = inExistingProject;
95
95
  exports.diff = diff;
96
96
  exports.createReactApp = createReactApp;
@@ -147,6 +147,18 @@ function diff(a, b) {
147
147
  });
148
148
  return __spreadArray(__spreadArray([], __read(notInA), false), __read(notInB), false);
149
149
  }
150
+ /**
151
+ * The seed apps `sasjs create` downloads, by template name.
152
+ *
153
+ * One map for the commands that fetch them and the specs that compare their
154
+ * output, so a template added here is covered by both rather than downloaded
155
+ * by one and unknown to the other.
156
+ */
157
+ exports.seedAppUrls = {
158
+ angular: 'https://github.com/sasjs/angular-seed-app',
159
+ minimal: 'https://github.com/sasjs/minimal-seed-app',
160
+ react: 'https://github.com/sasjs/react-seed-app'
161
+ };
150
162
  function createReactApp(folderPath) {
151
163
  return __awaiter(this, void 0, void 0, function () {
152
164
  var _this = this;
@@ -154,7 +166,7 @@ function createReactApp(folderPath) {
154
166
  return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
155
167
  return __generator(this, function (_a) {
156
168
  switch (_a.label) {
157
- case 0: return [4 /*yield*/, createApp(folderPath, 'https://github.com/sasjs/react-seed-app', 'https://github.com/sasjs/docs', function (err) {
169
+ case 0: return [4 /*yield*/, createApp(folderPath, exports.seedAppUrls.react, 'https://github.com/sasjs/docs', function (err) {
158
170
  return reject(new Error(err));
159
171
  })];
160
172
  case 1:
@@ -173,7 +185,7 @@ function createAngularApp(folderPath) {
173
185
  return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
174
186
  return __generator(this, function (_a) {
175
187
  switch (_a.label) {
176
- case 0: return [4 /*yield*/, createApp(folderPath, 'https://github.com/sasjs/angular-seed-app', 'https://github.com/sasjs/docs', function (err) {
188
+ case 0: return [4 /*yield*/, createApp(folderPath, exports.seedAppUrls.angular, 'https://github.com/sasjs/docs', function (err) {
177
189
  return reject(new Error(err));
178
190
  })];
179
191
  case 1:
@@ -192,7 +204,7 @@ function createMinimalApp(folderPath) {
192
204
  return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
193
205
  return __generator(this, function (_a) {
194
206
  switch (_a.label) {
195
- case 0: return [4 /*yield*/, createApp(folderPath, 'https://github.com/sasjs/minimal-seed-app', 'https://github.com/sasjs/docs', function (err) {
207
+ case 0: return [4 /*yield*/, createApp(folderPath, exports.seedAppUrls.minimal, 'https://github.com/sasjs/docs', function (err) {
196
208
  return reject(new Error(err));
197
209
  })];
198
210
  case 1:
package/package.json CHANGED
@@ -71,7 +71,7 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "@sasjs/adapter": "6.0.2",
74
- "@sasjs/api": "0.28.0",
74
+ "@sasjs/api": "0.38.0",
75
75
  "@sasjs/core": "7.1.12",
76
76
  "@sasjs/lint": "5.3.0",
77
77
  "@sasjs/utils": "4.11.0",
@@ -125,5 +125,5 @@
125
125
  "ws": "8.21.0",
126
126
  "nanoid": "3.3.18"
127
127
  },
128
- "version": "6.28.0"
128
+ "version": "6.30.0"
129
129
  }
@@ -1,2 +0,0 @@
1
- import { Folder } from '../../../types';
2
- export declare const angularAppFiles: Folder;
@@ -1,119 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.angularAppFiles = void 0;
4
- exports.angularAppFiles = {
5
- folderName: '',
6
- files: [
7
- { fileName: 'package.json' },
8
- { fileName: 'package-lock.json' },
9
- { fileName: 'tsconfig.json' },
10
- { fileName: 'tslint.json' },
11
- { fileName: 'angular.json' },
12
- { fileName: 'tsconfig.app.json' },
13
- { fileName: 'README.md' }
14
- ],
15
- subFolders: [
16
- {
17
- folderName: 'sasjs',
18
- files: [{ fileName: 'sasjsconfig.json' }],
19
- subFolders: [
20
- {
21
- folderName: 'macros',
22
- files: [],
23
- subFolders: []
24
- },
25
- {
26
- folderName: 'services',
27
- files: [],
28
- subFolders: [
29
- {
30
- folderName: 'common',
31
- subFolders: [],
32
- files: [{ fileName: 'appinit.sas' }, { fileName: 'getdata.sas' }]
33
- }
34
- ]
35
- }
36
- ]
37
- },
38
- {
39
- folderName: 'src',
40
- files: [
41
- { fileName: 'favicon.ico' },
42
- { fileName: 'index.html' },
43
- { fileName: 'main.ts' },
44
- { fileName: 'polyfills.ts' },
45
- { fileName: 'styles.scss' }
46
- ],
47
- subFolders: [
48
- {
49
- folderName: 'app',
50
- files: [
51
- { fileName: 'app.component.html' },
52
- { fileName: 'app.component.scss' },
53
- { fileName: 'app.component.spec.ts' },
54
- { fileName: 'app.component.ts' },
55
- { fileName: 'app.module.ts' },
56
- { fileName: 'app-routing.module.ts' },
57
- { fileName: 'sas.service.spec.ts' },
58
- { fileName: 'sas.service.ts' },
59
- { fileName: 'state.service.spec.ts' },
60
- { fileName: 'state.service.ts' }
61
- ],
62
- subFolders: [
63
- {
64
- folderName: 'sasjs-ui',
65
- files: [
66
- { fileName: 'sasjs-ui.component.html' },
67
- { fileName: 'sasjs-ui.component.spec.ts' },
68
- { fileName: 'sasjs-ui.component.scss' },
69
- { fileName: 'sasjs-ui.component.ts' }
70
- ],
71
- subFolders: []
72
- },
73
- {
74
- folderName: 'data',
75
- files: [
76
- { fileName: 'data.component.html' },
77
- { fileName: 'data.component.scss' },
78
- { fileName: 'data.component.spec.ts' },
79
- { fileName: 'data.component.ts' }
80
- ],
81
- subFolders: []
82
- },
83
- {
84
- folderName: 'home-page',
85
- files: [
86
- { fileName: 'home-page.component.html' },
87
- { fileName: 'home-page.component.scss' },
88
- { fileName: 'home-page.component.spec.ts' },
89
- { fileName: 'home-page.component.ts' }
90
- ],
91
- subFolders: []
92
- }
93
- ]
94
- },
95
- {
96
- folderName: 'assets',
97
- files: [
98
- { fileName: 'angular-logo.png' },
99
- { fileName: 'logo-white.png' }
100
- ],
101
- subFolders: []
102
- },
103
- {
104
- folderName: 'environments',
105
- files: [
106
- { fileName: 'environment.prod.ts' },
107
- { fileName: 'environment.ts' }
108
- ],
109
- subFolders: []
110
- }
111
- ]
112
- },
113
- {
114
- folderName: 'docs',
115
- files: [{ fileName: 'index.html' }],
116
- subFolders: []
117
- }
118
- ]
119
- };
@@ -1,2 +0,0 @@
1
- import { Folder } from '../../../types';
2
- export declare const minimalAppFiles: Folder;
@@ -1,44 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.minimalAppFiles = void 0;
4
- exports.minimalAppFiles = {
5
- folderName: '',
6
- files: [
7
- { fileName: 'package.json' },
8
- { fileName: 'package-lock.json' },
9
- { fileName: 'README.md' }
10
- ],
11
- subFolders: [
12
- {
13
- folderName: 'sasjs',
14
- files: [{ fileName: 'sasjsconfig.json' }],
15
- subFolders: [
16
- {
17
- folderName: 'macros',
18
- files: [],
19
- subFolders: []
20
- },
21
- {
22
- folderName: 'services',
23
- files: [],
24
- subFolders: [
25
- {
26
- folderName: 'common',
27
- files: [{ fileName: 'appinit.sas' }, { fileName: 'getdata.sas' }],
28
- subFolders: []
29
- }
30
- ]
31
- }
32
- ]
33
- },
34
- {
35
- folderName: 'src',
36
- files: [
37
- { fileName: 'index.html' },
38
- { fileName: 'scripts.js' },
39
- { fileName: 'style.css' }
40
- ],
41
- subFolders: []
42
- }
43
- ]
44
- };
@@ -1,2 +0,0 @@
1
- import { Folder } from '../../../types';
2
- export declare const reactAppFiles: Folder;
@@ -1,93 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reactAppFiles = void 0;
4
- exports.reactAppFiles = {
5
- folderName: '',
6
- files: [
7
- { fileName: 'package.json' },
8
- { fileName: 'package-lock.json' },
9
- { fileName: 'tsconfig.json' },
10
- { fileName: 'README.md' },
11
- { fileName: 'webpack.common.js' },
12
- { fileName: 'webpack.dev.js' },
13
- { fileName: 'webpack.prod.js' }
14
- ],
15
- subFolders: [
16
- {
17
- folderName: 'sasjs',
18
- files: [{ fileName: 'sasjsconfig.json' }],
19
- subFolders: [
20
- {
21
- folderName: 'macros',
22
- files: [],
23
- subFolders: []
24
- },
25
- {
26
- folderName: 'services',
27
- files: [],
28
- subFolders: [
29
- {
30
- folderName: 'common',
31
- files: [{ fileName: 'appinit.sas' }, { fileName: 'getdata.sas' }],
32
- subFolders: []
33
- }
34
- ]
35
- }
36
- ]
37
- },
38
- {
39
- folderName: 'src',
40
- files: [
41
- { fileName: 'App.scss' },
42
- { fileName: 'index.scss' },
43
- { fileName: 'index.tsx' },
44
- { fileName: 'logo.svg' }
45
- ],
46
- subFolders: [
47
- {
48
- folderName: 'components',
49
- files: [
50
- { fileName: 'data-page.component.tsx' },
51
- { fileName: 'home-page.component.tsx' },
52
- { fileName: 'login.component.tsx' },
53
- { fileName: 'request-modal.component.tsx' },
54
- { fileName: 'syntax-highlighting.css' },
55
- { fileName: 'user-name.component.tsx' }
56
- ],
57
- subFolders: []
58
- },
59
- {
60
- folderName: 'context',
61
- files: [{ fileName: 'sasContext.tsx' }],
62
- subFolders: []
63
- },
64
- {
65
- folderName: 'layouts',
66
- files: [{ fileName: 'Main.jsx' }],
67
- subFolders: []
68
- },
69
- {
70
- folderName: 'routes',
71
- files: [{ fileName: 'index.js' }],
72
- subFolders: []
73
- },
74
- {
75
- folderName: 'theme',
76
- files: [{ fileName: 'index.ts' }],
77
- subFolders: []
78
- }
79
- ]
80
- },
81
- {
82
- folderName: 'public',
83
- files: [],
84
- subFolders: [
85
- {
86
- folderName: 'docs',
87
- files: [{ fileName: 'index.html' }],
88
- subFolders: []
89
- }
90
- ]
91
- }
92
- ]
93
- };