create-powerapps-project 0.15.5 → 0.15.6

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.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "create-powerapps-project",
3
3
  "entries": [
4
4
  {
5
- "date": "Sun, 16 Jan 2022 23:22:02 GMT",
5
+ "date": "Mon, 17 Jan 2022 15:43:47 GMT",
6
+ "tag": "create-powerapps-project_v0.15.6",
7
+ "version": "0.15.6",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "derek.finlinson@journeyteam.com",
12
+ "package": "create-powerapps-project",
13
+ "commit": "d275c2308928ec40259d257ed132c91b3d1a87fb",
14
+ "comment": "Rework logger"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Sun, 16 Jan 2022 23:22:22 GMT",
6
21
  "tag": "create-powerapps-project_v0.15.5",
7
22
  "version": "0.15.5",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,17 +1,25 @@
1
1
  # Change Log - create-powerapps-project
2
2
 
3
- This log was last generated on Sun, 16 Jan 2022 23:22:02 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 17 Jan 2022 15:43:47 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.15.5
7
+ ## 0.15.6
8
8
 
9
- Sun, 16 Jan 2022 23:22:02 GMT
9
+ Mon, 17 Jan 2022 15:43:47 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Switch symbols (derek.finlinson@journeyteam.com)
13
+ - Rework logger (derek.finlinson@journeyteam.com)
14
14
 
15
+ ## 0.15.5
16
+
17
+ Sun, 16 Jan 2022 23:22:22 GMT
18
+
19
+ ### Patches
20
+
21
+ - Switch symbols (derek.finlinson@journeyteam.com)
22
+
15
23
  ## 0.15.4
16
24
 
17
25
  Sun, 16 Jan 2022 22:57:19 GMT
@@ -29,7 +29,8 @@ const path_1 = __importDefault(require("path"));
29
29
  const plop_1 = require("./plop");
30
30
  const pkg = __importStar(require("./packageManager"));
31
31
  const getEnvInfo_1 = require("./getEnvInfo");
32
- const logger_1 = require("./logger");
32
+ const kleur_1 = __importDefault(require("kleur"));
33
+ const tick = '√', pointer = '>';
33
34
  exports.default = async (type) => {
34
35
  await (0, getEnvInfo_1.initialize)();
35
36
  const name = path_1.default.basename(process.cwd());
@@ -53,14 +54,14 @@ exports.default = async (type) => {
53
54
  const xrmVersions = await (0, nuget_1.getNugetPackageVersions)('JourneyTeam.Xrm');
54
55
  config.xrmVersion = xrmVersions.shift();
55
56
  }
56
- logger_1.logger.info('get plop generator');
57
+ console.info(kleur_1.default.green(`${kleur_1.default.green(tick)} get plop generator`));
57
58
  const generator = await (0, plop_1.getGenerator)(type, name);
58
- logger_1.logger.info(`run powerapps-project-${type} code generator`);
59
+ console.info(`${kleur_1.default.green(tick)} run powerapps-project-${type} code generator`);
59
60
  await (0, plop_1.runGenerator)(generator, config);
60
- logger_1.logger.info('initialize project');
61
+ console.info(`${kleur_1.default.green(tick)} initialize project`);
61
62
  pkg.install(process.cwd(), type);
62
63
  if (type === 'assembly') {
63
- logger_1.logger.info('add nuget packages');
64
+ console.info(`${kleur_1.default.green(tick)} add nuget packages`);
64
65
  (0, nuget_1.install)(config.name, config.sdkVersion, config.xrmVersion);
65
66
  }
66
67
  (0, exports.done)(type);
@@ -128,26 +129,29 @@ const getAnswers = async (type) => {
128
129
  };
129
130
  const done = (type) => {
130
131
  const message = `
131
- ${type} project created!
132
+
133
+ ${kleur_1.default.green(tick)} ${type} project created!
132
134
 
133
- keep your build tools up-to-date by updating these two devDependencies:
134
- * dataverse-utils
135
- * powerapps-project-${type}
135
+ keep your build tools up-to-date by updating these two devDependencies:
136
+ ${kleur_1.default.cyan(pointer)} dataverse-utils
137
+ ${kleur_1.default.cyan(pointer)} powerapps-project-${type}
136
138
 
137
- ${type === 'webresource' ?
139
+ ${type === 'webresource' ?
138
140
  `build your project in watch mode with this command:
139
- ${pkg.getYarn() ? 'yarn' : 'npm run'} start
140
- build your project in production mode with this command:
141
- ${pkg.getYarn() ? 'yarn' : 'npm run'} build
142
- generate table definition files with this command:
143
- ${pkg.getYarn() ? 'yarn' : 'npm run'} generate` :
141
+ ${kleur_1.default.cyan(pointer)} ${pkg.getYarn() ? 'yarn' : 'npm run'} start
142
+ build your project in production mode with this command:
143
+ ${kleur_1.default.cyan(pointer)} ${pkg.getYarn() ? 'yarn' : 'npm run'} build
144
+ generate table definition files with this command:
145
+ ${kleur_1.default.cyan(pointer)} ${pkg.getYarn() ? 'yarn' : 'npm run'} generate` :
144
146
  `build your project with this command:
145
- dotnet build
146
- deploy your project with this command:
147
- ${pkg.getYarn() ? 'yarn' : 'npm run'} deploy`}
147
+ dotnet build
148
+ deploy your project with this command:
149
+ ${kleur_1.default.cyan(pointer)} ${pkg.getYarn() ? 'yarn' : 'npm run'} deploy`}
148
150
 
149
- run code generator with this command:
150
- ${pkg.getYarn() ? 'yarn' : 'npm run'} gen`;
151
- logger_1.logger.info(message);
151
+ run code generator with this command:
152
+ ${kleur_1.default.cyan(pointer)} ${pkg.getYarn() ? 'yarn' : 'npm run'} gen
153
+
154
+ `;
155
+ console.info(message);
152
156
  };
153
157
  exports.done = done;
package/lib/plop.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.runGenerator = exports.getGenerator = void 0;
7
7
  const node_plop_1 = __importDefault(require("node-plop"));
8
8
  const path_1 = __importDefault(require("path"));
9
- const logger_1 = require("./logger");
9
+ const tick = '√';
10
10
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11
11
  const getGenerator = async (type, name) => {
12
12
  const plopFile = path_1.default.resolve(__dirname, 'plopfile.js');
@@ -18,7 +18,7 @@ exports.getGenerator = getGenerator;
18
18
  const runGenerator = async (generator, args) => {
19
19
  const results = await generator.runActions(args, {
20
20
  onComment: (comment) => {
21
- logger_1.logger.info(comment);
21
+ console.log(`${tick} ${comment}`);
22
22
  }
23
23
  });
24
24
  if (results.failures && results.failures.length > 0) {
@@ -27,7 +27,7 @@ const runGenerator = async (generator, args) => {
27
27
  // do something after the actions have run
28
28
  for (const change of results.changes) {
29
29
  if (change.path) {
30
- logger_1.logger.info(change.path);
30
+ console.log(`${tick} ${change.path}`);
31
31
  }
32
32
  }
33
33
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-powerapps-project",
3
3
  "description": "💧 plop generator for Dataverse development",
4
- "version": "0.15.5",
4
+ "version": "0.15.6",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",
7
7
  "bin": {