create-video 3.0.0-wrappedup.220 → 3.0.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/LICENSE.md +2 -2
- package/dist/copy-template.d.ts +0 -0
- package/dist/copy-template.d.ts.map +0 -0
- package/dist/copy-template.js +0 -0
- package/dist/copy-template.js.map +0 -0
- package/dist/degit/degit.d.ts +3 -0
- package/dist/degit/degit.d.ts.map +1 -0
- package/dist/degit/degit.js +71 -0
- package/dist/degit/degit.js.map +1 -0
- package/dist/degit/index.d.ts +3 -0
- package/dist/degit/index.d.ts.map +1 -0
- package/dist/degit/index.js +71 -0
- package/dist/degit/index.js.map +1 -0
- package/dist/degit/utils.d.ts +1 -0
- package/dist/degit/utils.d.ts.map +1 -0
- package/dist/degit/utils.js +2 -0
- package/dist/degit/utils.js.map +1 -0
- package/dist/degit.d.ts +7 -0
- package/dist/degit.d.ts.map +1 -0
- package/dist/degit.js +56 -0
- package/dist/degit.js.map +1 -0
- package/dist/dotfiles.d.ts +0 -0
- package/dist/dotfiles.d.ts.map +0 -0
- package/dist/dotfiles.js +0 -0
- package/dist/dotfiles.js.map +0 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/init.d.ts +0 -0
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +86 -137
- package/dist/init.js.map +1 -1
- package/dist/log.d.ts +1 -1
- package/dist/log.d.ts.map +0 -0
- package/dist/log.js +0 -0
- package/dist/log.js.map +1 -1
- package/dist/mkdirp.d.ts +2 -0
- package/dist/mkdirp.d.ts.map +1 -0
- package/dist/mkdirp.js +23 -0
- package/dist/mkdirp.js.map +1 -0
- package/dist/open-in-editor-flow.d.ts +2 -0
- package/dist/open-in-editor-flow.d.ts.map +1 -0
- package/dist/open-in-editor-flow.js +47 -0
- package/dist/open-in-editor-flow.js.map +1 -0
- package/dist/open-in-editor.d.ts +15 -0
- package/dist/open-in-editor.d.ts.map +1 -0
- package/dist/open-in-editor.js +455 -0
- package/dist/open-in-editor.js.map +1 -0
- package/dist/patch-package-json.d.ts +2 -0
- package/dist/patch-package-json.d.ts.map +1 -0
- package/dist/patch-package-json.js +20 -0
- package/dist/patch-package-json.js.map +1 -0
- package/dist/patch-readme.d.ts +3 -0
- package/dist/patch-readme.d.ts.map +1 -0
- package/dist/patch-readme.js +34 -0
- package/dist/patch-readme.js.map +1 -0
- package/dist/pkg-managers.d.ts +7 -0
- package/dist/pkg-managers.d.ts.map +1 -0
- package/dist/pkg-managers.js +86 -0
- package/dist/pkg-managers.js.map +1 -0
- package/dist/prompts.d.ts +0 -0
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +9 -6
- package/dist/prompts.js.map +1 -1
- package/dist/resolve-project-root.d.ts +2 -0
- package/dist/resolve-project-root.d.ts.map +1 -0
- package/dist/resolve-project-root.js +69 -0
- package/dist/resolve-project-root.js.map +1 -0
- package/dist/strip-ansi.d.ts +2 -0
- package/dist/strip-ansi.d.ts.map +1 -0
- package/dist/strip-ansi.js +22 -0
- package/dist/strip-ansi.js.map +1 -0
- package/dist/validate-name.d.ts +2 -0
- package/dist/validate-name.d.ts.map +1 -0
- package/dist/validate-name.js +14 -0
- package/dist/validate-name.js.map +1 -0
- package/dist/yesno.d.ts +5 -0
- package/dist/yesno.d.ts.map +1 -0
- package/dist/yesno.js +46 -0
- package/dist/yesno.js.map +1 -0
- package/package.json +14 -13
package/LICENSE.md
CHANGED
|
@@ -7,7 +7,7 @@ Depending on the type of your legal entity, you are granted permission to use Re
|
|
|
7
7
|
|
|
8
8
|
## Free license
|
|
9
9
|
|
|
10
|
-
Copyright ©
|
|
10
|
+
Copyright © 2022 [Jonny Burger](https://jonny.io)
|
|
11
11
|
|
|
12
12
|
### Eligibility
|
|
13
13
|
|
|
@@ -32,7 +32,7 @@ The software is provided "as is", without warranty of any kind, express or impli
|
|
|
32
32
|
|
|
33
33
|
### Support
|
|
34
34
|
|
|
35
|
-
Support is provided on a best-we-can-do basis via GitHub Issues.
|
|
35
|
+
Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
|
|
36
36
|
|
|
37
37
|
## Company license
|
|
38
38
|
|
package/dist/copy-template.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/copy-template.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"degit.d.ts","sourceRoot":"","sources":["../../src/degit/degit.ts"],"names":[],"mappings":"AAUA,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,iBAwB9C;AAID,eAAO,MAAM,KAAK,YACR,MAAM,YACL,MAAM,OACX,MAAM,QACL,MAAM,kBAKZ,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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.degit = exports.fetch = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const tar_1 = __importDefault(require("tar"));
|
|
10
|
+
const log_1 = require("../log");
|
|
11
|
+
const https_1 = __importDefault(require("https"));
|
|
12
|
+
const os_1 = require("os");
|
|
13
|
+
const homeOrTemp = (0, os_1.homedir)() || (0, os_1.tmpdir)();
|
|
14
|
+
function fetch(url, dest) {
|
|
15
|
+
return new Promise((resolve, reject) => {
|
|
16
|
+
https_1.default
|
|
17
|
+
.get(url, (response) => {
|
|
18
|
+
const code = response.statusCode;
|
|
19
|
+
if (code >= 400) {
|
|
20
|
+
reject(new Error(`Network request to ${url} failed with code ${code} (${response.statusMessage})`));
|
|
21
|
+
}
|
|
22
|
+
else if (code >= 300) {
|
|
23
|
+
fetch(response.headers.location, dest)
|
|
24
|
+
.then(resolve)
|
|
25
|
+
.catch(reject);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
response
|
|
29
|
+
.pipe(fs_1.default.createWriteStream(dest))
|
|
30
|
+
.on('finish', () => resolve())
|
|
31
|
+
.on('error', reject);
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
.on('error', reject);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
exports.fetch = fetch;
|
|
38
|
+
const base = path_1.default.join(homeOrTemp, '.degit');
|
|
39
|
+
const degit = async (repoOrg, repoName, src, dest) => {
|
|
40
|
+
const dir = path_1.default.join(base, repoOrg, repoName);
|
|
41
|
+
await cloneWithTar(src, dir, dest);
|
|
42
|
+
};
|
|
43
|
+
exports.degit = degit;
|
|
44
|
+
async function cloneWithTar(src, dir, dest) {
|
|
45
|
+
const file = `${dir}/HEAD.tar.gz`;
|
|
46
|
+
const url = `${src}/archive/HEAD.tar.gz`;
|
|
47
|
+
try {
|
|
48
|
+
try {
|
|
49
|
+
fs_1.default.statSync(file);
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
mkdirp(path_1.default.dirname(file));
|
|
53
|
+
await fetch(url, file);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
catch (err) {
|
|
57
|
+
log_1.Log.error('Could not download ' + url);
|
|
58
|
+
log_1.Log.error(err);
|
|
59
|
+
process.exit(1);
|
|
60
|
+
}
|
|
61
|
+
mkdirp(dest);
|
|
62
|
+
await untar(file, dest);
|
|
63
|
+
}
|
|
64
|
+
function untar(file, dest) {
|
|
65
|
+
return tar_1.default.extract({
|
|
66
|
+
file,
|
|
67
|
+
strip: 1,
|
|
68
|
+
C: dest,
|
|
69
|
+
}, []);
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=degit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"degit.js","sourceRoot":"","sources":["../../src/degit/deg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M,iBAwB9C;AAID,eAAO,MAAM,KAAK,YACR,MAAM,YACL,MAAM,OACX,MAAM,QACL,MAAM,kBAKZ,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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.degit = exports.fetch = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const tar_1 = __importDefault(require("tar"));
|
|
10
|
+
const log_1 = require("../log");
|
|
11
|
+
const https_1 = __importDefault(require("https"));
|
|
12
|
+
const os_1 = require("os");
|
|
13
|
+
const homeOrTemp = (0, os_1.homedir)() || (0, os_1.tmpdir)();
|
|
14
|
+
function fetch(url, dest) {
|
|
15
|
+
return new Promise((resolve, reject) => {
|
|
16
|
+
https_1.default
|
|
17
|
+
.get(url, (response) => {
|
|
18
|
+
const code = response.statusCode;
|
|
19
|
+
if (code >= 400) {
|
|
20
|
+
reject(new Error(`Network request to ${url} failed with code ${code} (${response.statusMessage})`));
|
|
21
|
+
}
|
|
22
|
+
else if (code >= 300) {
|
|
23
|
+
fetch(response.headers.location, dest)
|
|
24
|
+
.then(resolve)
|
|
25
|
+
.catch(reject);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
response
|
|
29
|
+
.pipe(fs_1.default.createWriteStream(dest))
|
|
30
|
+
.on('finish', () => resolve())
|
|
31
|
+
.on('error', reject);
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
.on('error', reject);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
exports.fetch = fetch;
|
|
38
|
+
const base = path_1.default.join(homeOrTemp, '.degit');
|
|
39
|
+
const degit = async (repoOrg, repoName, src, dest) => {
|
|
40
|
+
const dir = path_1.default.join(base, repoOrg, repoName);
|
|
41
|
+
await cloneWithTar(src, dir, dest);
|
|
42
|
+
};
|
|
43
|
+
exports.degit = degit;
|
|
44
|
+
async function cloneWithTar(src, dir, dest) {
|
|
45
|
+
const file = `${dir}/HEAD.tar.gz`;
|
|
46
|
+
const url = `${src}/archive/HEAD.tar.gz`;
|
|
47
|
+
try {
|
|
48
|
+
try {
|
|
49
|
+
fs_1.default.statSync(file);
|
|
50
|
+
}
|
|
51
|
+
catch (err) {
|
|
52
|
+
mkdirp(path_1.default.dirname(file));
|
|
53
|
+
await fetch(url, file);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
catch (err) {
|
|
57
|
+
log_1.Log.error('Could not download ' + url);
|
|
58
|
+
log_1.Log.error(err);
|
|
59
|
+
process.exit(1);
|
|
60
|
+
}
|
|
61
|
+
mkdirp(dest);
|
|
62
|
+
await untar(file, dest);
|
|
63
|
+
}
|
|
64
|
+
function untar(file, dest) {
|
|
65
|
+
return tar_1.default.extract({
|
|
66
|
+
file,
|
|
67
|
+
strip: 1,
|
|
68
|
+
C: dest,
|
|
69
|
+
}, []);
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/degit/index.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,8CAAsB;AACtB,gCAA2B;AAE3B,kDAA0B;AAC1B,2BAAmC;AAEnC,MAAM,UAAU,GAAG,IAAA,YAAO,GAAE,IAAI,IAAA,WAAM,GAAE,CAAC;AAEzC,SAAgB,KAAK,CAAC,GAAW,EAAE,IAAY;IAC9C,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC5C,eAAK;aACH,GAAG,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE;YACtB,MAAM,IAAI,GAAG,QAAQ,CAAC,UAAoB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QAAQ,CAAC,IAAI,CAAC,CAAC;SAClB;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,CAAC,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;YAE3B,MAAM,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;SACvB;KACD;IAAC,OAAO,GAAG,EAAE;QACb,SAAG,CAAC,KAAK,CAAC,qBAAqB,GAAG,GAAG,CAAC,CAAC;QACvC,SAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAChB;IAED,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,MAAM,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACzB,CAAC;AAED,SAAS,KAAK,CAAC,IAAY,EAAE,IAAY;IACxC,OAAO,aAAG,CAAC,OAAO,CACjB;QACC,IAAI;QACJ,KAAK,EAAE,CAAC;QACR,CAAC,EAAE,IAAI;KACP,EACD,EAAE,CACF,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/degit/utils.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/degit/utils.ts"],"names":[],"mappings":""}
|
package/dist/degit.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"degit.d.ts","sourceRoot":"","sources":["../src/degit.ts"],"names":[],"mappings":"AAQA,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,iBAwB9C;AAED,eAAO,MAAM,KAAK;aAKR,MAAM;cACL,MAAM;UACV,MAAM;mBAaZ,CAAC"}
|
package/dist/degit.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
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.degit = exports.fetch = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = __importDefault(require("path"));
|
|
9
|
+
const tar_1 = __importDefault(require("tar"));
|
|
10
|
+
const https_1 = __importDefault(require("https"));
|
|
11
|
+
const os_1 = require("os");
|
|
12
|
+
const mkdirp_1 = require("./mkdirp");
|
|
13
|
+
function fetch(url, dest) {
|
|
14
|
+
return new Promise((resolve, reject) => {
|
|
15
|
+
https_1.default
|
|
16
|
+
.get(url, (response) => {
|
|
17
|
+
const code = response.statusCode;
|
|
18
|
+
if (code >= 400) {
|
|
19
|
+
reject(new Error(`Network request to ${url} failed with code ${code} (${response.statusMessage})`));
|
|
20
|
+
}
|
|
21
|
+
else if (code >= 300) {
|
|
22
|
+
fetch(response.headers.location, dest)
|
|
23
|
+
.then(resolve)
|
|
24
|
+
.catch(reject);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
response
|
|
28
|
+
.pipe(fs_1.default.createWriteStream(dest))
|
|
29
|
+
.on('finish', () => resolve())
|
|
30
|
+
.on('error', reject);
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
.on('error', reject);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
exports.fetch = fetch;
|
|
37
|
+
const degit = async ({ repoOrg, repoName, dest, }) => {
|
|
38
|
+
const base = path_1.default.join((0, os_1.tmpdir)(), '.degit');
|
|
39
|
+
const dir = path_1.default.join(base, repoOrg, repoName);
|
|
40
|
+
const file = `${dir}/HEAD.tar.gz`;
|
|
41
|
+
const url = `https://github.com/${repoOrg}/${repoName}/archive/HEAD.tar.gz`;
|
|
42
|
+
(0, mkdirp_1.mkdirp)(path_1.default.dirname(file));
|
|
43
|
+
await fetch(url, file);
|
|
44
|
+
(0, mkdirp_1.mkdirp)(dest);
|
|
45
|
+
await untar(file, dest);
|
|
46
|
+
fs_1.default.unlinkSync(file);
|
|
47
|
+
};
|
|
48
|
+
exports.degit = degit;
|
|
49
|
+
function untar(file, dest) {
|
|
50
|
+
return tar_1.default.extract({
|
|
51
|
+
file,
|
|
52
|
+
strip: 1,
|
|
53
|
+
C: dest,
|
|
54
|
+
}, []);
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=degit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"degit.js","sourceRoot":"","sources":["../src/degit.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,8CAAsB;AAEtB,kDAA0B;AAC1B,2BAA0B;AAC1B,qCAAgC;AAEhC,SAAgB,KAAK,CAAC,GAAW,EAAE,IAAY;IAC9C,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC5C,eAAK;aACH,GAAG,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE;YACtB,MAAM,IAAI,GAAG,QAAQ,CAAC,UAAoB,CAAC;YAC3C,IAAI,IAAI,IAAI,GAAG,EAAE;gBAChB,MAAM,CACL,IAAI,KAAK,CACR,sBAAsB,GAAG,qBAAqB,IAAI,KAAK,QAAQ,CAAC,aAAa,GAAG,CAChF,CACD,CAAC;aACF;iBAAM,IAAI,IAAI,IAAI,GAAG,EAAE;gBACvB,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAkB,EAAE,IAAI,CAAC;qBAC9C,IAAI,CAAC,OAAO,CAAC;qBACb,KAAK,CAAC,MAAM,CAAC,CAAC;aAChB;iBAAM;gBACN,QAAQ;qBACN,IAAI,CAAC,YAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;qBAChC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;qBAC7B,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;aACtB;QACF,CAAC,CAAC;aACD,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;AACJ,CAAC;AAxBD,sBAwBC;AAEM,MAAM,KAAK,GAAG,KAAK,EAAE,EAC3B,OAAO,EACP,QAAQ,EACR,IAAI,GAKJ,EAAE,EAAE;IACJ,MAAM,IAAI,GAAG,cAAI,CAAC,IAAI,CAAC,IAAA,WAAM,GAAE,EAAE,QAAQ,CAAC,CAAC;IAC3C,MAAM,GAAG,GAAG,cAAI,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC/C,MAAM,IAAI,GAAG,GAAG,GAAG,cAAc,CAAC;IAClC,MAAM,GAAG,GAAG,sBAAsB,OAAO,IAAI,QAAQ,sBAAsB,CAAC;IAE5E,IAAA,eAAM,EAAC,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC3B,MAAM,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAEvB,IAAA,eAAM,EAAC,IAAI,CAAC,CAAC;IACb,MAAM,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACxB,YAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AACrB,CAAC,CAAC;AApBW,QAAA,KAAK,SAoBhB;AAEF,SAAS,KAAK,CAAC,IAAY,EAAE,IAAY;IACxC,OAAO,aAAG,CAAC,OAAO,CACjB;QACC,IAAI;QACJ,KAAK,EAAE,CAAC;QACR,CAAC,EAAE,IAAI;KACP,EACD,EAAE,CACF,CAAC;AACH,CAAC"}
|
package/dist/dotfiles.d.ts
CHANGED
|
File without changes
|
package/dist/dotfiles.d.ts.map
CHANGED
|
File without changes
|
package/dist/dotfiles.js
CHANGED
|
File without changes
|
package/dist/dotfiles.js.map
CHANGED
|
File without changes
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/init.d.ts
CHANGED
|
File without changes
|
package/dist/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AA0GA,eAAO,MAAM,IAAI,qBA0GhB,CAAC"}
|
package/dist/init.js
CHANGED
|
@@ -24,82 +24,65 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.init = void 0;
|
|
26
26
|
const chalk_1 = __importDefault(require("chalk"));
|
|
27
|
-
const degit_1 = __importDefault(require("degit"));
|
|
28
27
|
const execa_1 = __importDefault(require("execa"));
|
|
29
|
-
const
|
|
30
|
-
const path_1 = __importDefault(require("path"));
|
|
31
|
-
const strip_ansi_1 = __importDefault(require("strip-ansi"));
|
|
28
|
+
const strip_ansi_1 = require("./strip-ansi");
|
|
32
29
|
const log_1 = require("./log");
|
|
30
|
+
const open_in_editor_flow_1 = require("./open-in-editor-flow");
|
|
31
|
+
const pkg_managers_1 = require("./pkg-managers");
|
|
33
32
|
const prompts_1 = __importStar(require("./prompts"));
|
|
33
|
+
const resolve_project_root_1 = require("./resolve-project-root");
|
|
34
|
+
const patch_readme_1 = require("./patch-readme");
|
|
35
|
+
const patch_package_json_1 = require("./patch-package-json");
|
|
36
|
+
const degit_1 = require("./degit");
|
|
34
37
|
const FEATURED_TEMPLATES = [
|
|
35
38
|
{
|
|
36
39
|
shortName: 'Hello World',
|
|
37
|
-
|
|
40
|
+
org: 'remotion-dev',
|
|
41
|
+
repoName: 'template-helloworld',
|
|
38
42
|
description: 'The default starter template (recommended)',
|
|
39
43
|
},
|
|
40
44
|
{
|
|
41
45
|
shortName: 'Blank',
|
|
42
|
-
name: 'remotion-dev/template-empty',
|
|
43
46
|
description: 'Nothing except an empty canvas',
|
|
47
|
+
org: 'remotion-dev',
|
|
48
|
+
repoName: 'template-empty',
|
|
44
49
|
},
|
|
45
50
|
{
|
|
46
51
|
shortName: 'Hello World (Javascript)',
|
|
47
|
-
|
|
52
|
+
org: 'remotion-dev',
|
|
53
|
+
repoName: 'template-helloworld-javascript',
|
|
48
54
|
description: 'The default starter template in plain JS',
|
|
49
55
|
},
|
|
50
56
|
{
|
|
51
57
|
shortName: 'React Three Fiber',
|
|
52
|
-
|
|
58
|
+
org: 'remotion-dev',
|
|
59
|
+
repoName: 'template-three',
|
|
53
60
|
description: 'Remotion + React Three Fiber Starter Template',
|
|
54
61
|
},
|
|
55
62
|
{
|
|
56
63
|
shortName: 'Still images',
|
|
57
|
-
|
|
64
|
+
org: 'remotion-dev',
|
|
65
|
+
repoName: 'template-still',
|
|
58
66
|
description: 'Dynamic PNG/JPEG template with built-in server',
|
|
59
67
|
},
|
|
60
68
|
{
|
|
61
69
|
shortName: 'Text To Speech',
|
|
62
|
-
|
|
70
|
+
org: 'FelippeChemello',
|
|
71
|
+
repoName: 'Remotion-TTS-Example',
|
|
63
72
|
description: 'Turns text into speech and makes a video',
|
|
64
73
|
},
|
|
74
|
+
{
|
|
75
|
+
shortName: 'Audiogram',
|
|
76
|
+
org: 'marcusstenbeck',
|
|
77
|
+
repoName: 'remotion-template-audiogram',
|
|
78
|
+
description: 'Text and waveform visualization for podcasts',
|
|
79
|
+
},
|
|
65
80
|
];
|
|
66
81
|
function padEnd(str, width) {
|
|
67
82
|
// Pulled from commander for overriding
|
|
68
|
-
const len = Math.max(0, width - (0, strip_ansi_1.
|
|
83
|
+
const len = Math.max(0, width - (0, strip_ansi_1.stripAnsi)(str).length);
|
|
69
84
|
return str + Array(len + 1).join(' ');
|
|
70
85
|
}
|
|
71
|
-
function validateName(name) {
|
|
72
|
-
if (typeof name !== 'string' || name === '') {
|
|
73
|
-
return 'The project name can not be empty.';
|
|
74
|
-
}
|
|
75
|
-
if (!/^[a-z0-9@.\-_]+$/i.test(name)) {
|
|
76
|
-
return 'The project name can only contain URL-friendly characters (alphanumeric and @ . - _)';
|
|
77
|
-
}
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
function assertValidName(folderName) {
|
|
81
|
-
const validation = validateName(folderName);
|
|
82
|
-
if (typeof validation === 'string') {
|
|
83
|
-
throw new Error(`Cannot create an app named ${chalk_1.default.red(`"${folderName}"`)}. ${validation}`);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
async function assertFolderEmptyAsync(projectRoot, folderName) {
|
|
87
|
-
const conflicts = fs_extra_1.default
|
|
88
|
-
.readdirSync(projectRoot)
|
|
89
|
-
.filter((file) => !/\.iml$/.test(file));
|
|
90
|
-
if (conflicts.length) {
|
|
91
|
-
const message = 'Try using a new directory name, or moving these files.';
|
|
92
|
-
log_1.Log.newLine();
|
|
93
|
-
log_1.Log.error(message);
|
|
94
|
-
log_1.Log.newLine();
|
|
95
|
-
process.exit(1);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
const shouldUseYarn = () => {
|
|
99
|
-
var _a, _b;
|
|
100
|
-
return Boolean(((_a = process.env.npm_execpath) === null || _a === void 0 ? void 0 : _a.includes('yarn.js')) ||
|
|
101
|
-
((_b = process.env.npm_config_user_agent) === null || _b === void 0 ? void 0 : _b.includes('yarn')));
|
|
102
|
-
};
|
|
103
86
|
const isGitExecutableAvailable = async () => {
|
|
104
87
|
try {
|
|
105
88
|
await (0, execa_1.default)('git', ['--version']);
|
|
@@ -112,141 +95,107 @@ const isGitExecutableAvailable = async () => {
|
|
|
112
95
|
}
|
|
113
96
|
}
|
|
114
97
|
};
|
|
115
|
-
const initGitRepoAsync = async (root
|
|
116
|
-
// let's see if we're in a git tree
|
|
117
|
-
try {
|
|
118
|
-
await (0, execa_1.default)('git', ['rev-parse', '--is-inside-work-tree'], {
|
|
119
|
-
cwd: root,
|
|
120
|
-
});
|
|
121
|
-
!flags.silent &&
|
|
122
|
-
log_1.Log.info('New project is already inside of a git repo, skipping git init.');
|
|
123
|
-
}
|
|
124
|
-
catch (e) {
|
|
125
|
-
if (e.errno === 'ENOENT') {
|
|
126
|
-
!flags.silent &&
|
|
127
|
-
log_1.Log.warn('Unable to initialize git repo. `git` not in PATH.');
|
|
128
|
-
return false;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
98
|
+
const initGitRepoAsync = async (root) => {
|
|
131
99
|
// not in git tree, so let's init
|
|
132
100
|
try {
|
|
133
101
|
await (0, execa_1.default)('git', ['init'], { cwd: root });
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
stdio: 'ignore',
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
return true;
|
|
102
|
+
await (0, execa_1.default)('git', ['add', '--all'], { cwd: root, stdio: 'ignore' });
|
|
103
|
+
await (0, execa_1.default)('git', ['commit', '-m', 'Create new Remotion video'], {
|
|
104
|
+
cwd: root,
|
|
105
|
+
stdio: 'ignore',
|
|
106
|
+
});
|
|
107
|
+
await (0, execa_1.default)('git', ['branch', '-M', 'main'], {
|
|
108
|
+
cwd: root,
|
|
109
|
+
stdio: 'ignore',
|
|
110
|
+
});
|
|
147
111
|
}
|
|
148
112
|
catch (e) {
|
|
149
|
-
log_1.Log.
|
|
113
|
+
log_1.Log.error('Error creating git repository:', e);
|
|
114
|
+
log_1.Log.error('Project has been created nonetheless.');
|
|
150
115
|
// no-op -- this is just a convenience and we don't care if it fails
|
|
151
|
-
return false;
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
const resolveProjectRootAsync = async () => {
|
|
155
|
-
let projectName = '';
|
|
156
|
-
try {
|
|
157
|
-
const { answer } = await (0, prompts_1.default)({
|
|
158
|
-
type: 'text',
|
|
159
|
-
name: 'answer',
|
|
160
|
-
message: 'What would you like to name your video?',
|
|
161
|
-
initial: 'my-video',
|
|
162
|
-
validate: (name) => {
|
|
163
|
-
const validation = validateName(path_1.default.basename(path_1.default.resolve(name)));
|
|
164
|
-
if (typeof validation === 'string') {
|
|
165
|
-
return 'Invalid project name: ' + validation;
|
|
166
|
-
}
|
|
167
|
-
return true;
|
|
168
|
-
},
|
|
169
|
-
});
|
|
170
|
-
if (typeof answer === 'string') {
|
|
171
|
-
projectName = answer.trim();
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
catch (error) {
|
|
175
|
-
// Handle the aborted message in a custom way.
|
|
176
|
-
if (error.code !== 'ABORTED') {
|
|
177
|
-
throw error;
|
|
178
|
-
}
|
|
179
116
|
}
|
|
180
|
-
const projectRoot = path_1.default.resolve(projectName);
|
|
181
|
-
const folderName = path_1.default.basename(projectRoot);
|
|
182
|
-
assertValidName(folderName);
|
|
183
|
-
await fs_extra_1.default.ensureDir(projectRoot);
|
|
184
|
-
await assertFolderEmptyAsync(projectRoot, folderName);
|
|
185
|
-
return [projectRoot, folderName];
|
|
186
117
|
};
|
|
187
118
|
const init = async () => {
|
|
188
|
-
var _a, _b, _c, _d;
|
|
189
|
-
const [projectRoot, folderName] = await
|
|
119
|
+
var _a, _b, _c, _d, _e, _f;
|
|
120
|
+
const [projectRoot, folderName] = await (0, resolve_project_root_1.resolveProjectRoot)();
|
|
190
121
|
await isGitExecutableAvailable();
|
|
191
122
|
const descriptionColumn = Math.max(...FEATURED_TEMPLATES.map((t) => typeof t === 'object' ? t.shortName.length : 0)) + 2;
|
|
192
|
-
const
|
|
123
|
+
const selectedTemplate = (await (0, prompts_1.selectAsync)({
|
|
193
124
|
message: 'Choose a template:',
|
|
194
125
|
optionsPerPage: 20,
|
|
195
126
|
choices: FEATURED_TEMPLATES.map((template) => {
|
|
196
127
|
if (typeof template === 'string') {
|
|
197
128
|
return prompts_1.default.separator(template);
|
|
198
129
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
};
|
|
205
|
-
}
|
|
130
|
+
return {
|
|
131
|
+
value: template,
|
|
132
|
+
title: chalk_1.default.bold(padEnd(template.shortName, descriptionColumn)) +
|
|
133
|
+
template.description.trim(),
|
|
134
|
+
};
|
|
206
135
|
}),
|
|
207
|
-
}, {});
|
|
136
|
+
}, {}));
|
|
137
|
+
const pkgManager = (0, pkg_managers_1.selectPackageManager)();
|
|
208
138
|
try {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
139
|
+
await (0, degit_1.degit)({
|
|
140
|
+
repoOrg: selectedTemplate.org,
|
|
141
|
+
repoName: selectedTemplate.repoName,
|
|
142
|
+
dest: projectRoot,
|
|
143
|
+
});
|
|
144
|
+
(0, patch_readme_1.patchReadmeMd)(projectRoot, pkgManager);
|
|
145
|
+
(0, patch_package_json_1.patchPackageJson)(projectRoot, folderName);
|
|
212
146
|
}
|
|
213
147
|
catch (e) {
|
|
148
|
+
log_1.Log.error(e);
|
|
214
149
|
log_1.Log.error('Error with template cloning. Aborting');
|
|
215
150
|
process.exit(1);
|
|
216
151
|
}
|
|
217
|
-
log_1.Log.info(`Created project at ${chalk_1.default.
|
|
218
|
-
if (
|
|
152
|
+
log_1.Log.info(`Created project at ${chalk_1.default.blueBright(folderName)}. Installing dependencies...`);
|
|
153
|
+
if (pkgManager === 'yarn') {
|
|
219
154
|
log_1.Log.info('> yarn');
|
|
220
155
|
const promise = (0, execa_1.default)('yarn', [], {
|
|
221
156
|
cwd: projectRoot,
|
|
157
|
+
stdio: 'inherit',
|
|
158
|
+
env: { ...process.env, ADBLOCK: '1', DISABLE_OPENCOLLECTIVE: '1' },
|
|
222
159
|
});
|
|
223
160
|
(_a = promise.stderr) === null || _a === void 0 ? void 0 : _a.pipe(process.stderr);
|
|
224
161
|
(_b = promise.stdout) === null || _b === void 0 ? void 0 : _b.pipe(process.stdout);
|
|
225
162
|
await promise;
|
|
226
163
|
}
|
|
227
|
-
else {
|
|
228
|
-
log_1.Log.info('>
|
|
229
|
-
const promise = (0, execa_1.default)('
|
|
164
|
+
else if (pkgManager === 'pnpm') {
|
|
165
|
+
log_1.Log.info('> pnpm i');
|
|
166
|
+
const promise = (0, execa_1.default)('pnpm', ['i'], {
|
|
230
167
|
cwd: projectRoot,
|
|
168
|
+
stdio: 'inherit',
|
|
169
|
+
env: { ...process.env, ADBLOCK: '1', DISABLE_OPENCOLLECTIVE: '1' },
|
|
231
170
|
});
|
|
232
171
|
(_c = promise.stderr) === null || _c === void 0 ? void 0 : _c.pipe(process.stderr);
|
|
233
172
|
(_d = promise.stdout) === null || _d === void 0 ? void 0 : _d.pipe(process.stdout);
|
|
234
173
|
await promise;
|
|
235
174
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
175
|
+
else {
|
|
176
|
+
log_1.Log.info('> npm install');
|
|
177
|
+
const promise = (0, execa_1.default)('npm', ['install', '--no-fund'], {
|
|
178
|
+
stdio: 'inherit',
|
|
179
|
+
cwd: projectRoot,
|
|
180
|
+
env: { ...process.env, ADBLOCK: '1', DISABLE_OPENCOLLECTIVE: '1' },
|
|
181
|
+
});
|
|
182
|
+
(_e = promise.stderr) === null || _e === void 0 ? void 0 : _e.pipe(process.stderr);
|
|
183
|
+
(_f = promise.stdout) === null || _f === void 0 ? void 0 : _f.pipe(process.stdout);
|
|
184
|
+
await promise;
|
|
185
|
+
}
|
|
186
|
+
await initGitRepoAsync(projectRoot);
|
|
187
|
+
log_1.Log.info();
|
|
188
|
+
log_1.Log.info(`Welcome to ${chalk_1.default.blueBright('Remotion')}!`);
|
|
189
|
+
log_1.Log.info(`✨ Your video has been created at ${chalk_1.default.blueBright(folderName)}.`);
|
|
190
|
+
await (0, open_in_editor_flow_1.openInEditorFlow)(projectRoot);
|
|
242
191
|
log_1.Log.info('Get started by running');
|
|
243
|
-
log_1.Log.info(chalk_1.default.
|
|
244
|
-
log_1.Log.info(chalk_1.default.
|
|
192
|
+
log_1.Log.info(chalk_1.default.blueBright(`cd ${folderName}`));
|
|
193
|
+
log_1.Log.info(chalk_1.default.blueBright((0, pkg_managers_1.getStartCommand)(pkgManager)));
|
|
245
194
|
log_1.Log.info('');
|
|
246
|
-
log_1.Log.info('To render
|
|
247
|
-
log_1.Log.info(chalk_1.default.
|
|
195
|
+
log_1.Log.info('To render a video, run');
|
|
196
|
+
log_1.Log.info(chalk_1.default.blueBright((0, pkg_managers_1.getRenderCommand)(pkgManager)));
|
|
248
197
|
log_1.Log.info('');
|
|
249
|
-
log_1.Log.info('
|
|
198
|
+
log_1.Log.info('Docs to get you started:', chalk_1.default.underline('https://www.remotion.dev/docs/the-fundamentals'));
|
|
250
199
|
log_1.Log.info('Enjoy Remotion!');
|
|
251
200
|
};
|
|
252
201
|
exports.init = init;
|