create-powerapps-project 0.14.6 → 0.15.2

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 ADDED
@@ -0,0 +1,386 @@
1
+ # Change Log - create-powerapps-project
2
+
3
+ This log was last generated on Sun, 16 Jan 2022 22:28:23 GMT and should not be manually modified.
4
+
5
+ <!-- Start content -->
6
+
7
+ ## 0.15.2
8
+
9
+ Sun, 16 Jan 2022 22:28:23 GMT
10
+
11
+ ### Patches
12
+
13
+ - Remove pnpm (derek.finlinson@journeyteam.com)
14
+
15
+ ## 0.15.1
16
+
17
+ Sun, 16 Jan 2022 22:08:05 GMT
18
+
19
+ ### Patches
20
+
21
+ - Fix program command (derek.finlinson@journeyteam.com)
22
+
23
+ ## 0.15.0
24
+
25
+ Sun, 16 Jan 2022 21:30:27 GMT
26
+
27
+ ### Minor changes
28
+
29
+ - Remove dependencies; Fix plop dependency (derek.finlinson@journeyteam.com)
30
+
31
+ ## 0.14.7
32
+
33
+ Tue, 07 Dec 2021 19:52:53 GMT
34
+
35
+ ### Patches
36
+
37
+ - Switch to commonjs (derek.finlinson@journeyteam.com)
38
+
39
+ ## 0.14.6
40
+
41
+ Tue, 07 Dec 2021 19:41:35 GMT
42
+
43
+ ### Patches
44
+
45
+ - Revert to plop v2 (derek.finlinson@journeyteam.com)
46
+
47
+ ## 0.14.5
48
+
49
+ Tue, 07 Dec 2021 18:47:59 GMT
50
+
51
+ ### Patches
52
+
53
+ - Swap to commonjs (derek.finlinson@journeyteam.com)
54
+
55
+ ## 0.14.4
56
+
57
+ Thu, 02 Dec 2021 20:50:52 GMT
58
+
59
+ ### Patches
60
+
61
+ - Fix node-plop (derek.finlinson@journeyteam.com)
62
+ - Update plop (derek.finlinson@journeyteam.com)
63
+
64
+ ## 0.14.3
65
+
66
+ Wed, 22 Sep 2021 16:01:21 GMT
67
+
68
+ ### Patches
69
+
70
+ - Update deploy script (derek.finlinson@journeyteam.com)
71
+
72
+ ## 0.14.2
73
+
74
+ Thu, 16 Sep 2021 20:49:48 GMT
75
+
76
+ ### Patches
77
+
78
+ - New dataverse-utils scripts (derek.finlinson@journeyteam.com)
79
+
80
+ ## 0.14.1
81
+
82
+ Thu, 02 Sep 2021 16:46:01 GMT
83
+
84
+ ### Patches
85
+
86
+ - Update default scripts (derek.finlinson@journeyteam.com)
87
+
88
+ ## 0.14.0
89
+
90
+ Thu, 02 Sep 2021 16:22:00 GMT
91
+
92
+ ### Minor changes
93
+
94
+ - Use new dataverse-utils package (derek.finlinson@journeyteam.com)
95
+
96
+ ## 0.13.1
97
+
98
+ Mon, 28 Jun 2021 20:38:16 GMT
99
+
100
+ ### Patches
101
+
102
+ - Update package versions (derek.finlinson@journeyteam.com)
103
+
104
+ ## 0.12.1
105
+
106
+ Wed, 02 Jun 2021 16:21:14 GMT
107
+
108
+ ### Patches
109
+
110
+ - applying package updates (derek.finlinson@journeyteam.com)
111
+
112
+ ## 0.12.0
113
+
114
+ Mon, 24 May 2021 16:33:16 GMT
115
+
116
+ ### Minor changes
117
+
118
+ - Merge creds with config.json (derek.finlinson@journeyteam.com)
119
+
120
+ ## 0.11.4
121
+
122
+ Fri, 12 Feb 2021 17:05:15 GMT
123
+
124
+ ### Patches
125
+
126
+ - Use assets if emittedAssets is empty (derek.finlinson@journeyteam.com)
127
+
128
+ ## 0.11.3
129
+
130
+ Mon, 01 Feb 2021 18:27:32 GMT
131
+
132
+ ### Patches
133
+
134
+ - Fix scripts (derek.finlinson@journeyteam.com)
135
+
136
+ ## 0.11.2
137
+
138
+ Mon, 01 Feb 2021 17:31:23 GMT
139
+
140
+ ### Patches
141
+
142
+ - Make executable (derek.finlinson@journeyteam.com)
143
+
144
+ ## 0.11.1
145
+
146
+ Mon, 01 Feb 2021 17:20:22 GMT
147
+
148
+ ### Patches
149
+
150
+ - Fix package dependencies (derek.finlinson@journeyteam.com)
151
+
152
+ ## 0.11.0
153
+
154
+ Sat, 30 Jan 2021 05:31:27 GMT
155
+
156
+ ### Minor changes
157
+
158
+ - Update deployment scripts; Refactor (derek.finlinson@journeyteam.com)
159
+
160
+ ## 0.10.3
161
+
162
+ Tue, 19 Jan 2021 16:29:25 GMT
163
+
164
+ ### Patches
165
+
166
+ - Always add solution (derek.finlinson@journeyteam.com)
167
+
168
+ ## 0.10.2
169
+
170
+ Mon, 18 Jan 2021 20:48:31 GMT
171
+
172
+ ### Patches
173
+
174
+ - Fix default webpack config (derek.finlinson@journeyteam.com)
175
+
176
+ ## 0.10.1
177
+
178
+ Fri, 15 Jan 2021 21:17:38 GMT
179
+
180
+ ### Patches
181
+
182
+ - Remove dependency (derek.finlinson@journeyteam.com)
183
+
184
+ ## 0.10.0
185
+
186
+ Thu, 14 Jan 2021 23:48:11 GMT
187
+
188
+ ### Minor changes
189
+
190
+ - Remove just-scripts (derek.finlinson@journeyteam.com)
191
+
192
+ ### Patches
193
+
194
+ - Bump dataverse-webapi to v1.0.1 (derek.finlinson@journeyteam.com)
195
+
196
+ ## 0.9.0
197
+
198
+ Thu, 14 Jan 2021 00:33:39 GMT
199
+
200
+ ### Minor changes
201
+
202
+ - Switch to dataverse-webapi (derek.finlinson@journeyteam.com)
203
+
204
+ ## 0.8.2
205
+
206
+ Tue, 29 Dec 2020 19:55:03 GMT
207
+
208
+ ### Patches
209
+
210
+ - Fix webpack compilation assets (derek.finlinson@journeyteam.com)
211
+
212
+ ## 0.8.1
213
+
214
+ Tue, 15 Dec 2020 20:28:34 GMT
215
+
216
+ ### Patches
217
+
218
+ - Fix files (derek.finlinson@journeyteam.com)
219
+
220
+ ## 0.8.0
221
+
222
+ Tue, 08 Dec 2020 18:10:21 GMT
223
+
224
+ ### Minor changes
225
+
226
+ - Add files to package.json (derek.finlinson@journeyteam.com)
227
+
228
+ ## 0.7.0
229
+
230
+ Mon, 07 Dec 2020 22:04:22 GMT
231
+
232
+ ### Minor changes
233
+
234
+ - Switch to TS just.config (derek.finlinson@journeyteam.com)
235
+
236
+ ## 0.6.7
237
+
238
+ Tue, 01 Dec 2020 19:40:31 GMT
239
+
240
+ ### Patches
241
+
242
+ - Remove IE support; Fix webpack config (derek.finlinson@journeyteam.com)
243
+
244
+ ## 0.6.6
245
+
246
+ Tue, 01 Dec 2020 17:28:45 GMT
247
+
248
+ ### Patches
249
+
250
+ - Fix bug when adding plugin step; Add tasks.json (derek.finlinson@journeyteam.com)
251
+
252
+ ## 0.6.5
253
+
254
+ Wed, 18 Nov 2020 15:18:31 GMT
255
+
256
+ ### Patches
257
+
258
+ - Remove default namespace for assemblies (derek.finlinson@journeyteam.com)
259
+
260
+ ## 0.6.4
261
+
262
+ Thu, 15 Oct 2020 20:08:59 GMT
263
+
264
+ ### Patches
265
+
266
+ - Re-add corejs (derek.finlinson@journeyteam.com)
267
+
268
+ ## 0.6.3
269
+
270
+ Thu, 15 Oct 2020 17:22:02 GMT
271
+
272
+ ### Patches
273
+
274
+ - Update dependencies (derek.finlinson@journeyteam.com)
275
+
276
+ ## 0.6.2
277
+
278
+ Tue, 13 Oct 2020 15:42:51 GMT
279
+
280
+ ### Patches
281
+
282
+ - Use specific just-scripts version (derek.finlinson@journeyteam.com)
283
+
284
+ ## 0.6.1
285
+
286
+ Tue, 13 Oct 2020 15:38:50 GMT
287
+
288
+ ### Patches
289
+
290
+ - Update dependencies (derek.finlinson@journeyteam.com)
291
+
292
+ ## 0.6.0
293
+
294
+ Fri, 02 Oct 2020 16:20:30 GMT
295
+
296
+ ### Minor changes
297
+
298
+ - Add tenant back but default to common (derek.finlinson@journeyteam.com)
299
+
300
+ ## 0.5.1
301
+
302
+ Tue, 25 Aug 2020 22:13:42 GMT
303
+
304
+ ### Patches
305
+
306
+ - Fix adding project to solution (derek.finlinson@journeyteam.com)
307
+
308
+ ## 0.5.0
309
+
310
+ Tue, 25 Aug 2020 22:05:30 GMT
311
+
312
+ ### Minor changes
313
+
314
+ - Add option to add VS solution (derek.finlinson@journeyteam.com)
315
+
316
+ ## 0.4.0
317
+
318
+ Wed, 19 Aug 2020 15:10:11 GMT
319
+
320
+ ### Minor changes
321
+
322
+ - Add deploy to webpack config (derek.finlinson@journeyteam.com)
323
+
324
+ ## 0.3.6
325
+
326
+ Tue, 21 Jul 2020 21:04:25 GMT
327
+
328
+ ### Patches
329
+
330
+ - Remove rename action (derek.finlinson@journeyteam.com)
331
+
332
+ ## 0.3.5
333
+
334
+ Tue, 21 Jul 2020 20:30:49 GMT
335
+
336
+ ### Patches
337
+
338
+ - Fix rename action (derek.finlinson@journeyteam.com)
339
+
340
+ ## 0.3.4
341
+
342
+ Tue, 21 Jul 2020 19:05:10 GMT
343
+
344
+ ### Patches
345
+
346
+ - Fix renaming (derek.finlinson@journeyteam.com)
347
+
348
+ ## 0.3.3
349
+
350
+ Mon, 20 Jul 2020 14:46:25 GMT
351
+
352
+ ### Patches
353
+
354
+ - Rename dot files (derek.finlinson@journeyteam.com)
355
+
356
+ ## 0.3.2
357
+
358
+ Mon, 20 Jul 2020 14:16:22 GMT
359
+
360
+ ### Patches
361
+
362
+ - Fix missing dependencies (derek.finlinson@journeyteam.com)
363
+
364
+ ## 0.3.1
365
+
366
+ Mon, 20 Jul 2020 13:55:48 GMT
367
+
368
+ ### Patches
369
+
370
+ - Add yargs as dependency (derek.finlinson@journeyteam.com)
371
+
372
+ ## 0.3.0
373
+
374
+ Sun, 19 Jul 2020 16:43:41 GMT
375
+
376
+ ### Minor changes
377
+
378
+ - Use new Nuget API URL (derek.finlinson@journeyteam.com)
379
+
380
+ ## 0.2.0
381
+
382
+ Thu, 16 Jul 2020 15:09:52 GMT
383
+
384
+ ### Minor changes
385
+
386
+ - Enable powerapps dependencies (derek.finlinson@journeyteam.com)
@@ -1,4 +1,3 @@
1
- import yargs from 'yargs';
2
1
  export interface Config {
3
2
  name: string;
4
3
  isolation: number;
@@ -8,4 +7,6 @@ export interface Config {
8
7
  xrmVersion?: string;
9
8
  sdkVersion?: string;
10
9
  }
11
- export default function create(argv: yargs.Arguments): Promise<void>;
10
+ declare const _default: (type: string) => Promise<void>;
11
+ export default _default;
12
+ export declare const done: (type: string) => void;
@@ -1,46 +1,71 @@
1
- import prompts from 'prompts';
2
- import { getNugetPackageVersions, install } from './nuget';
3
- import path from 'path';
4
- import { getGenerator, runGenerator } from './plop';
5
- import * as pkg from './packageManager';
6
- import { logger, prettyPrintMarkdown } from 'just-scripts-utils';
7
- import { initialize } from './getEnvInfo';
8
- export default async function create(argv) {
9
- await initialize();
10
- argv.name = path.basename(process.cwd());
11
- if (!argv.type || (argv.type !== 'webresource' && argv.type !== 'assembly')) {
12
- const invalid = argv.type !== undefined && argv.type !== 'webresource' && argv.type !== 'assembly';
13
- const invalidMessage = invalid ? `${argv.type} is not a valid project type.` : '';
14
- const { type } = await prompts({
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __importDefault = (this && this.__importDefault) || function (mod) {
22
+ return (mod && mod.__esModule) ? mod : { "default": mod };
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.done = void 0;
26
+ const prompts_1 = __importDefault(require("prompts"));
27
+ const nuget_1 = require("./nuget");
28
+ const path_1 = __importDefault(require("path"));
29
+ const plop_1 = require("./plop");
30
+ const pkg = __importStar(require("./packageManager"));
31
+ const getEnvInfo_1 = require("./getEnvInfo");
32
+ const logger_1 = require("./logger");
33
+ exports.default = async (type) => {
34
+ await (0, getEnvInfo_1.initialize)();
35
+ const name = path_1.default.basename(process.cwd());
36
+ if (!type || (type !== 'webresource' && type !== 'assembly')) {
37
+ const invalid = type !== undefined && type !== 'webresource' && type !== 'assembly';
38
+ const invalidMessage = invalid ? `${type} is not a valid project type.` : '';
39
+ const { promptType } = await (0, prompts_1.default)({
15
40
  type: 'select',
16
- name: 'type',
41
+ name: 'promptType',
17
42
  message: `${invalidMessage} Select dataverse project to create?`,
18
43
  choices: [
19
44
  { title: 'web resource', value: 'webresource' },
20
45
  { title: 'plugin or workflow activity', value: 'assembly' }
21
46
  ]
22
47
  });
23
- argv.type = type;
48
+ type = promptType;
24
49
  }
25
- const questions = await getAnswers(argv.type);
26
- const config = (await prompts(questions));
27
- if (argv.type === 'assembly') {
28
- const xrmVersions = await getNugetPackageVersions('JourneyTeam.Xrm');
50
+ const questions = await getAnswers(type);
51
+ const config = (await (0, prompts_1.default)(questions));
52
+ if (type === 'assembly') {
53
+ const xrmVersions = await (0, nuget_1.getNugetPackageVersions)('JourneyTeam.Xrm');
29
54
  config.xrmVersion = xrmVersions.shift();
30
55
  }
31
- logger.info('get plop generator');
32
- const generator = await getGenerator(argv);
33
- logger.info(`run powerapps-project-${argv.type} code generator`);
34
- await runGenerator(generator, config);
35
- logger.info('initialize project');
36
- pkg.install(process.cwd(), argv.type);
37
- if (argv.type === 'assembly') {
38
- logger.info('add nuget packages');
39
- install(config.name, config.sdkVersion, config.xrmVersion);
56
+ logger_1.logger.info('get plop generator');
57
+ const generator = await (0, plop_1.getGenerator)(type, name);
58
+ logger_1.logger.info(`run powerapps-project-${type} code generator`);
59
+ await (0, plop_1.runGenerator)(generator, config);
60
+ logger_1.logger.info('initialize project');
61
+ pkg.install(process.cwd(), type);
62
+ if (type === 'assembly') {
63
+ logger_1.logger.info('add nuget packages');
64
+ (0, nuget_1.install)(config.name, config.sdkVersion, config.xrmVersion);
40
65
  }
41
- done(argv);
42
- }
43
- async function getAnswers(type) {
66
+ (0, exports.done)(type);
67
+ };
68
+ const getAnswers = async (type) => {
44
69
  let questions = [];
45
70
  if (type === 'webresource') {
46
71
  questions.push({
@@ -50,7 +75,7 @@ async function getAnswers(type) {
50
75
  });
51
76
  }
52
77
  else {
53
- const versions = await getNugetPackageVersions('Microsoft.CrmSdk.Workflow');
78
+ const versions = await (0, nuget_1.getNugetPackageVersions)('Microsoft.CrmSdk.Workflow');
54
79
  questions = [
55
80
  {
56
81
  type: 'select',
@@ -100,28 +125,29 @@ async function getAnswers(type) {
100
125
  }
101
126
  ];
102
127
  return questions;
103
- }
104
- function done(argv) {
128
+ };
129
+ const done = (type) => {
105
130
  const message = `
106
- ${argv.type} project created!
131
+ ${type} project created!
107
132
 
108
- ## Keeping Up-to-date
109
133
  keep your build tools up-to-date by updating these two devDependencies:
110
- * dataverse-utils
111
- * powerapps-project-${argv.type}
112
- ${argv.type === 'webresource' ? '* just-scripts' : ''}
134
+ * dataverse-utils
135
+ * powerapps-project-${type}
113
136
 
114
- ## Next Steps
115
- ${argv.type === 'webresource' ? `
116
- build your project in watch mode with this command:
117
- ${pkg.getYarn() ? 'yarn' : 'npm'} start
137
+ ${type === 'webresource' ?
138
+ `build your project in watch mode with this command:
139
+ ${pkg.getYarn() ? 'yarn' : 'npm run'} start
118
140
  build your project in production mode with this command:
119
- ${pkg.getYarn() ? 'yarn' : 'npm run'} build` : `
120
- build your project with this command:
121
- dotnet build`}
141
+ ${pkg.getYarn() ? 'yarn' : 'npm run'} build
142
+ generate table definition files with this command:
143
+ ${pkg.getYarn() ? 'yarn' : 'npm run'} generate` :
144
+ `build your project with this command:
145
+ dotnet build
146
+ deploy your project with this command:
147
+ ${pkg.getYarn() ? 'yarn' : 'npm run'} deploy`}
122
148
 
123
149
  run code generator with this command:
124
- ${pkg.getYarn() ? 'yarn' : 'npm run'} gen
125
- `;
126
- logger.info(prettyPrintMarkdown(message));
127
- }
150
+ ${pkg.getYarn() ? 'yarn' : 'npm run'} gen`;
151
+ logger_1.logger.info(message);
152
+ };
153
+ exports.done = done;
@@ -1,2 +1,11 @@
1
- export declare const getEnvInfo: () => any;
1
+ export interface EnvInfoCache {
2
+ Binaries: {
3
+ Yarn: any;
4
+ npm: any;
5
+ };
6
+ npmGlobalPackages: {
7
+ pnpm: any;
8
+ };
9
+ }
10
+ export declare const getEnvInfo: () => EnvInfoCache;
2
11
  export declare const initialize: () => Promise<any>;
package/lib/getEnvInfo.js CHANGED
@@ -1,13 +1,20 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.initialize = exports.getEnvInfo = void 0;
1
7
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
- import envinfo from 'envinfo';
3
- import os from 'os';
4
- import path from 'path';
8
+ const envinfo_1 = __importDefault(require("envinfo"));
9
+ const os_1 = __importDefault(require("os"));
10
+ const path_1 = __importDefault(require("path"));
5
11
  let envInfoCache;
6
- export const getEnvInfo = () => {
12
+ const getEnvInfo = () => {
7
13
  return envInfoCache;
8
14
  };
9
- export const initialize = async () => {
10
- envInfoCache = JSON.parse(await envinfo.run({
15
+ exports.getEnvInfo = getEnvInfo;
16
+ const initialize = async () => {
17
+ envInfoCache = JSON.parse(await envinfo_1.default.run({
11
18
  Binaries: ['Yarn', 'npm']
12
19
  }, { json: true, showNotFound: false }));
13
20
  if (envInfoCache.Binaries.Yarn) {
@@ -18,9 +25,10 @@ export const initialize = async () => {
18
25
  }
19
26
  return envInfoCache;
20
27
  };
28
+ exports.initialize = initialize;
21
29
  const expandHome = (pathString) => {
22
- if (pathString.startsWith('~' + path.sep)) {
23
- return pathString.replace('~', os.homedir());
30
+ if (pathString.startsWith('~' + path_1.default.sep)) {
31
+ return pathString.replace('~', os_1.default.homedir());
24
32
  }
25
33
  return pathString;
26
34
  };
package/lib/index.js CHANGED
@@ -1,11 +1,24 @@
1
1
  #!/usr/bin/env node
2
- import { command } from 'yargs';
3
- import create from './createDataverseProject';
4
- const options = {
5
- aliases: '*',
6
- command: 'init',
7
- builder: yargs => yargs.option('type', { describe: 'Type of project to generate', alias: ['t'] }),
8
- describe: 'Create new dataverse project',
9
- handler: create
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
5
  };
11
- command(options).help().argv;
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const commander_1 = require("commander");
8
+ const kleur_1 = __importDefault(require("kleur"));
9
+ const createDataverseProject_1 = __importDefault(require("./createDataverseProject"));
10
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
11
+ const packageJson = require('../package');
12
+ const program = new commander_1.Command(packageJson.name);
13
+ program
14
+ .version(packageJson.version)
15
+ .description('Create new Dataverse project')
16
+ .usage(kleur_1.default.green('[type]'))
17
+ .argument('[type]', 'Type of project to generate')
18
+ .action(type => {
19
+ (0, createDataverseProject_1.default)(type);
20
+ });
21
+ program.parse(process.argv);
22
+ if (!process.argv.slice(1).length) {
23
+ program.outputHelp();
24
+ }
@@ -0,0 +1,5 @@
1
+ export declare const logger: {
2
+ info(...args: any[]): void;
3
+ warn(...args: any[]): void;
4
+ error(...args: any[]): void;
5
+ };
package/lib/logger.js ADDED
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.logger = void 0;
7
+ const kleur_1 = __importDefault(require("kleur"));
8
+ const square = '\u25a0';
9
+ const triangle = '\u25b2';
10
+ const emptySquare = '\u25a1';
11
+ const log = (method, symbol, ...args) => {
12
+ const now = new Date();
13
+ const timestamp = kleur_1.default.gray(`[${now.toLocaleTimeString()}]`);
14
+ console[method](timestamp, symbol, args);
15
+ };
16
+ exports.logger = {
17
+ info(...args) {
18
+ log('info', kleur_1.default.green(square), args);
19
+ },
20
+ warn(...args) {
21
+ log('warn', kleur_1.default.yellow(triangle), args);
22
+ },
23
+ error(...args) {
24
+ log('error', kleur_1.default.red(emptySquare), args);
25
+ }
26
+ };