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 +16 -1
- package/CHANGELOG.md +12 -4
- package/lib/createDataverseProject.js +25 -21
- package/lib/plop.js +3 -3
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "create-powerapps-project",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
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
|
|
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.
|
|
7
|
+
## 0.15.6
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Mon, 17 Jan 2022 15:43:47 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
59
|
+
console.info(`${kleur_1.default.green(tick)} run powerapps-project-${type} code generator`);
|
|
59
60
|
await (0, plop_1.runGenerator)(generator, config);
|
|
60
|
-
|
|
61
|
+
console.info(`${kleur_1.default.green(tick)} initialize project`);
|
|
61
62
|
pkg.install(process.cwd(), type);
|
|
62
63
|
if (type === 'assembly') {
|
|
63
|
-
|
|
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
|
-
|
|
132
|
+
|
|
133
|
+
${kleur_1.default.green(tick)} ${type} project created!
|
|
132
134
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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
|
-
|
|
139
|
+
${type === 'webresource' ?
|
|
138
140
|
`build your project in watch mode with this command:
|
|
139
|
-
${pkg.getYarn() ? 'yarn' : 'npm run'} start
|
|
140
|
-
|
|
141
|
-
${pkg.getYarn() ? 'yarn' : 'npm run'} build
|
|
142
|
-
|
|
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
|
-
|
|
146
|
-
|
|
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
|
-
|
|
150
|
-
${pkg.getYarn() ? 'yarn' : 'npm run'} gen
|
|
151
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
30
|
+
console.log(`${tick} ${change.path}`);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
};
|