@nzz/q-cli 1.9.3 → 1.9.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,7 +64,6 @@
64
64
  >
65
65
  <div>
66
66
  <div class="s-q-item" id="container"></div>
67
- <script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Map,URL,Promise,fetch,URLSearchParams,Array.prototype.find,Array.prototype.findIndex,Object.entries,Array.prototype.includes,CustomEvent,Array.from,String.prototype.startsWith&flags=gated&unknown=polyfill"></script>
68
67
  </div>
69
68
  </div>
70
69
  </section>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nzz/q-cli",
3
- "version": "1.9.3",
3
+ "version": "1.9.5",
4
4
  "prettier": "@nzz/et-utils-config-prettier",
5
5
  "description": "Cli tool to setup new Q tools, new Q server implementations and start Q dev server to test developing Q tools",
6
6
  "main": "index.js",
@@ -4,7 +4,7 @@
4
4
  "prettier": "@nzz/et-utils-config-prettier",
5
5
  "devDependencies": {
6
6
  "@nzz/et-utils-config-prettier": "^1.0.6",
7
- "@nzz/nzz.ch-static": "github:nzzdev/ed-tech-nzz.ch-static#v1.0.0",
7
+ "@nzz/nzz.ch-static": "github:nzzdev/ed-tech-nzz.ch-static#v1.3.0",
8
8
  "@nzz/q-cli": "^1.4.11",
9
9
  "@rollup/plugin-alias": "^3.1.9",
10
10
  "@rollup/plugin-commonjs": "^21.0.0",
@@ -39,6 +39,7 @@
39
39
  "start-regular": "LAYOUT=regular run-p serve rollup",
40
40
  "start-ls": "LAYOUT=longform-standard run-p serve rollup",
41
41
  "start-lv": "LAYOUT=longform-visual run-p serve rollup",
42
+ "start-hlv": "LAYOUT=headless-longform-visual run-p serve rollup",
42
43
  "rollup": "rollup -c -w",
43
44
  "serve": "sirv public --dev --port 5555 --host 0.0.0.0"
44
45
  }
@@ -77,12 +77,6 @@ function getHtmlOptions() {
77
77
  customCssLinks: [
78
78
  'https://service.sophie.nzz.ch/bundle/sophie-q@^1,sophie-input@^1,sophie-font@^1,sophie-color@^1,sophie-viz-color@^1,sophie-legend@^1.css',
79
79
  ],
80
-
81
- // Links to other js filed that need to be loaded.
82
- // Will be appended at the end of the body, but before the built js file for the app.
83
- customJsLinks: [
84
- 'https://cdn.polyfill.io/v2/polyfill.min.js?features=Map,URL,Promise,fetch,URLSearchParams,Array.prototype.find,Array.prototype.findIndex,Object.entries,Array.prototype.includes,CustomEvent,Array.from,String.prototype.startsWith&flags=gated&unknown=polyfill',
85
- ],
86
80
  });
87
81
  },
88
82
  };
@@ -18,13 +18,6 @@ const screenshot = {
18
18
  ) {
19
19
  scripts.push({ url: `${process.env.Q_SERVER_BASE_URL}/files/system.js` });
20
20
  }
21
- if (renderingInfo.loaderConfig && renderingInfo.loaderConfig.polyfills) {
22
- scripts.push({
23
- url: `https://cdn.polyfill.io/v2/polyfill.min.js?features=${renderingInfo.loaderConfig.polyfills.join(
24
- ","
25
- )}`
26
- });
27
- }
28
21
  if (renderingInfo.scripts && Array.isArray(renderingInfo.scripts)) {
29
22
  for (let script of renderingInfo.scripts) {
30
23
  script = resolvePath(script);