We have a lot of views with dynamically generated (full or partial) content. I think others also may come across such situation because this is the case with many large enterprise applications.
So, there must be a way to add components for resolving fronend dependencies in some configuration file.
Where should I add it in the package.json? It’s already appearing in the package.json file in the root folder of the project. Also, is there in the target/frontend/package.json file.
package.json
{
"name": "no-name",
"license": "UNLICENSED",
"dependencies": {
"@polymer/polymer": "3.2.0",
"@vaadin/flow-deps": "./target/frontend",
"@vaadin/vaadin-button": "^2.2.0",
"@webcomponents/webcomponentsjs": "^2.2.10"
},
"devDependencies": {
"webpack": "4.30.0",
"webpack-cli": "3.3.0",
"webpack-dev-server": "3.3.0",
"webpack-babel-multi-target-plugin": "2.1.0",
"copy-webpack-plugin": "5.0.3",
"webpack-merge": "4.2.1"
}
}
target/frontend/package.json
{
"name": "@vaadin/flow-deps",
"version": "1.0.0",
"license": "UNLICENSED",
"dependencies": {
"@vaadin/vaadin-crud": "1.0.5",
"@vaadin/vaadin-grid": "5.4.6",
"@vaadin/vaadin-icons": "4.3.1",
"@polymer/iron-icons": "3.0.1",
"@vaadin/vaadin-split-layout": "4.1.1",
"@vaadin/vaadin-combo-box": "5.0.5",
"@vaadin/vaadin-cookie-consent": "1.1.1",
"@vaadin/vaadin-core-shrinkwrap": "14.0.0-rc4",
"@vaadin/vaadin-upload": "4.2.2",
"@vaadin/vaadin-dialog": "2.2.1",
"@vaadin/vaadin-select": "2.1.5",
"@vaadin/vaadin-app-layout": "2.0.2",
"@polymer/paper-icon-button": "3.0.2",
"@vaadin/vaadin-item": "2.1.0",
"@vaadin/vaadin-board": "2.1.0",
"@vaadin/vaadin-notification": "1.4.0",
"@vaadin/vaadin-charts": "6.2.3",
"@vaadin/vaadin-grid-pro": "2.0.3",
"@vaadin/vaadin-progress-bar": "1.1.2",
"@vaadin/vaadin-shrinkwrap": "14.0.0-rc4",
"@vaadin/vaadin-ordered-layout": "1.1.0",
"@vaadin/vaadin-login": "1.0.1",
"@vaadin/vaadin-button": "2.2.0",
"@vaadin/vaadin-date-picker": "4.0.2",
"@vaadin/vaadin-text-field": "2.4.7",
"@vaadin/vaadin-menu-bar": "1.0.3",
"@vaadin/vaadin-custom-field": "1.0.6",
"@vaadin/vaadin-form-layout": "2.1.4",
"@vaadin/vaadin-accordion": "1.0.1",
"@vaadin/vaadin-confirm-dialog": "1.1.1",
"@polymer/iron-list": "3.0.2",
"@vaadin/vaadin-list-box": "1.1.1",
"@vaadin/vaadin-checkbox": "2.2.10",
"@vaadin/vaadin-details": "1.0.1",
"@polymer/iron-icon": "3.0.1",
"@vaadin/vaadin-time-picker": "2.0.1",
"@vaadin/vaadin-context-menu": "4.3.11",
"@lrnwebcomponents/pdf-browser-viewer": "2.1.0",
"@vaadin/vaadin-radio-button": "1.2.3",
"@vaadin/vaadin-tabs": "3.0.4",
"@vaadin/vaadin-lumo-styles": "1.5.0",
"@vaadin/vaadin-material-styles": "1.2.3",
"@vaadin/vaadin-rich-text-editor": "1.0.4"
}
}