shoplazza-cli 0.0.1 → 0.0.4
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
body { color: red; }
|
package/lib/auth/index.js
CHANGED
|
@@ -14,7 +14,7 @@ describe('theme init', () => {
|
|
|
14
14
|
expect(fs.existsSync(path.join(process.cwd(), 'test'))).toBe(false);
|
|
15
15
|
console.log = jest.fn;
|
|
16
16
|
await init({ name: 'test' });
|
|
17
|
-
expect(execa).toHaveBeenCalledWith('git', ['clone', 'https://github.com/Shoplazza/
|
|
17
|
+
expect(execa).toHaveBeenCalledWith('git', ['clone', 'https://github.com/Shoplazza/LifeStyle', 'test']);
|
|
18
18
|
expect(fs.existsSync(path.join(process.cwd(), 'test'))).toBe(true);
|
|
19
19
|
fs.rmSync(path.join(process.cwd(), 'test'), { recursive: true });
|
|
20
20
|
});
|
|
@@ -15,8 +15,8 @@ const createDirAndCloneTheme = async (directory) => {
|
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
17
|
fs.mkdirSync(themeDir);
|
|
18
|
-
const spinner = ora(chalk.cyan(`Cloning https://github.com/Shoplazza/
|
|
19
|
-
await execa('git', ['clone', 'https://github.com/Shoplazza/
|
|
18
|
+
const spinner = ora(chalk.cyan(`Cloning https://github.com/Shoplazza/LifeStyle into ${directory}…`)).start();
|
|
19
|
+
await execa('git', ['clone', 'https://github.com/Shoplazza/LifeStyle', directory]);
|
|
20
20
|
fs.rmSync(path.join(process.cwd(), `${directory}/.git`), { recursive: true });
|
|
21
21
|
spinner.stop();
|
|
22
22
|
log.info(chalk.green(`✓ Cloned into ${directory}`));
|
package/lib/utils.js
CHANGED
|
@@ -7,7 +7,6 @@ exports.unzipTheme = (zipPath, outputPath) => {
|
|
|
7
7
|
const zip = new AdmZip(zipPath);
|
|
8
8
|
const zipEntries = zip.getEntries();
|
|
9
9
|
const innerName = zipEntries[0].entryName.split('/')[0];
|
|
10
|
-
fs.emptyDirSync(outputPath);
|
|
11
10
|
zipEntries.forEach((entry) => {
|
|
12
11
|
zip.extractEntryTo(
|
|
13
12
|
entry,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shoplazza-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"title": "Shoplazza CLI",
|
|
5
5
|
"description": "Shoplazza CLI is a command-line interface tool that helps you build Shoplazza themes. It quickly generates Shoplazza themes. You can also use it to automate many common development tasks.",
|
|
6
6
|
"main": "bin/shoplazza",
|