@konomi-app/k2 0.7.0 → 0.7.1
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.
|
@@ -42,9 +42,9 @@ async function buildTailwindCSS(params) {
|
|
|
42
42
|
console.error('Error building Tailwind CSS:', error);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
|
|
46
|
-
watcher.on('ready', () => {
|
|
45
|
+
watcher.on('ready', async () => {
|
|
47
46
|
initialScanComplete = true;
|
|
47
|
+
await listener('init');
|
|
48
48
|
});
|
|
49
49
|
watcher.on('change', (path) => listener('change', path));
|
|
50
50
|
watcher.on('add', (path) => listener('add', path));
|
|
@@ -24,17 +24,26 @@ export const watchContentsAndUploadZip = async (params) => {
|
|
|
24
24
|
console.error('Error copying plugin contents:', error);
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
chalk.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
try {
|
|
28
|
+
await outputContentsZip(manifest);
|
|
29
|
+
const buffer = await getContentsZipBuffer();
|
|
30
|
+
const pluginPrivateKey = await fs.readFile(path.resolve(ppkPath), 'utf8');
|
|
31
|
+
const output = await packer(buffer, pluginPrivateKey);
|
|
32
|
+
const zipFileName = `plugin${getZipFileNameSuffix('dev')}.zip`;
|
|
33
|
+
await fs.writeFile(path.join(PLUGIN_WORKSPACE_DIRECTORY, zipFileName), output.plugin);
|
|
34
|
+
console.log(chalk.hex('#e5e7eb')(`${new Date().toLocaleTimeString()} `) +
|
|
35
|
+
chalk.cyan(`[upload] `) +
|
|
36
|
+
`start uploading`);
|
|
37
|
+
await uploadZip('dev');
|
|
38
|
+
console.log(chalk.hex('#e5e7eb')(`${new Date().toLocaleTimeString()} `) +
|
|
39
|
+
chalk.cyan(`[upload] `) +
|
|
40
|
+
`done`);
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
console.log(chalk.hex('#e5e7eb')(`${new Date().toLocaleTimeString()} `) +
|
|
44
|
+
chalk.cyan(`[upload] `) +
|
|
45
|
+
chalk.red(`failed`));
|
|
46
|
+
}
|
|
38
47
|
};
|
|
39
48
|
const contentsWatcher = chokider.watch(['src/contents/**/*'], {
|
|
40
49
|
ignored: /node_modules/,
|
package/dist/plugin.js
CHANGED
|
@@ -8,7 +8,7 @@ import manifest from './commands/manifest/index.js';
|
|
|
8
8
|
import test from './commands/test/index.js';
|
|
9
9
|
import upload from './commands/upload/index.js';
|
|
10
10
|
import zip from './commands/plugin-zip.js';
|
|
11
|
-
program.name('plugin').version('0.7.
|
|
11
|
+
program.name('plugin').version('0.7.1').description('');
|
|
12
12
|
build();
|
|
13
13
|
dev();
|
|
14
14
|
genkey();
|