@sap-ux/fe-fpm-writer 0.4.0 → 0.4.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/package.json CHANGED
@@ -1,34 +1,35 @@
1
1
  {
2
- "name": "@sap-ux/fe-fpm-writer",
3
- "description": "SAP Fiori elements flexible programming model writer",
4
- "version": "0.4.0",
5
- "license": "Apache-2.0",
6
- "main": "dist/index.js",
7
- "scripts": {
8
- "build": "pnpm clean && tsc",
9
- "clean": "rimraf dist",
10
- "format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
11
- "lint": "eslint . --ext .ts",
12
- "lint:fix": "eslint . --ext .ts --fix",
13
- "test": "jest --ci --forceExit --detectOpenHandles --colors",
14
- "watch": "tsc --watch"
15
- },
16
- "files": [
17
- "LICENSE",
18
- "dist",
19
- "templates"
20
- ],
21
- "dependencies": {
22
- "ejs": "3.1.6",
23
- "mem-fs": "2.1.0",
24
- "mem-fs-editor": "9.3.0",
25
- "xml-js": "1.6.11"
26
- },
27
- "devDependencies": {
28
- "@types/ejs": "3.1.0"
29
- },
30
- "engines": {
31
- "pnpm": ">=6.0.2",
32
- "node": ">=12.22.5 < 13.0.0 || >= 14.16.0 < 15.0.0 || >=16.1.0 < 17.0.0"
33
- }
34
- }
2
+ "name": "@sap-ux/fe-fpm-writer",
3
+ "description": "SAP Fiori elements flexible programming model writer",
4
+ "version": "0.4.1",
5
+ "license": "Apache-2.0",
6
+ "main": "dist/index.js",
7
+ "files": [
8
+ "LICENSE",
9
+ "dist",
10
+ "templates"
11
+ ],
12
+ "dependencies": {
13
+ "ejs": "3.1.6",
14
+ "mem-fs": "2.1.0",
15
+ "mem-fs-editor": "9.3.0",
16
+ "xml-js": "1.6.11"
17
+ },
18
+ "devDependencies": {
19
+ "@types/ejs": "3.1.0"
20
+ },
21
+ "engines": {
22
+ "pnpm": ">=6.26.1",
23
+ "node": ">=12.22.5 < 13.0.0 || >= 14.16.0 < 15.0.0 || >=16.1.0 < 17.0.0"
24
+ },
25
+ "scripts": {
26
+ "build": "pnpm clean && tsc",
27
+ "clean": "rimraf dist",
28
+ "format": "prettier --write '**/*.{js,json,ts,yaml,yml}' --ignore-path ../../.prettierignore",
29
+ "lint": "eslint . --ext .ts",
30
+ "lint:fix": "eslint . --ext .ts --fix",
31
+ "test": "jest --ci --forceExit --detectOpenHandles --colors",
32
+ "watch": "tsc --watch"
33
+ },
34
+ "readme": "# @sap-ux/fe-fpm-writer\n\nGenerates elements defined in the Fiori elements for OData v4 flexible programming model into Fiori elements applications\n\n\n## Installation\nNpm\n`npm install --save @sap-ux/fe-fpm-writer`\n\nYarn\n`yarn add @sap-ux/fe-fpm-writer`\n\nPnpm\n`pnpm add @sap-ux/fe-fpm-writer`\n\n## Usage\n```Typescript\nimport { generate } from '@sap-ux/fe-fpm-writer';\nimport { join } from 'path';\n\nconst projectDir = join(__dirname, 'test/test-input/basic-lrop');\nconst fs = await generateCustomPage(\n targetPath,\n {\n name: 'MyCustomPage',\n entity: 'Booking',\n navigation: {\n sourceEntity: 'Travel',\n sourcePage: 'TravelObjectPage',\n navEntity: '_Booking'\n }\n});\n\nfs.commit();\n\n```\nSee more complex example in [`/test/integration/index.test.ts`](./test/integration/index.test.ts)\n## Keywords\nSAP Fiori elements\n"
35
+ }
@@ -13,14 +13,7 @@
13
13
  <% if (locals.width) { %>
14
14
  "width": "<%- width %>",
15
15
  <% } %>
16
- "position": {
17
- <% if (position.placement) { %>
18
- "placement": "<%- position.placement %>",
19
- <% } %>
20
- <% if (position.anchor) { %>
21
- "anchor": "<%- position.anchor %>"
22
- <% } %>
23
- },
16
+ "position": <%- JSON.stringify(position) %>,
24
17
  "template": "<%- ns %>.<%- name %>"
25
18
  }
26
19
  }
@@ -13,14 +13,7 @@
13
13
  <% if (locals.width) { %>
14
14
  "width": "<%- width %>",
15
15
  <% } %>
16
- "position": {
17
- <% if (position.placement) { %>
18
- "placement": "<%- position.placement %>",
19
- <% } %>
20
- <% if (position.anchor) { %>
21
- "anchor": "<%- position.anchor %>"
22
- <% } %>
23
- },
16
+ "position": <%- JSON.stringify(position) %>,
24
17
  "template": "<%- ns %>.<%- name %>"
25
18
  <% if (locals.availability) { %>
26
19
  , "availability": "<%- availability %>"
@@ -12,12 +12,7 @@
12
12
  "header": "<%- header %>",
13
13
  <% if (locals.width) { %> "width": "<%- width %>", <%
14
14
  } %>
15
- "position": {
16
- <% if (position.placement) { %> "placement": "<%- position.placement %>", <%
17
- } %>
18
- <% if (position.anchor) { %> "anchor": "<%- position.anchor %>" <%
19
- } %>
20
- },
15
+ "position": <%- JSON.stringify(position) %>,
21
16
  <% if (locals.horizontalAlign) { %> "horizontalAlign": "<%- horizontalAlign %>", <%
22
17
  } %>
23
18
  "template": "<%- ns %>.<%- name %>"
package/CHANGELOG.md DELETED
@@ -1,32 +0,0 @@
1
- # @sap-ux/fe-fpm-writer
2
-
3
- ## 0.4.0
4
-
5
- ### Minor Changes
6
-
7
- - 85c75f2: For all extension types, prevent overwiting existing files.
8
- Files only will be created and filled with default values if they do not exist yet.
9
-
10
- ## 0.3.1
11
-
12
- ### Patch Changes
13
-
14
- - b0f69fe: Custom Section. Fix to support old(<1.86) and new(>=1.86) manifest.json syntaxes
15
-
16
- ## 0.3.0
17
-
18
- ### Minor Changes
19
-
20
- - c50f4e0: Custom Section support for fe-fpm-writer
21
-
22
- ## 0.2.1
23
-
24
- ### Patch Changes
25
-
26
- - b7617b6: Use consistent whitespace for indentation in templates
27
-
28
- ## 0.2.0
29
-
30
- ### Minor Changes
31
-
32
- - 62e7369: Initial version of the Fiori elements flexible programming model write supporting custom action, columns and pages