Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Completed
-
None
-
None
Description
Forms Team provides to external developers an extension point which allows the deploy of custom form fields into Forms. In order to facilitate the creation of custom form fields, the team also provides the following ready to use templates:
Per BChan's request, we need to reduce the number of dependencies listed in the package.json of these templates. The goal is decrease the side effects caused by changes in these dependencies which are used by portal and consumed by the templates mentioned above. Basically, we're trying to change the following package.json:
{ "dependencies": {}, "devDependencies": { "@babel/cli": "^7.2.3", "@babel/core": "^7.6.0", "@babel/plugin-proposal-class-properties": "^7.5.5", "@babel/plugin-proposal-object-rest-spread": "^7.5.5", "@babel/preset-env": "^7.4.2", "@babel/preset-react": "^7.10.4", "babel-loader": "8.0.6", "liferay-npm-bundler": "2.16.1", "liferay-npm-bundler-preset-liferay-dev": "^2.0.0" }, "main": "./", "name": "dynamic-data-mapping-form-field-type-slider", "scripts": { "build": "npm run build-js && liferay-npm-bundler", "build-js": "babel --source-maps -d build/resources/main/META-INF/resources src/main/resources/META-INF/resources" }, "version": "1.0.0" }
To a file like this:
{ "dependencies": {}, "devDependencies": { "@liferay/portal-7.3": "*" }, "main": "./", "name": "dynamic-data-react-custom-form-field-test-form-field", "scripts": { "build": " npm run build-js && liferay-npm-bundler", "build-js": "babel --source-maps -d build/resources/main/META-INF/resources src/main/resources/META-INF/resources" }, "version": "1.0.0" }
This task is necessary because Forms Team goal is add this optimized version of the package.json to the official documentation which teaches how to create custom form fields.
The optimized package.json should be added to the following places:
- https://github.com/natocesarrego/slider/
- https://github.com/marcosapmf/slider
- Blade form-field template
Attachments
Issue Links
- is a dependency of
-
LRDOCS-6980 Form Field Types in 7.2
-
- Closed
-