@nebula.js/cli-create 4.0.0-alpha.9 → 4.0.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.
package/README.md CHANGED
@@ -65,7 +65,7 @@ options.
65
65
  - minimal: a basic setup of picasso.js is ready
66
66
  - barchart: a bar chart component created by picasso.js is ready
67
67
 
68
- You can find the [tutorial](https://qlik.dev/tutorials/build-a-helloworld-extension-using-nebulajs) to build a basic nebula visualization using nebula.js.
68
+ You can find the [tutorial](https://qlik.dev/extend/extend-quickstarts/first-extension) to build a basic nebula visualization using nebula.js.
69
69
 
70
70
  #### Create a mashup
71
71
 
@@ -73,7 +73,7 @@ You can find the [tutorial](https://qlik.dev/tutorials/build-a-helloworld-extens
73
73
  nebula create mashup hello-mashie
74
74
  ```
75
75
 
76
- You can find the [tutorial](https://qlik.dev/tutorials/build-a-simple-mashup-using-nebulajs) to build a basic mashup using nebula.js.
76
+ You can find the [tutorial](https://qlik.dev/embed/integrate-web-apps/build-a-simple-mashup) to build a basic mashup using nebula.js.
77
77
 
78
78
  #### Package manager
79
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebula.js/cli-create",
3
- "version": "4.0.0-alpha.9",
3
+ "version": "4.0.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "QlikTech International AB",
@@ -27,5 +27,5 @@
27
27
  "fs-extra": "11.1.1",
28
28
  "inquirer": "8.2.5"
29
29
  },
30
- "gitHead": "4041f477f85702b2e55626d5920ca5604a45fbf2"
30
+ "gitHead": "c105707099dc79c405f01d65cc338f1614ea9750"
31
31
  }
@@ -16,7 +16,14 @@ export default {
16
16
  ],
17
17
  ],
18
18
 
19
+ webServer: {
20
+ command: 'yarn start --port 8077',
21
+ reuseExistingServer: !process.env.CI,
22
+ port: '8077',
23
+ },
24
+
19
25
  use: {
26
+ baseURL: 'http://localhost:8077',
20
27
  headless: true,
21
28
  viewport: { width: 1280, height: 720 },
22
29
  ignoreHTTPSErrors: true,
@@ -35,6 +35,6 @@
35
35
  "eslint-plugin-mocha": "9.0.0"
36
36
  },
37
37
  "peerDependencies": {
38
- "@nebula.js/stardust": "^3.0.0"
38
+ "@nebula.js/stardust": "^4.0.0"
39
39
  }
40
40
  }
@@ -8,7 +8,7 @@ import ext from './ext';
8
8
  * Useful for cases when stardust hooks are unavailable (ie: outside the component function)
9
9
  * @param {object} galaxy.anything Extra environment dependent options
10
10
  * @param {object=} galaxy.anything.sense Optional object only present within Sense,
11
- * see: https://qlik.dev/libraries-and-tools/nebulajs/in-qlik-sense
11
+ * see: https://qlik.dev/extend/build-extension/in-qlik-sense
12
12
  */
13
13
  export default function supernova(galaxy) {
14
14
  return {
@@ -1,28 +1,9 @@
1
1
  const { test, expect } = require('@playwright/test');
2
- const path = require('path');
3
- const serve = require('@nebula.js/cli-serve'); // eslint-disable-line
4
2
 
5
3
  test.describe('sn', () => {
6
- let server;
7
-
8
- test.beforeAll(async () => {
9
- server = await serve({
10
- build: false,
11
- open: false,
12
- fixturePath: path.resolve(__dirname, 'fixtures'),
13
- });
14
- process.env.BASE_URL = server.url;
15
- });
16
-
17
- test.afterAll(() => {
18
- server.close();
19
- });
20
-
21
4
  test('should say hello', async ({ page }) => {
22
5
  const content = '.njs-viz[data-render-count="1"]';
23
-
24
- const url = `${process.env.BASE_URL}/render?fixture=hello.fix.js`;
25
- await page.goto(url);
6
+ await page.goto('/render?fixture=hello.fix.js');
26
7
  await page.waitForSelector(content, { visible: true });
27
8
  const text = await page.$eval(content, (el) => el.textContent);
28
9
  expect(text).toBe('Hello!');
@@ -1,25 +1,8 @@
1
1
  const { test, expect } = require('@playwright/test');
2
- const path = require('path');
3
- const serve = require('@nebula.js/cli-serve'); // eslint-disable-line
4
2
 
5
3
  test.describe('barchart', () => {
6
- let server;
7
-
8
- test.beforeAll(async () => {
9
- server = await serve({
10
- build: false,
11
- open: false,
12
- fixturePath: path.resolve(__dirname, 'fixtures'),
13
- });
14
- process.env.BASE_URL = server.url;
15
- });
16
-
17
- test.afterAll(() => {
18
- server.close();
19
- });
20
-
21
4
  test('should have 20 bars', async ({ page }) => {
22
- await page.goto(`${process.env.BASE_URL}/render?fixture=scenario-1.fix.js`);
5
+ await page.goto('/render?fixture=scenario-1.fix.js');
23
6
  await page.waitForSelector('.njs-viz[data-render-count="1"]', {
24
7
  visible: true,
25
8
  });
@@ -37,6 +37,6 @@
37
37
  "picasso-plugin-q": "2.1.1"
38
38
  },
39
39
  "peerDependencies": {
40
- "@nebula.js/stardust": "^3.0.0"
40
+ "@nebula.js/stardust": "^4.0.0"
41
41
  }
42
42
  }
@@ -22,7 +22,7 @@ import ext from './ext';
22
22
  * Useful for cases when stardust hooks are unavailable (ie: outside the component function)
23
23
  * @param {object} galaxy.anything Extra environment dependent options
24
24
  * @param {object=} galaxy.anything.sense Optional object only present within Sense,
25
- * see: https://qlik.dev/libraries-and-tools/nebulajs/in-qlik-sense
25
+ * see: https://qlik.dev/extend/build-extension/in-qlik-sense
26
26
  */
27
27
  export default function supernova(galaxy) {
28
28
  const picasso = picassojs();
@@ -1,25 +1,8 @@
1
1
  /* eslint no-unused-vars: 0 */
2
2
  const { test, expect } = require('@playwright/test');
3
- const path = require('path');
4
- const serve = require('@nebula.js/cli-serve'); // eslint-disable-line
5
3
 
6
- test.describe('barchart', () => {
7
- let server;
8
-
9
- test.beforeAll(async () => {
10
- server = await serve({
11
- build: false,
12
- open: false,
13
- fixturePath: path.resolve(__dirname, 'fixtures'),
14
- });
15
- process.env.BASE_URL = server.url;
16
- });
17
-
18
- test.afterAll(() => {
19
- server.close();
20
- });
21
-
22
- test('should have 20 bars', async ({ page }) => {
4
+ test.describe('minimal', () => {
5
+ test('should test picasso chart', async ({ page }) => {
23
6
  // add your e2e tests here...
24
7
  // expect(1 + 1).toBe(2)
25
8
  });
@@ -1,34 +0,0 @@
1
- import { devices } from '@playwright/test';
2
-
3
- export default {
4
- testMatch: /.*\.e2e\.js/,
5
- outputDir: './test/integration/artifacts/',
6
-
7
- reporter: [
8
- ['list'],
9
- ['json', { outputFile: './test/integration/test-report/test-results.json' }],
10
- [
11
- 'html',
12
- {
13
- outputFolder: './test/integration/test-report',
14
- open: process.env.SKIP_OPEN_REPORT ? 'never' : 'on-failure',
15
- },
16
- ],
17
- ],
18
-
19
- use: {
20
- headless: true,
21
- viewport: { width: 1280, height: 720 },
22
- ignoreHTTPSErrors: true,
23
- screenshot: 'only-on-failure',
24
- video: 'retain-on-failure',
25
- },
26
-
27
- projects: [
28
- {
29
- name: 'chromium',
30
- headless: true,
31
- use: { ...devices['Desktop Chrome'] },
32
- },
33
- ],
34
- };