create-gen-app 0.4.0 → 0.6.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.
- package/esm/index.js +5 -0
- package/index.js +5 -0
- package/licenses-templates/CLOSED.txt +20 -0
- package/package.json +3 -3
package/esm/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { registerDefaultResolver } from 'inquirerer';
|
|
1
2
|
import { extractVariables } from './template/extract';
|
|
2
3
|
import { promptUser } from './template/prompt';
|
|
3
4
|
import { replaceVariables } from './template/replace';
|
|
5
|
+
import { listSupportedLicenses } from './licenses';
|
|
6
|
+
// Register the 'licenses' resolver for optionsFrom support
|
|
7
|
+
// This allows boilerplate templates to use: "optionsFrom": "licenses"
|
|
8
|
+
registerDefaultResolver('licenses', () => listSupportedLicenses());
|
|
4
9
|
// Export new modular classes
|
|
5
10
|
export * from './cache/cache-manager';
|
|
6
11
|
export * from './cache/types';
|
package/index.js
CHANGED
|
@@ -16,12 +16,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.replaceVariables = exports.promptUser = exports.extractVariables = void 0;
|
|
18
18
|
exports.createGen = createGen;
|
|
19
|
+
const inquirerer_1 = require("inquirerer");
|
|
19
20
|
const extract_1 = require("./template/extract");
|
|
20
21
|
Object.defineProperty(exports, "extractVariables", { enumerable: true, get: function () { return extract_1.extractVariables; } });
|
|
21
22
|
const prompt_1 = require("./template/prompt");
|
|
22
23
|
Object.defineProperty(exports, "promptUser", { enumerable: true, get: function () { return prompt_1.promptUser; } });
|
|
23
24
|
const replace_1 = require("./template/replace");
|
|
24
25
|
Object.defineProperty(exports, "replaceVariables", { enumerable: true, get: function () { return replace_1.replaceVariables; } });
|
|
26
|
+
const licenses_1 = require("./licenses");
|
|
27
|
+
// Register the 'licenses' resolver for optionsFrom support
|
|
28
|
+
// This allows boilerplate templates to use: "optionsFrom": "licenses"
|
|
29
|
+
(0, inquirerer_1.registerDefaultResolver)('licenses', () => (0, licenses_1.listSupportedLicenses)());
|
|
25
30
|
// Export new modular classes
|
|
26
31
|
__exportStar(require("./cache/cache-manager"), exports);
|
|
27
32
|
__exportStar(require("./cache/types"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) {{YEAR}} {{AUTHOR}}{{EMAIL_LINE}}
|
|
2
|
+
|
|
3
|
+
All Rights Reserved.
|
|
4
|
+
|
|
5
|
+
This software and associated documentation files (the "Software") are the
|
|
6
|
+
exclusive property of the copyright holder. No part of the Software may be
|
|
7
|
+
reproduced, distributed, modified, or transmitted in any form or by any means,
|
|
8
|
+
including photocopying, recording, or other electronic or mechanical methods,
|
|
9
|
+
without the prior written permission of the copyright holder.
|
|
10
|
+
|
|
11
|
+
Unauthorized copying, modification, distribution, or use of this Software,
|
|
12
|
+
via any medium, is strictly prohibited.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-gen-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Clone and customize template repositories with variable replacement",
|
|
6
6
|
"main": "index.js",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"appstash": "0.2.6",
|
|
32
|
-
"inquirerer": "2.
|
|
32
|
+
"inquirerer": "2.2.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"copyfiles": "^2.4.1",
|
|
36
36
|
"makage": "0.1.8"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [],
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "4daa10528afcb41fa99f6e94646ce40354121794"
|
|
40
40
|
}
|