@ui5/create-webcomponents-package 1.4.0 → 1.7.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.7.0](https://github.com/SAP/ui5-webcomponents/compare/v1.6.0...v1.7.0) (2022-09-02)
7
+
8
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
9
+
10
+
11
+
12
+
13
+
14
+ # [1.6.0](https://github.com/SAP/ui5-webcomponents/compare/v1.5.0...v1.6.0) (2022-07-25)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * create package bugs ([#5517](https://github.com/SAP/ui5-webcomponents/issues/5517)) ([f528f5c](https://github.com/SAP/ui5-webcomponents/commit/f528f5c))
20
+
21
+
22
+
23
+
24
+
25
+ # [1.5.0](https://github.com/SAP/ui5-webcomponents/compare/v1.4.0...v1.5.0) (2022-07-03)
26
+
27
+ **Note:** Version bump only for package @ui5/create-webcomponents-package
28
+
29
+
30
+
31
+
32
+
6
33
  # [1.4.0](https://github.com/SAP/ui5-webcomponents/compare/v1.3.1...v1.4.0) (2022-05-25)
7
34
 
8
35
  **Note:** Version bump only for package @ui5/create-webcomponents-package
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
- ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/master/docs/images/UI5_logo_wide.png)
1
+ ![UI5 icon](https://raw.githubusercontent.com/SAP/ui5-webcomponents/main/docs/images/UI5_logo_wide.png)
2
2
 
3
3
  # UI5 Web Components - Create Package
4
4
 
5
- [![Travis CI Build Status](https://travis-ci.org/SAP/ui5-webcomponents.svg?branch=master)](https://travis-ci.org/SAP/ui5-webcomponents)
6
5
  [![npm Package Version](https://badge.fury.io/js/%40ui5%2Fwebcomponents.svg)](https://www.npmjs.com/package/@ui5/webcomponents)
7
6
 
8
7
  Provides an `npm init` script for creating new "UI5 Web Components" packages.
@@ -23,16 +22,16 @@ The script creates a new directory, and fills it with a `package.json` file and
23
22
  components package.
24
23
 
25
24
  ## Resources
26
- - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/master/README.md)
25
+ - [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/main/README.md)
27
26
  - [UI5 Web Components - Home Page](https://sap.github.io/ui5-webcomponents)
28
27
  - [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/playground/)
29
28
 
30
29
  ## Support
31
- We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://join-ui5-slack.herokuapp.com/).
30
+ We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://join-ui5-slack.herokuapp.com/).
32
31
 
33
32
  ## Contribute
34
- Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/master/docs/6-contributing/02-conventions-and-guidelines.md).
33
+ Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
35
34
 
36
35
  ## License
37
36
  Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
38
- This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents/blob/master/LICENSE.txt) file.
37
+ This file is licensed under the Apache Software License, Version 2.0 except as noted otherwise in the [LICENSE](https://github.com/SAP/ui5-webcomponents/blob/main/LICENSE.txt) file.
package/index.js CHANGED
@@ -6,6 +6,8 @@ const mkdirp = require("mkdirp");
6
6
  const prompts = require("prompts");
7
7
  const parser = require("npm-config-user-agent-parser");
8
8
 
9
+ const version = JSON.parse(fs.readFileSync(path.join(__dirname, "package.json"))).version;
10
+
9
11
  // from where all the files will be copied
10
12
  const TEMPLATE_DIR = path.join(`${__dirname}`, `template/`);
11
13
 
@@ -115,7 +117,6 @@ const createWebcomponentsPackage = async () => {
115
117
  "lint": "wc-dev lint",
116
118
  "start": "wc-dev start",
117
119
  "watch": "wc-dev watch",
118
- "serve": "wc-dev serve",
119
120
  "build": "wc-dev build",
120
121
  "test": "wc-dev test",
121
122
  "create-ui5-element": "wc-create-ui5-element",
@@ -130,11 +131,11 @@ const createWebcomponentsPackage = async () => {
130
131
  "./*": "./dist/*",
131
132
  },
132
133
  "dependencies": {
133
- "@ui5/webcomponents-base": "1.1.1",
134
- "@ui5/webcomponents-theming": "1.1.1",
134
+ "@ui5/webcomponents-base": version,
135
+ "@ui5/webcomponents-theming": version,
135
136
  },
136
137
  "devDependencies": {
137
- "@ui5/webcomponents-tools": "1.1.1",
138
+ "@ui5/webcomponents-tools": version,
138
139
  "chromedriver": "*",
139
140
  },
140
141
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/create-webcomponents-package",
3
- "version": "1.4.0",
3
+ "version": "1.7.0",
4
4
  "description": "UI5 Web Components: create package",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -10,6 +10,9 @@ import INIT_PACKAGE_VAR_CLASS_NAMECss from "./generated/themes/INIT_PACKAGE_VAR_
10
10
 
11
11
  import { PLEASE_WAIT } from "./generated/i18n/i18n-defaults.js";
12
12
 
13
+ /**
14
+ * @public
15
+ */
13
16
  const metadata = {
14
17
  tag: "INIT_PACKAGE_VAR_TAG",
15
18
  properties: {
@@ -20,6 +23,19 @@ const metadata = {
20
23
  },
21
24
  };
22
25
 
26
+ /**
27
+ * @class
28
+ *
29
+ * <h3 class="comment-api-title">Overview</h3>
30
+ *
31
+ * The <code>INIT_PACKAGE_VAR_TAG</code> component is a demo component that displays some text.
32
+ *
33
+ * @constructor
34
+ * @alias demo.components.INIT_PACKAGE_VAR_CLASS_NAME
35
+ * @extends UI5Element
36
+ * @tagname INIT_PACKAGE_VAR_TAG
37
+ * @public
38
+ */
23
39
  class INIT_PACKAGE_VAR_CLASS_NAME extends UI5Element {
24
40
  static get metadata() {
25
41
  return metadata;
@@ -2,12 +2,10 @@
2
2
  <html>
3
3
 
4
4
  <head>
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
5
  <meta charset="utf-8">
7
6
 
8
7
  <title>INIT_PACKAGE_VAR_TAG</title>
9
8
  <meta name="viewport" content="width=device-width, initial-scale=1">
10
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
11
9
  <meta charset="utf-8">
12
10
 
13
11
  <script data-ui5-config type="application/json">
@@ -16,7 +14,7 @@
16
14
  }
17
15
  </script>
18
16
 
19
- <script src="../../resources/bundle.esm.js" type="module"></script>
17
+ <script src="../../bundle.esm.js" type="module"></script>
20
18
 
21
19
  <style>
22
20
  code { color: blue; font-size: small; }
@@ -1,7 +1,7 @@
1
1
  const assert = require("assert");
2
2
 
3
3
  describe("INIT_PACKAGE_VAR_TAG rendering", async () => {
4
- await browser.url("http://localhost:INIT_PACKAGE_VAR_PORT/test-resources/pages/index.html");
4
+ await browser.url("test/pages/index.html");
5
5
 
6
6
  it("tests if web component is correctly rendered", async () => {
7
7
 
@@ -1 +0,0 @@
1
- module.exports = require("@ui5/webcomponents-tools/components-package/eslint.js"); // eslint-disable-line
@@ -1 +0,0 @@
1
- module.exports = require("@ui5/webcomponents-tools/components-package/rollup.js"); // eslint-disable-line