@slicemachine/init 2.0.2 → 2.1.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/dist/SliceMachineInitProcess.cjs +4 -4
- package/dist/SliceMachineInitProcess.cjs.map +1 -1
- package/dist/SliceMachineInitProcess.js +4 -4
- package/dist/SliceMachineInitProcess.js.map +1 -1
- package/dist/_node_modules/@babel/code-frame/lib/index.cjs +2 -2
- package/dist/_node_modules/@babel/code-frame/lib/index.js +2 -2
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.cjs +1 -1
- package/dist/_node_modules/@babel/helper-validator-identifier/lib/index.js +1 -1
- package/dist/_node_modules/@babel/highlight/lib/index.cjs +3 -3
- package/dist/_node_modules/@babel/highlight/lib/index.js +3 -3
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/async.js +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/providers/sync.js +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/settings.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.scandir/out/settings.js +1 -1
- package/dist/_node_modules/@nodelib/fs.stat/out/index.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.stat/out/index.js +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/index.cjs +1 -1
- package/dist/_node_modules/@nodelib/fs.walk/out/index.js +1 -1
- package/dist/_node_modules/dir-glob/index.cjs +2 -2
- package/dist/_node_modules/dir-glob/index.js +2 -2
- package/dist/_node_modules/fast-glob/out/index.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/index.js +1 -1
- package/dist/_node_modules/fast-glob/out/managers/tasks.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/managers/tasks.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/deep.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/deep.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/entry.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/entry.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/error.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/filters/error.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/matchers/matcher.js +1 -1
- package/dist/_node_modules/fast-glob/out/providers/transformers/entry.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/providers/transformers/entry.js +1 -1
- package/dist/_node_modules/fast-glob/out/readers/async.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/readers/async.js +1 -1
- package/dist/_node_modules/fast-glob/out/readers/reader.cjs +2 -2
- package/dist/_node_modules/fast-glob/out/readers/reader.js +2 -2
- package/dist/_node_modules/fast-glob/out/readers/stream.cjs +2 -2
- package/dist/_node_modules/fast-glob/out/readers/stream.js +2 -2
- package/dist/_node_modules/fast-glob/out/readers/sync.cjs +2 -2
- package/dist/_node_modules/fast-glob/out/readers/sync.js +2 -2
- package/dist/_node_modules/fast-glob/out/utils/index.cjs +1 -1
- package/dist/_node_modules/fast-glob/out/utils/index.js +1 -1
- package/dist/_node_modules/js-tokens/index.cjs +1 -1
- package/dist/_node_modules/js-tokens/index.js +1 -1
- package/dist/_node_modules/lines-and-columns/build/index.cjs +1 -1
- package/dist/_node_modules/lines-and-columns/build/index.js +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.cjs +1 -1
- package/dist/_node_modules/meow/_node_modules/hosted-git-info/lib/index.js +1 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.cjs +1 -1
- package/dist/_node_modules/meow/_node_modules/normalize-package-data/lib/fixer.js +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.cjs +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/hosted-git-info/index.js +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.cjs +1 -1
- package/dist/_node_modules/meow/_node_modules/read-pkg/_node_modules/normalize-package-data/lib/fixer.js +1 -1
- package/dist/_node_modules/parse-json/index.cjs +2 -2
- package/dist/_node_modules/parse-json/index.js +2 -2
- package/dist/_node_modules/path-type/index.cjs +1 -1
- package/dist/_node_modules/path-type/index.js +1 -1
- package/dist/_virtual/index10.cjs +2 -2
- package/dist/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.cjs +2 -10
- package/dist/_virtual/index11.cjs.map +1 -1
- package/dist/_virtual/index11.js +2 -11
- package/dist/_virtual/index11.js.map +1 -1
- package/dist/_virtual/index12.cjs +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.cjs +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.cjs +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.cjs +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index4.cjs +2 -2
- package/dist/_virtual/index4.js +6 -6
- package/dist/_virtual/index5.cjs +2 -10
- package/dist/_virtual/index5.cjs.map +1 -1
- package/dist/_virtual/index5.js +2 -11
- package/dist/_virtual/index5.js.map +1 -1
- package/dist/_virtual/index6.cjs +2 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.cjs +10 -2
- package/dist/_virtual/index7.cjs.map +1 -1
- package/dist/_virtual/index7.js +11 -2
- package/dist/_virtual/index7.js.map +1 -1
- package/dist/_virtual/index8.cjs +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.cjs +10 -2
- package/dist/_virtual/index9.cjs.map +1 -1
- package/dist/_virtual/index9.js +11 -2
- package/dist/_virtual/index9.js.map +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/packages/init/_node_modules/globby/index.cjs +1 -1
- package/dist/packages/init/_node_modules/globby/index.js +1 -1
- package/dist/packages/init/package.json.cjs +4 -4
- package/dist/packages/init/package.json.js +4 -4
- package/package.json +4 -4
- package/src/SliceMachineInitProcess.ts +4 -4
- package/src/cli.ts +1 -1
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
get exports() {
|
|
6
|
-
return exports.exports;
|
|
7
|
-
},
|
|
8
|
-
set exports(v) {
|
|
9
|
-
exports.exports = v;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
exports.__module = hostedGitInfo;
|
|
3
|
+
var pathType = {};
|
|
4
|
+
exports.__exports = pathType;
|
|
13
5
|
//# sourceMappingURL=index11.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index11.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index11.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index11.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var hostedGitInfo = {
|
|
3
|
-
get exports() {
|
|
4
|
-
return hostedGitInfoExports;
|
|
5
|
-
},
|
|
6
|
-
set exports(v) {
|
|
7
|
-
hostedGitInfoExports = v;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
1
|
+
var pathType = {};
|
|
10
2
|
export {
|
|
11
|
-
|
|
12
|
-
hostedGitInfoExports as exports
|
|
3
|
+
pathType as __exports
|
|
13
4
|
};
|
|
14
5
|
//# sourceMappingURL=index11.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index11.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index11.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/_virtual/index12.js
CHANGED
package/dist/_virtual/index13.js
CHANGED
package/dist/_virtual/index14.js
CHANGED
package/dist/_virtual/index15.js
CHANGED
package/dist/_virtual/index4.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
exports.exports = {};
|
|
4
|
-
var
|
|
4
|
+
var lib = {
|
|
5
5
|
get exports() {
|
|
6
6
|
return exports.exports;
|
|
7
7
|
},
|
|
@@ -9,5 +9,5 @@ var dirGlob = {
|
|
|
9
9
|
exports.exports = v;
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
|
-
exports.__module =
|
|
12
|
+
exports.__module = lib;
|
|
13
13
|
//# sourceMappingURL=index4.cjs.map
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var libExports = {};
|
|
2
|
+
var lib = {
|
|
3
3
|
get exports() {
|
|
4
|
-
return
|
|
4
|
+
return libExports;
|
|
5
5
|
},
|
|
6
6
|
set exports(v) {
|
|
7
|
-
|
|
7
|
+
libExports = v;
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
lib as __module,
|
|
12
|
+
libExports as exports
|
|
13
13
|
};
|
|
14
14
|
//# sourceMappingURL=index4.js.map
|
package/dist/_virtual/index5.cjs
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
get exports() {
|
|
6
|
-
return exports.exports;
|
|
7
|
-
},
|
|
8
|
-
set exports(v) {
|
|
9
|
-
exports.exports = v;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
exports.__module = lib;
|
|
3
|
+
var build = {};
|
|
4
|
+
exports.__exports = build;
|
|
13
5
|
//# sourceMappingURL=index5.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index5.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index5.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var lib = {
|
|
3
|
-
get exports() {
|
|
4
|
-
return libExports;
|
|
5
|
-
},
|
|
6
|
-
set exports(v) {
|
|
7
|
-
libExports = v;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
1
|
+
var build = {};
|
|
10
2
|
export {
|
|
11
|
-
|
|
12
|
-
libExports as exports
|
|
3
|
+
build as __exports
|
|
13
4
|
};
|
|
14
5
|
//# sourceMappingURL=index5.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index5.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/_virtual/index6.cjs
CHANGED
package/dist/_virtual/index6.js
CHANGED
package/dist/_virtual/index7.cjs
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
exports.exports = {};
|
|
4
|
+
var dirGlob = {
|
|
5
|
+
get exports() {
|
|
6
|
+
return exports.exports;
|
|
7
|
+
},
|
|
8
|
+
set exports(v) {
|
|
9
|
+
exports.exports = v;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
exports.__module = dirGlob;
|
|
5
13
|
//# sourceMappingURL=index7.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index7.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index7.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/_virtual/index7.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
var
|
|
1
|
+
var dirGlobExports = {};
|
|
2
|
+
var dirGlob = {
|
|
3
|
+
get exports() {
|
|
4
|
+
return dirGlobExports;
|
|
5
|
+
},
|
|
6
|
+
set exports(v) {
|
|
7
|
+
dirGlobExports = v;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
2
10
|
export {
|
|
3
|
-
|
|
11
|
+
dirGlob as __module,
|
|
12
|
+
dirGlobExports as exports
|
|
4
13
|
};
|
|
5
14
|
//# sourceMappingURL=index7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index7.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
package/dist/_virtual/index8.cjs
CHANGED
package/dist/_virtual/index8.js
CHANGED
package/dist/_virtual/index9.cjs
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
exports.exports = {};
|
|
4
|
+
var hostedGitInfo = {
|
|
5
|
+
get exports() {
|
|
6
|
+
return exports.exports;
|
|
7
|
+
},
|
|
8
|
+
set exports(v) {
|
|
9
|
+
exports.exports = v;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
exports.__module = hostedGitInfo;
|
|
5
13
|
//# sourceMappingURL=index9.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index9.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index9.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/_virtual/index9.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
var
|
|
1
|
+
var hostedGitInfoExports = {};
|
|
2
|
+
var hostedGitInfo = {
|
|
3
|
+
get exports() {
|
|
4
|
+
return hostedGitInfoExports;
|
|
5
|
+
},
|
|
6
|
+
set exports(v) {
|
|
7
|
+
hostedGitInfoExports = v;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
2
10
|
export {
|
|
3
|
-
|
|
11
|
+
hostedGitInfo as __module,
|
|
12
|
+
hostedGitInfoExports as exports
|
|
4
13
|
};
|
|
5
14
|
//# sourceMappingURL=index9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index9.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
package/dist/cli.cjs
CHANGED
|
@@ -19,7 +19,7 @@ OPTIONS
|
|
|
19
19
|
|
|
20
20
|
--no-push For starters, prevent anything from being pushed
|
|
21
21
|
--no-push-slices For starters, prevent slices from being pushed
|
|
22
|
-
--no-push-custom-types For starters, prevent
|
|
22
|
+
--no-push-custom-types For starters, prevent types from being pushed
|
|
23
23
|
--no-push-documents For starters, prevent documents from being pushed
|
|
24
24
|
|
|
25
25
|
--help, -h Display CLI help
|
package/dist/cli.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.cjs","sources":["../../src/cli.ts"],"sourcesContent":["import meow from \"meow\";\n\nimport { name as pkgName, version as pkgVersion } from \"../package.json\";\nimport { createSliceMachineInitProcess } from \"./SliceMachineInitProcess\";\n\nconst cli = meow(\n\t`\nPrismic Slice Machine Init CLI\n\nDOCUMENTATION\n https://prismic.io/docs\n\nVERSION\n ${pkgName}@${pkgVersion}\n\nUSAGE\n $ npx @slicemachine/init\n\nOPTIONS\n --repository, -r Specify a Prismic repository to use\n\n --no-push For starters, prevent anything from being pushed\n --no-push-slices For starters, prevent slices from being pushed\n --no-push-custom-types For starters, prevent
|
|
1
|
+
{"version":3,"file":"cli.cjs","sources":["../../src/cli.ts"],"sourcesContent":["import meow from \"meow\";\n\nimport { name as pkgName, version as pkgVersion } from \"../package.json\";\nimport { createSliceMachineInitProcess } from \"./SliceMachineInitProcess\";\n\nconst cli = meow(\n\t`\nPrismic Slice Machine Init CLI\n\nDOCUMENTATION\n https://prismic.io/docs\n\nVERSION\n ${pkgName}@${pkgVersion}\n\nUSAGE\n $ npx @slicemachine/init\n\nOPTIONS\n --repository, -r Specify a Prismic repository to use\n\n --no-push For starters, prevent anything from being pushed\n --no-push-slices For starters, prevent slices from being pushed\n --no-push-custom-types For starters, prevent types from being pushed\n --no-push-documents For starters, prevent documents from being pushed\n\n --help, -h Display CLI help\n --version, -v Display CLI version\n`,\n\t{\n\t\timportMeta: import.meta,\n\t\tflags: {\n\t\t\trepository: {\n\t\t\t\ttype: \"string\",\n\t\t\t\talias: \"r\",\n\t\t\t},\n\t\t\tpush: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: true,\n\t\t\t},\n\t\t\tpushSlices: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: true,\n\t\t\t},\n\t\t\tpushCustomTypes: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: true,\n\t\t\t},\n\t\t\tpushDocuments: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: true,\n\t\t\t},\n\t\t\thelp: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\talias: \"h\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tversion: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\talias: \"v\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t},\n\t\tdescription: false,\n\t\tautoHelp: false,\n\t\tautoVersion: false,\n\t\tallowUnknownFlags: false,\n\t},\n);\n\nif (cli.flags.help) {\n\tcli.showHelp();\n} else if (cli.flags.version) {\n\t// eslint-disable-next-line no-console\n\tconsole.log(`${pkgName}@${pkgVersion}`);\n\tprocess.exit(0);\n} else {\n\tconst initProcess = createSliceMachineInitProcess({\n\t\t...cli.flags,\n\t\tinput: cli.input,\n\t});\n\n\tinitProcess.run();\n}\n"],"names":["meow","pkgName","pkgVersion","createSliceMachineInitProcess"],"mappings":";;;;AAKA,MAAM,MAAMA,MACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOGC,SAAW,QAAAC;;;;;;;;;;;;;;;GAgBd;AAAA,EACC,YAAY,EAAA,KAAA,OAAA,aAAA,cAAA,QAAA,KAAA,EAAA,cAAA,UAAA,EAAA,OAAA,SAAA,iBAAA,SAAA,cAAA,OAAA,IAAA,IAAA,WAAA,SAAA,OAAA,EAAA,KAAA;AAAA,EACZ,OAAO;AAAA,IACN,YAAY;AAAA,MACX,MAAM;AAAA,MACN,OAAO;AAAA,IACP;AAAA,IACD,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,iBAAiB;AAAA,MAChB,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,eAAe;AAAA,MACd,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,MAAM;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,SAAS;AAAA,IACT;AAAA,IACD,SAAS;AAAA,MACR,MAAM;AAAA,MACN,OAAO;AAAA,MACP,SAAS;AAAA,IACT;AAAA,EACD;AAAA,EACD,aAAa;AAAA,EACb,UAAU;AAAA,EACV,aAAa;AAAA,EACb,mBAAmB;AACnB,CAAA;AAGF,IAAI,IAAI,MAAM,MAAM;AACnB,MAAI,SAAQ;AACZ,WAAU,IAAI,MAAM,SAAS;AAErB,UAAA,IAAI,GAAGD,SAAAA,QAAWC,SAAAA,SAAY;AACtC,UAAQ,KAAK,CAAC;AACd,OAAM;AACN,QAAM,cAAcC,wBAAAA,8BAA8B;AAAA,IACjD,GAAG,IAAI;AAAA,IACP,OAAO,IAAI;AAAA,EAAA,CACX;AAED,cAAY,IAAG;AACf;"}
|
package/dist/cli.js
CHANGED
|
@@ -18,7 +18,7 @@ OPTIONS
|
|
|
18
18
|
|
|
19
19
|
--no-push For starters, prevent anything from being pushed
|
|
20
20
|
--no-push-slices For starters, prevent slices from being pushed
|
|
21
|
-
--no-push-custom-types For starters, prevent
|
|
21
|
+
--no-push-custom-types For starters, prevent types from being pushed
|
|
22
22
|
--no-push-documents For starters, prevent documents from being pushed
|
|
23
23
|
|
|
24
24
|
--help, -h Display CLI help
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sources":["../../src/cli.ts"],"sourcesContent":["import meow from \"meow\";\n\nimport { name as pkgName, version as pkgVersion } from \"../package.json\";\nimport { createSliceMachineInitProcess } from \"./SliceMachineInitProcess\";\n\nconst cli = meow(\n\t`\nPrismic Slice Machine Init CLI\n\nDOCUMENTATION\n https://prismic.io/docs\n\nVERSION\n ${pkgName}@${pkgVersion}\n\nUSAGE\n $ npx @slicemachine/init\n\nOPTIONS\n --repository, -r Specify a Prismic repository to use\n\n --no-push For starters, prevent anything from being pushed\n --no-push-slices For starters, prevent slices from being pushed\n --no-push-custom-types For starters, prevent
|
|
1
|
+
{"version":3,"file":"cli.js","sources":["../../src/cli.ts"],"sourcesContent":["import meow from \"meow\";\n\nimport { name as pkgName, version as pkgVersion } from \"../package.json\";\nimport { createSliceMachineInitProcess } from \"./SliceMachineInitProcess\";\n\nconst cli = meow(\n\t`\nPrismic Slice Machine Init CLI\n\nDOCUMENTATION\n https://prismic.io/docs\n\nVERSION\n ${pkgName}@${pkgVersion}\n\nUSAGE\n $ npx @slicemachine/init\n\nOPTIONS\n --repository, -r Specify a Prismic repository to use\n\n --no-push For starters, prevent anything from being pushed\n --no-push-slices For starters, prevent slices from being pushed\n --no-push-custom-types For starters, prevent types from being pushed\n --no-push-documents For starters, prevent documents from being pushed\n\n --help, -h Display CLI help\n --version, -v Display CLI version\n`,\n\t{\n\t\timportMeta: import.meta,\n\t\tflags: {\n\t\t\trepository: {\n\t\t\t\ttype: \"string\",\n\t\t\t\talias: \"r\",\n\t\t\t},\n\t\t\tpush: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: true,\n\t\t\t},\n\t\t\tpushSlices: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: true,\n\t\t\t},\n\t\t\tpushCustomTypes: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: true,\n\t\t\t},\n\t\t\tpushDocuments: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\tdefault: true,\n\t\t\t},\n\t\t\thelp: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\talias: \"h\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tversion: {\n\t\t\t\ttype: \"boolean\",\n\t\t\t\talias: \"v\",\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t},\n\t\tdescription: false,\n\t\tautoHelp: false,\n\t\tautoVersion: false,\n\t\tallowUnknownFlags: false,\n\t},\n);\n\nif (cli.flags.help) {\n\tcli.showHelp();\n} else if (cli.flags.version) {\n\t// eslint-disable-next-line no-console\n\tconsole.log(`${pkgName}@${pkgVersion}`);\n\tprocess.exit(0);\n} else {\n\tconst initProcess = createSliceMachineInitProcess({\n\t\t...cli.flags,\n\t\tinput: cli.input,\n\t});\n\n\tinitProcess.run();\n}\n"],"names":["pkgName","pkgVersion"],"mappings":";;;AAKA,MAAM,MAAM,KACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOGA,QAAWC;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,GAgBd;AAAA,EACC,YAAY;AAAA,EACZ,OAAO;AAAA,IACN,YAAY;AAAA,MACX,MAAM;AAAA,MACN,OAAO;AAAA,IACP;AAAA,IACD,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,iBAAiB;AAAA,MAChB,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,eAAe;AAAA,MACd,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,MAAM;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,SAAS;AAAA,IACT;AAAA,IACD,SAAS;AAAA,MACR,MAAM;AAAA,MACN,OAAO;AAAA,MACP,SAAS;AAAA,IACT;AAAA,EACD;AAAA,EACD,aAAa;AAAA,EACb,UAAU;AAAA,EACV,aAAa;AAAA,EACb,mBAAmB;AACnB,CAAA;AAGF,IAAI,IAAI,MAAM,MAAM;AACnB,MAAI,SAAQ;AACZ,WAAU,IAAI,MAAM,SAAS;AAErB,UAAA,IAAI,GAAGD,QAAWC,SAAY;AACtC,UAAQ,KAAK,CAAC;AACd,OAAM;AACN,QAAM,cAAc,8BAA8B;AAAA,IACjD,GAAG,IAAI;AAAA,IACP,OAAO,IAAI;AAAA,EAAA,CACX;AAED,cAAY,IAAG;AACf;"}
|
|
@@ -7,7 +7,7 @@ const index = require('./../../../../_node_modules/fast-glob/out/index.cjs');
|
|
|
7
7
|
require('./../../../../_node_modules/dir-glob/index.cjs');
|
|
8
8
|
const ignore = require("./ignore.cjs");
|
|
9
9
|
const utilities = require("./utilities.cjs");
|
|
10
|
-
const index$1 = require("../../../../_virtual/
|
|
10
|
+
const index$1 = require("../../../../_virtual/index7.cjs");
|
|
11
11
|
const assertPatternsInput = (patterns) => {
|
|
12
12
|
if (patterns.some((pattern) => typeof pattern !== "string")) {
|
|
13
13
|
throw new TypeError("Patterns must be a string or an array of strings");
|
|
@@ -5,7 +5,7 @@ import out from './../../../../_node_modules/fast-glob/out/index.js';
|
|
|
5
5
|
import './../../../../_node_modules/dir-glob/index.js';
|
|
6
6
|
import { isIgnoredByIgnoreFiles, GITIGNORE_FILES_PATTERN } from "./ignore.js";
|
|
7
7
|
import { toPath, isNegativePattern } from "./utilities.js";
|
|
8
|
-
import { exports as dirGlobExports } from "../../../../_virtual/
|
|
8
|
+
import { exports as dirGlobExports } from "../../../../_virtual/index7.js";
|
|
9
9
|
const assertPatternsInput = (patterns) => {
|
|
10
10
|
if (patterns.some((pattern) => typeof pattern !== "string")) {
|
|
11
11
|
throw new TypeError("Patterns must be a string or an array of strings");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const name = "@slicemachine/init";
|
|
4
|
-
const version = "2.0
|
|
4
|
+
const version = "2.1.0";
|
|
5
5
|
const description = "Init Prismic Slice Machine in your project";
|
|
6
6
|
const keywords = [
|
|
7
7
|
"typescript",
|
|
@@ -54,7 +54,7 @@ const scripts = {
|
|
|
54
54
|
const dependencies = {
|
|
55
55
|
"@antfu/ni": "^0.20.0",
|
|
56
56
|
"@lihbr/listr-update-renderer": "^0.5.3",
|
|
57
|
-
"@slicemachine/manager": "0.
|
|
57
|
+
"@slicemachine/manager": "0.3.0",
|
|
58
58
|
chalk: "^4.1.2",
|
|
59
59
|
globby: "^13.1.3",
|
|
60
60
|
listr: "^0.14.3",
|
|
@@ -66,7 +66,7 @@ const dependencies = {
|
|
|
66
66
|
};
|
|
67
67
|
const devDependencies = {
|
|
68
68
|
"@size-limit/preset-small-lib": "^8.2.4",
|
|
69
|
-
"@slicemachine/plugin-kit": "0.
|
|
69
|
+
"@slicemachine/plugin-kit": "0.3.0",
|
|
70
70
|
"@types/listr": "^0.14.4",
|
|
71
71
|
"@types/prompts": "^2.4.3",
|
|
72
72
|
"@types/semver": "^7.3.13",
|
|
@@ -92,7 +92,7 @@ const devDependencies = {
|
|
|
92
92
|
"vite-plugin-sdk": "^0.1.1",
|
|
93
93
|
vitest: "^0.27.3"
|
|
94
94
|
};
|
|
95
|
-
const gitHead = "
|
|
95
|
+
const gitHead = "97b84b052a08d28f9cb7cd93826e812054b73ee3";
|
|
96
96
|
const pkg = {
|
|
97
97
|
name,
|
|
98
98
|
version,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const name = "@slicemachine/init";
|
|
2
|
-
const version = "2.0
|
|
2
|
+
const version = "2.1.0";
|
|
3
3
|
const description = "Init Prismic Slice Machine in your project";
|
|
4
4
|
const keywords = [
|
|
5
5
|
"typescript",
|
|
@@ -52,7 +52,7 @@ const scripts = {
|
|
|
52
52
|
const dependencies = {
|
|
53
53
|
"@antfu/ni": "^0.20.0",
|
|
54
54
|
"@lihbr/listr-update-renderer": "^0.5.3",
|
|
55
|
-
"@slicemachine/manager": "0.
|
|
55
|
+
"@slicemachine/manager": "0.3.0",
|
|
56
56
|
chalk: "^4.1.2",
|
|
57
57
|
globby: "^13.1.3",
|
|
58
58
|
listr: "^0.14.3",
|
|
@@ -64,7 +64,7 @@ const dependencies = {
|
|
|
64
64
|
};
|
|
65
65
|
const devDependencies = {
|
|
66
66
|
"@size-limit/preset-small-lib": "^8.2.4",
|
|
67
|
-
"@slicemachine/plugin-kit": "0.
|
|
67
|
+
"@slicemachine/plugin-kit": "0.3.0",
|
|
68
68
|
"@types/listr": "^0.14.4",
|
|
69
69
|
"@types/prompts": "^2.4.3",
|
|
70
70
|
"@types/semver": "^7.3.13",
|
|
@@ -90,7 +90,7 @@ const devDependencies = {
|
|
|
90
90
|
"vite-plugin-sdk": "^0.1.1",
|
|
91
91
|
vitest: "^0.27.3"
|
|
92
92
|
};
|
|
93
|
-
const gitHead = "
|
|
93
|
+
const gitHead = "97b84b052a08d28f9cb7cd93826e812054b73ee3";
|
|
94
94
|
const pkg = {
|
|
95
95
|
name,
|
|
96
96
|
version,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slicemachine/init",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Init Prismic Slice Machine in your project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@antfu/ni": "^0.20.0",
|
|
55
55
|
"@lihbr/listr-update-renderer": "^0.5.3",
|
|
56
|
-
"@slicemachine/manager": "0.
|
|
56
|
+
"@slicemachine/manager": "0.3.0",
|
|
57
57
|
"chalk": "^4.1.2",
|
|
58
58
|
"globby": "^13.1.3",
|
|
59
59
|
"listr": "^0.14.3",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@size-limit/preset-small-lib": "^8.2.4",
|
|
68
|
-
"@slicemachine/plugin-kit": "0.
|
|
68
|
+
"@slicemachine/plugin-kit": "0.3.0",
|
|
69
69
|
"@types/listr": "^0.14.4",
|
|
70
70
|
"@types/prompts": "^2.4.3",
|
|
71
71
|
"@types/semver": "^7.3.13",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"vite-plugin-sdk": "^0.1.1",
|
|
92
92
|
"vitest": "^0.27.3"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "97b84b052a08d28f9cb7cd93826e812054b73ee3"
|
|
95
95
|
}
|
|
@@ -876,7 +876,7 @@ ${chalk.cyan("?")} Your Prismic repository name`.replace("\n", ""),
|
|
|
876
876
|
},
|
|
877
877
|
},
|
|
878
878
|
{
|
|
879
|
-
title: "Pushing
|
|
879
|
+
title: "Pushing types...",
|
|
880
880
|
skip: () => {
|
|
881
881
|
if (!this.options.push) {
|
|
882
882
|
return `--no-push used`;
|
|
@@ -904,16 +904,16 @@ ${chalk.cyan("?")} Your Prismic repository name`.replace("\n", ""),
|
|
|
904
904
|
}
|
|
905
905
|
|
|
906
906
|
let pushed = 0;
|
|
907
|
-
task.title = `Pushing
|
|
907
|
+
task.title = `Pushing types... (0/${ids.length})`;
|
|
908
908
|
await Promise.all(
|
|
909
909
|
ids.map(async (id) => {
|
|
910
910
|
await this.manager.customTypes.pushCustomType({ id });
|
|
911
911
|
pushed++;
|
|
912
|
-
task.title = `Pushing
|
|
912
|
+
task.title = `Pushing types... (${pushed}/${ids.length})`;
|
|
913
913
|
}),
|
|
914
914
|
);
|
|
915
915
|
|
|
916
|
-
task.title = "Pushed all
|
|
916
|
+
task.title = "Pushed all types";
|
|
917
917
|
},
|
|
918
918
|
},
|
|
919
919
|
{
|
package/src/cli.ts
CHANGED
|
@@ -21,7 +21,7 @@ OPTIONS
|
|
|
21
21
|
|
|
22
22
|
--no-push For starters, prevent anything from being pushed
|
|
23
23
|
--no-push-slices For starters, prevent slices from being pushed
|
|
24
|
-
--no-push-custom-types For starters, prevent
|
|
24
|
+
--no-push-custom-types For starters, prevent types from being pushed
|
|
25
25
|
--no-push-documents For starters, prevent documents from being pushed
|
|
26
26
|
|
|
27
27
|
--help, -h Display CLI help
|