@panomc/plugin-kit 1.0.0-dev.62 → 1.0.0-dev.64

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.
@@ -142,7 +142,7 @@ describe('the scaffold', () => {
142
142
 
143
143
  expect(result.stderr).toBe('');
144
144
  expect(result.code).toBe(0);
145
- expect(result.stdout).toContain('scaffolded my-shop/ (21 files, local workspace links)');
145
+ expect(result.stdout).toContain('scaffolded my-shop/ (23 files, local workspace links)');
146
146
  expect(result.stdout).toContain('1. cd my-shop && bun install && bun run dev');
147
147
  expect(result.stdout).toContain('2. restart Pano once, then open /my-shop');
148
148
  expect(result.stdout).toContain('Steps to first result: 3 (scaffold, dev, restart Pano), 0 files written');
@@ -169,6 +169,8 @@ describe('the scaffold', () => {
169
169
  'src/main/resources/config.conf',
170
170
  'src/main/resources/frontend-targets.json',
171
171
  'src/main/resources/locales/en-US.json',
172
+ 'src/main/resources/locales/ru.json',
173
+ 'src/main/resources/locales/tr.json',
172
174
  'src/main/resources/logo.png',
173
175
  'src/theme/views/HelloPage.svelte',
174
176
  ]);
@@ -244,10 +246,12 @@ describe('the scaffold', () => {
244
246
  expect(fallback.join('\n')).not.toContain('/*');
245
247
  });
246
248
 
247
- test('resources: empty targets file, one locale, config', () => {
249
+ test('resources: empty targets file, English / Turkish / Russian locales, config', () => {
248
250
  expect(JSON.parse(read('src/main/resources/frontend-targets.json'))).toEqual({});
249
- expect(fs.readdirSync(path.join(root, 'src/main/resources/locales'))).toEqual(['en-US.json']);
251
+ expect(fs.readdirSync(path.join(root, 'src/main/resources/locales')).sort()).toEqual(['en-US.json', 'ru.json', 'tr.json']);
250
252
  expect(JSON.parse(read('src/main/resources/locales/en-US.json'))).toEqual({ 'hello-title': 'Hello from My Shop' });
253
+ expect(JSON.parse(read('src/main/resources/locales/tr.json'))).toEqual({ 'hello-title': 'My Shop eklentisinden merhaba' });
254
+ expect(JSON.parse(read('src/main/resources/locales/ru.json'))).toEqual({ 'hello-title': 'Привет от My Shop' });
251
255
  expect(read('src/main/resources/config.conf')).toBe('logo-file=logo.png\n');
252
256
  });
253
257
 
@@ -0,0 +1,3 @@
1
+ {
2
+ "hello-title": "Привет от @@NAME@@"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "hello-title": "@@NAME@@ eklentisinden merhaba"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panomc/plugin-kit",
3
- "version": "1.0.0-dev.62",
3
+ "version": "1.0.0-dev.64",
4
4
  "description": "Build tooling for Pano plugins: the panoPlugin() rollup preset, the pano-plugin CLI and the controller core.",
5
5
  "author": "PanoMC",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "@panomc/client-gen": "1.0.0-dev.62",
30
+ "@panomc/client-gen": "1.0.0-dev.64",
31
31
  "@rollup/plugin-node-resolve": "^16.0.0",
32
32
  "@rollup/plugin-terser": "^0.4.4",
33
33
  "magic-string": "^0.30.17",
@@ -37,11 +37,11 @@
37
37
  "rollup-plugin-svelte": "^7.2.2"
38
38
  },
39
39
  "peerDependencies": {
40
- "@panomc/sdk": "^2.0.0-dev.62",
40
+ "@panomc/sdk": "^2.0.0-dev.64",
41
41
  "svelte": "*"
42
42
  },
43
43
  "devDependencies": {
44
- "@panomc/sdk": "2.0.0-dev.62",
44
+ "@panomc/sdk": "2.0.0-dev.64",
45
45
  "bootstrap": "5.3.8",
46
46
  "happy-dom": "^20.0.0",
47
47
  "sass": "^1.99.0",