create-powerapps-project 0.14.2 → 0.14.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/README.md +35 -35
- package/lib/createDataverseProject.js +22 -47
- package/lib/getEnvInfo.js +8 -16
- package/lib/index.js +4 -9
- package/lib/nuget.js +10 -18
- package/lib/packageManager.js +11 -17
- package/lib/plop.d.ts +1 -1
- package/lib/plop.js +9 -17
- package/lib/plopfile.js +6 -11
- package/license +21 -0
- package/package.json +8 -7
- package/plop-templates/assembly/.vscode/tasks.json +24 -24
- package/plop-templates/assembly/package.json.hbs +1 -1
- package/plop-templates/assembly/plopfile.js +2 -2
- package/plop-templates/webresource/plopfile.js +2 -2
- package/CHANGELOG.json +0 -628
- package/CHANGELOG.md +0 -321
- package/plop-templates/assembly/.gitignore +0 -362
- package/plop-templates/webresource/.gitignore +0 -43
package/README.md
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
# create-powerapps-project
|
|
2
|
-
| NPM |
|
|
3
|
-
| --- |
|
|
4
|
-
| [](https://www.npmjs.com/package/create-powerapps-project) |
|
|
5
|
-
|
|
6
|
-
Project generator for Dataverse development
|
|
7
|
-
|
|
8
|
-
# Generators
|
|
9
|
-
|
|
10
|
-
* Web resource project scaffolding
|
|
11
|
-
* [Typescript](https://www.typescriptlang.org/index.html) for JavaScript files
|
|
12
|
-
* [Webpack](https://webpack.js.org/) for bundling
|
|
13
|
-
* [Babel](https://babeljs.io/) for polyfills and compiling ES2015+
|
|
14
|
-
* Unit tests using [xrm-mock](https://github.com/camelCaseDave/xrm-mock) and [Jest](https://jestjs.io/)
|
|
15
|
-
* Deploy web resources
|
|
16
|
-
* Plugin project scaffolding
|
|
17
|
-
* Base plugin classes
|
|
18
|
-
* No ILMerge needed
|
|
19
|
-
* Deploy plugin assemblies and types
|
|
20
|
-
* Deploy plugin steps
|
|
21
|
-
* Workflow project scaffolding
|
|
22
|
-
* Workflow activity base class
|
|
23
|
-
* No ILMerge needed
|
|
24
|
-
* Deploy workflow assemblies and types
|
|
25
|
-
|
|
26
|
-
# Create project
|
|
27
|
-
|
|
28
|
-
```sh
|
|
29
|
-
npm init powerapps-project
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
# Add files to project
|
|
33
|
-
|
|
34
|
-
```sh
|
|
35
|
-
npm run gen
|
|
1
|
+
# create-powerapps-project
|
|
2
|
+
| NPM |
|
|
3
|
+
| --- |
|
|
4
|
+
| [](https://www.npmjs.com/package/create-powerapps-project) |
|
|
5
|
+
|
|
6
|
+
Project generator for Dataverse development
|
|
7
|
+
|
|
8
|
+
# Generators
|
|
9
|
+
|
|
10
|
+
* Web resource project scaffolding
|
|
11
|
+
* [Typescript](https://www.typescriptlang.org/index.html) for JavaScript files
|
|
12
|
+
* [Webpack](https://webpack.js.org/) for bundling
|
|
13
|
+
* [Babel](https://babeljs.io/) for polyfills and compiling ES2015+
|
|
14
|
+
* Unit tests using [xrm-mock](https://github.com/camelCaseDave/xrm-mock) and [Jest](https://jestjs.io/)
|
|
15
|
+
* Deploy web resources
|
|
16
|
+
* Plugin project scaffolding
|
|
17
|
+
* Base plugin classes
|
|
18
|
+
* No ILMerge needed
|
|
19
|
+
* Deploy plugin assemblies and types
|
|
20
|
+
* Deploy plugin steps
|
|
21
|
+
* Workflow project scaffolding
|
|
22
|
+
* Workflow activity base class
|
|
23
|
+
* No ILMerge needed
|
|
24
|
+
* Deploy workflow assemblies and types
|
|
25
|
+
|
|
26
|
+
# Create project
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
npm init powerapps-project
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
# Add files to project
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
npm run gen
|
|
36
36
|
```
|
|
@@ -1,41 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
const prompts_1 = __importDefault(require("prompts"));
|
|
26
|
-
const nuget_1 = require("./nuget");
|
|
27
|
-
const path_1 = __importDefault(require("path"));
|
|
28
|
-
const plop_1 = require("./plop");
|
|
29
|
-
const pkg = __importStar(require("./packageManager"));
|
|
30
|
-
const just_scripts_utils_1 = require("just-scripts-utils");
|
|
31
|
-
const getEnvInfo_1 = require("./getEnvInfo");
|
|
32
|
-
async function create(argv) {
|
|
33
|
-
await getEnvInfo_1.initialize();
|
|
34
|
-
argv.name = path_1.default.basename(process.cwd());
|
|
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());
|
|
35
11
|
if (!argv.type || (argv.type !== 'webresource' && argv.type !== 'assembly')) {
|
|
36
12
|
const invalid = argv.type !== undefined && argv.type !== 'webresource' && argv.type !== 'assembly';
|
|
37
13
|
const invalidMessage = invalid ? `${argv.type} is not a valid project type.` : '';
|
|
38
|
-
const { type } = await
|
|
14
|
+
const { type } = await prompts({
|
|
39
15
|
type: 'select',
|
|
40
16
|
name: 'type',
|
|
41
17
|
message: `${invalidMessage} Select dataverse project to create?`,
|
|
@@ -47,24 +23,23 @@ async function create(argv) {
|
|
|
47
23
|
argv.type = type;
|
|
48
24
|
}
|
|
49
25
|
const questions = await getAnswers(argv.type);
|
|
50
|
-
const config = (await
|
|
26
|
+
const config = (await prompts(questions));
|
|
51
27
|
if (argv.type === 'assembly') {
|
|
52
|
-
const xrmVersions = await
|
|
28
|
+
const xrmVersions = await getNugetPackageVersions('JourneyTeam.Xrm');
|
|
53
29
|
config.xrmVersion = xrmVersions.shift();
|
|
54
30
|
}
|
|
55
|
-
|
|
56
|
-
const generator =
|
|
57
|
-
|
|
58
|
-
await
|
|
59
|
-
|
|
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');
|
|
60
36
|
pkg.install(process.cwd(), argv.type);
|
|
61
37
|
if (argv.type === 'assembly') {
|
|
62
|
-
|
|
63
|
-
|
|
38
|
+
logger.info('add nuget packages');
|
|
39
|
+
install(config.name, config.sdkVersion, config.xrmVersion);
|
|
64
40
|
}
|
|
65
41
|
done(argv);
|
|
66
42
|
}
|
|
67
|
-
exports.default = create;
|
|
68
43
|
async function getAnswers(type) {
|
|
69
44
|
let questions = [];
|
|
70
45
|
if (type === 'webresource') {
|
|
@@ -75,7 +50,7 @@ async function getAnswers(type) {
|
|
|
75
50
|
});
|
|
76
51
|
}
|
|
77
52
|
else {
|
|
78
|
-
const versions = await
|
|
53
|
+
const versions = await getNugetPackageVersions('Microsoft.CrmSdk.Workflow');
|
|
79
54
|
questions = [
|
|
80
55
|
{
|
|
81
56
|
type: 'select',
|
|
@@ -148,5 +123,5 @@ function done(argv) {
|
|
|
148
123
|
run code generator with this command:
|
|
149
124
|
${pkg.getYarn() ? 'yarn' : 'npm run'} gen
|
|
150
125
|
`;
|
|
151
|
-
|
|
126
|
+
logger.info(prettyPrintMarkdown(message));
|
|
152
127
|
}
|
package/lib/getEnvInfo.js
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
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;
|
|
7
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import envinfo from 'envinfo';
|
|
3
|
+
import os from 'os';
|
|
4
|
+
import path from 'path';
|
|
11
5
|
let envInfoCache;
|
|
12
|
-
const getEnvInfo = () => {
|
|
6
|
+
export const getEnvInfo = () => {
|
|
13
7
|
return envInfoCache;
|
|
14
8
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
envInfoCache = JSON.parse(await envinfo_1.default.run({
|
|
9
|
+
export const initialize = async () => {
|
|
10
|
+
envInfoCache = JSON.parse(await envinfo.run({
|
|
18
11
|
Binaries: ['Yarn', 'npm']
|
|
19
12
|
}, { json: true, showNotFound: false }));
|
|
20
13
|
if (envInfoCache.Binaries.Yarn) {
|
|
@@ -25,10 +18,9 @@ const initialize = async () => {
|
|
|
25
18
|
}
|
|
26
19
|
return envInfoCache;
|
|
27
20
|
};
|
|
28
|
-
exports.initialize = initialize;
|
|
29
21
|
const expandHome = (pathString) => {
|
|
30
|
-
if (pathString.startsWith('~' +
|
|
31
|
-
return pathString.replace('~',
|
|
22
|
+
if (pathString.startsWith('~' + path.sep)) {
|
|
23
|
+
return pathString.replace('~', os.homedir());
|
|
32
24
|
}
|
|
33
25
|
return pathString;
|
|
34
26
|
};
|
package/lib/index.js
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
const yargs_1 = require("yargs");
|
|
8
|
-
const createDataverseProject_1 = __importDefault(require("./createDataverseProject"));
|
|
2
|
+
import { command } from 'yargs';
|
|
3
|
+
import create from './createDataverseProject';
|
|
9
4
|
const options = {
|
|
10
5
|
aliases: '*',
|
|
11
6
|
command: 'init',
|
|
12
7
|
builder: yargs => yargs.option('type', { describe: 'Type of project to generate', alias: ['t'] }),
|
|
13
8
|
describe: 'Create new dataverse project',
|
|
14
|
-
handler:
|
|
9
|
+
handler: create
|
|
15
10
|
};
|
|
16
|
-
|
|
11
|
+
command(options).help().argv;
|
package/lib/nuget.js
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.install = exports.getNugetPackageVersions = void 0;
|
|
7
|
-
const https_1 = __importDefault(require("https"));
|
|
8
|
-
const child_process_1 = require("child_process");
|
|
9
|
-
const getNugetPackageVersions = (name) => {
|
|
1
|
+
import https from 'https';
|
|
2
|
+
import { spawnSync } from 'child_process';
|
|
3
|
+
export const getNugetPackageVersions = (name) => {
|
|
10
4
|
return new Promise((resolve, reject) => {
|
|
11
|
-
|
|
5
|
+
https.get(`https://azuresearch-usnc.nuget.org/query?q=packageid:${name}`, (response) => {
|
|
12
6
|
let body = '';
|
|
13
7
|
response.on('data', (d) => {
|
|
14
8
|
body += d;
|
|
@@ -25,31 +19,29 @@ const getNugetPackageVersions = (name) => {
|
|
|
25
19
|
});
|
|
26
20
|
});
|
|
27
21
|
};
|
|
28
|
-
|
|
29
|
-
const install = (project, sdkVersion, xrmVersion) => {
|
|
22
|
+
export const install = (project, sdkVersion, xrmVersion) => {
|
|
30
23
|
// Add solution
|
|
31
|
-
|
|
24
|
+
spawnSync('dotnet', ['new', 'sln', '-n', project], {
|
|
32
25
|
cwd: process.cwd(),
|
|
33
26
|
stdio: 'inherit'
|
|
34
27
|
});
|
|
35
|
-
|
|
28
|
+
spawnSync('dotnet', ['sln', 'add', `${project}.csproj`], {
|
|
36
29
|
cwd: process.cwd(),
|
|
37
30
|
stdio: 'inherit'
|
|
38
31
|
});
|
|
39
32
|
// Install nuget packages
|
|
40
33
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
41
|
-
|
|
34
|
+
spawnSync('dotnet', ['add', 'package', 'Microsoft.CrmSdk.Workflow', '-v', sdkVersion, '-n'], {
|
|
42
35
|
cwd: process.cwd(),
|
|
43
36
|
stdio: 'inherit'
|
|
44
37
|
});
|
|
45
38
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
46
|
-
|
|
39
|
+
spawnSync('dotnet', ['add', 'package', 'JourneyTeam.Xrm', '-v', xrmVersion, '-n'], {
|
|
47
40
|
cwd: process.cwd(),
|
|
48
41
|
stdio: 'inherit'
|
|
49
42
|
});
|
|
50
|
-
|
|
43
|
+
spawnSync('dotnet', ['restore'], {
|
|
51
44
|
cwd: process.cwd(),
|
|
52
45
|
stdio: 'inherit'
|
|
53
46
|
});
|
|
54
47
|
};
|
|
55
|
-
exports.install = install;
|
package/lib/packageManager.js
CHANGED
|
@@ -1,38 +1,32 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.install = exports.getYarn = void 0;
|
|
4
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const getYarn = () => {
|
|
8
|
-
const yarnInfo =
|
|
2
|
+
import { spawnSync } from 'child_process';
|
|
3
|
+
import { getEnvInfo } from './getEnvInfo';
|
|
4
|
+
export const getYarn = () => {
|
|
5
|
+
const yarnInfo = getEnvInfo().Binaries.Yarn;
|
|
9
6
|
return yarnInfo && yarnInfo.path;
|
|
10
7
|
};
|
|
11
|
-
exports.getYarn = getYarn;
|
|
12
8
|
const getNpm = () => {
|
|
13
|
-
const npmInfo =
|
|
9
|
+
const npmInfo = getEnvInfo().Binaries.npm;
|
|
14
10
|
return npmInfo && npmInfo.path;
|
|
15
11
|
};
|
|
16
|
-
const install = (cwd, type) => {
|
|
12
|
+
export const install = (cwd, type) => {
|
|
17
13
|
const packages = getPackages(type);
|
|
18
|
-
if (
|
|
19
|
-
|
|
14
|
+
if (getYarn()) {
|
|
15
|
+
spawnSync(getYarn(), ['add', ...packages.devDependencies], { stdio: 'inherit', cwd });
|
|
20
16
|
if (packages.dependencies) {
|
|
21
|
-
|
|
17
|
+
spawnSync(getYarn(), ['add', ...packages.dependencies], { stdio: 'inherit', cwd });
|
|
22
18
|
}
|
|
23
19
|
}
|
|
24
20
|
else {
|
|
25
|
-
|
|
21
|
+
spawnSync(getNpm(), ['add', ...packages.devDependencies], { stdio: 'inherit', cwd });
|
|
26
22
|
if (packages.dependencies) {
|
|
27
|
-
|
|
23
|
+
spawnSync(getNpm(), ['add', ...packages.dependencies], { stdio: 'inherit', cwd });
|
|
28
24
|
}
|
|
29
25
|
}
|
|
30
26
|
};
|
|
31
|
-
exports.install = install;
|
|
32
27
|
function getPackages(type) {
|
|
33
28
|
const packages = {
|
|
34
29
|
devDependencies: [
|
|
35
|
-
'plop',
|
|
36
30
|
`powerapps-project-${type}`,
|
|
37
31
|
'dataverse-utils'
|
|
38
32
|
]
|
package/lib/plop.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PlopGenerator } from 'node-plop';
|
|
2
2
|
import yargs from 'yargs';
|
|
3
3
|
import { Config } from './createDataverseProject';
|
|
4
|
-
export declare const getGenerator: (argv: yargs.Arguments) => PlopGenerator
|
|
4
|
+
export declare const getGenerator: (argv: yargs.Arguments) => Promise<PlopGenerator>;
|
|
5
5
|
export declare const runGenerator: (generator: PlopGenerator, args: Config) => Promise<void>;
|
package/lib/plop.js
CHANGED
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.runGenerator = exports.getGenerator = void 0;
|
|
7
|
-
const node_plop_1 = __importDefault(require("node-plop"));
|
|
8
|
-
const path_1 = __importDefault(require("path"));
|
|
9
|
-
const just_scripts_utils_1 = require("just-scripts-utils");
|
|
1
|
+
import nodePlop from 'node-plop';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { logger } from 'just-scripts-utils';
|
|
10
4
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
|
-
const getGenerator = (argv) => {
|
|
12
|
-
const plopFile =
|
|
13
|
-
const plop =
|
|
5
|
+
export const getGenerator = async (argv) => {
|
|
6
|
+
const plopFile = path.resolve(__dirname, 'plopfile.js');
|
|
7
|
+
const plop = await nodePlop(plopFile, { destBasePath: argv.destination, force: false });
|
|
14
8
|
const generator = plop.getGenerator(argv.type);
|
|
15
9
|
return generator;
|
|
16
10
|
};
|
|
17
|
-
|
|
18
|
-
const runGenerator = async (generator, args) => {
|
|
11
|
+
export const runGenerator = async (generator, args) => {
|
|
19
12
|
const results = await generator.runActions(args, {
|
|
20
13
|
onComment: (comment) => {
|
|
21
|
-
|
|
14
|
+
logger.info(comment);
|
|
22
15
|
}
|
|
23
16
|
});
|
|
24
17
|
if (results.failures && results.failures.length > 0) {
|
|
@@ -27,8 +20,7 @@ const runGenerator = async (generator, args) => {
|
|
|
27
20
|
// do something after the actions have run
|
|
28
21
|
for (const change of results.changes) {
|
|
29
22
|
if (change.path) {
|
|
30
|
-
|
|
23
|
+
logger.info(change.path);
|
|
31
24
|
}
|
|
32
25
|
}
|
|
33
26
|
};
|
|
34
|
-
exports.runGenerator = runGenerator;
|
package/lib/plopfile.js
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const path_1 = __importDefault(require("path"));
|
|
7
|
-
const child_process_1 = require("child_process");
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { spawnSync } from 'child_process';
|
|
8
3
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
9
4
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
10
|
-
|
|
5
|
+
export default (plop) => {
|
|
11
6
|
plop.setActionType('signAssembly', (answers) => {
|
|
12
|
-
const keyPath =
|
|
13
|
-
|
|
7
|
+
const keyPath = path.resolve(process.cwd(), `${answers.name}.snk`);
|
|
8
|
+
spawnSync(path.resolve(__dirname, '../', 'bin', 'sn.exe'), ['-q', '-k', keyPath], { stdio: 'inherit' });
|
|
14
9
|
return 'signed assembly';
|
|
15
10
|
});
|
|
16
11
|
plop.setGenerator('webresource', {
|
|
@@ -29,7 +24,7 @@ exports.default = (plop) => {
|
|
|
29
24
|
{
|
|
30
25
|
type: 'add',
|
|
31
26
|
templateFile: '../plop-templates/assembly/assembly.csproj.hbs',
|
|
32
|
-
path:
|
|
27
|
+
path: path.resolve(process.cwd(), '{{name}}.csproj'),
|
|
33
28
|
},
|
|
34
29
|
{
|
|
35
30
|
type: 'addMany',
|
package/license
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Derek Finlinson
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-powerapps-project",
|
|
3
|
-
"
|
|
3
|
+
"description": "Project generator for Dataverse development",
|
|
4
|
+
"version": "0.14.6",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"main": "lib/index.js",
|
|
6
7
|
"bin": {
|
|
@@ -23,14 +24,14 @@
|
|
|
23
24
|
"dependencies": {
|
|
24
25
|
"envinfo": "^7.8.1",
|
|
25
26
|
"node-plop": "^0.26.2",
|
|
26
|
-
"prompts": "^2.4.
|
|
27
|
-
"just-scripts-utils": "^1.1.
|
|
28
|
-
"yargs": "^
|
|
27
|
+
"prompts": "^2.4.2",
|
|
28
|
+
"just-scripts-utils": "^1.1.4",
|
|
29
|
+
"yargs": "^17.3.0"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
|
-
"@types/envinfo": "^7.8.
|
|
32
|
+
"@types/envinfo": "^7.8.1",
|
|
32
33
|
"@types/node": "^14.14.21",
|
|
33
|
-
"@types/prompts": "^2.0.
|
|
34
|
-
"@types/yargs": "^
|
|
34
|
+
"@types/prompts": "^2.0.14",
|
|
35
|
+
"@types/yargs": "^17.0.7"
|
|
35
36
|
}
|
|
36
37
|
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
{
|
|
2
|
-
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
-
// for the documentation about the tasks.json format
|
|
4
|
-
"version": "2.0.0",
|
|
5
|
-
"tasks": [
|
|
6
|
-
{
|
|
7
|
-
"label": "build",
|
|
8
|
-
"command": "dotnet",
|
|
9
|
-
"type": "shell",
|
|
10
|
-
"args": [
|
|
11
|
-
"build",
|
|
12
|
-
"/property:GenerateFullPaths=true",
|
|
13
|
-
"/consoleloggerparameters:NoSummary"
|
|
14
|
-
],
|
|
15
|
-
"group": {
|
|
16
|
-
"kind": "build",
|
|
17
|
-
"isDefault": true
|
|
18
|
-
},
|
|
19
|
-
"presentation": {
|
|
20
|
-
"reveal": "silent"
|
|
21
|
-
},
|
|
22
|
-
"problemMatcher": "$msCompile"
|
|
23
|
-
}
|
|
24
|
-
]
|
|
1
|
+
{
|
|
2
|
+
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
+
// for the documentation about the tasks.json format
|
|
4
|
+
"version": "2.0.0",
|
|
5
|
+
"tasks": [
|
|
6
|
+
{
|
|
7
|
+
"label": "build",
|
|
8
|
+
"command": "dotnet",
|
|
9
|
+
"type": "shell",
|
|
10
|
+
"args": [
|
|
11
|
+
"build",
|
|
12
|
+
"/property:GenerateFullPaths=true",
|
|
13
|
+
"/consoleloggerparameters:NoSummary"
|
|
14
|
+
],
|
|
15
|
+
"group": {
|
|
16
|
+
"kind": "build",
|
|
17
|
+
"isDefault": true
|
|
18
|
+
},
|
|
19
|
+
"presentation": {
|
|
20
|
+
"reveal": "silent"
|
|
21
|
+
},
|
|
22
|
+
"problemMatcher": "$msCompile"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
25
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports = function (plop) {
|
|
2
|
-
plop.load('powerapps-project-assembly
|
|
3
|
-
}
|
|
2
|
+
plop.load('powerapps-project-assembly');
|
|
3
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
module.exports = function (plop) {
|
|
2
|
-
plop.load('powerapps-project-webresource
|
|
3
|
-
}
|
|
2
|
+
plop.load('powerapps-project-webresource');
|
|
3
|
+
};
|