You can download the template zip and unzip it wherever you prefer.
Open a terminal in the location you've put the downloaded / cloned sources, then:
npm installnpm startFor further documentation, installation, configuration, please refer to the Widget Template Vue.js light documentation
This widget is an extension of Widget Template Vue.js light.
This template is meant to ease the development of 3DDashboard Widgets.
With this template we focused on having the best possible development experience compatible with the 3DDashboard infrastructure. Hence we provide not only a code sample but a full development environment based on widgets & web development best practices:
- Continuous Integration (GitLab CI)
- Build with bundling (webpack)
- Linting (eslint) and formatting (Prettier)
Using this environment has many advantages :
- Ability do develop outside of the 3DDashboard
- Hot & Live Reload: as soon as you modify a file, the change is applied in your web browser without a single action (even if your 3DEXPERIENCE Platform is on the cloud)
- Compliance with the latest front-end technologies (it's time to forget jQuery!)
- Ability to use the browser's debugger even in "modules"
Basically, you will be able to develop a widget like any other web application!
But that comes with a small price: some setup is required...
We added these development best practices:
- Continuous Integration (GitLab CI)
Also, we added some good frameworks:
- Vuetify - This UI Framework will drastically save your time. Nevertheless, it's optional so feel free to remove the dependency and use your favorite.
- Vuex - The state management library for Vue.js.
| Command | Description |
|---|---|
npm run start |
Build app continuously and serve @ http://localhost:8081/widget |
npm run startS3 |
Build app continuously to /dist/ and serve through AWS S3 |
npm run build |
Build app to /dist/ |
npm run devtools |
Open the devtools |
npm run lint |
Run ESLint |
npm run lintFix |
Run ESLint and fix issues |
