...
 
# DMX Tableview Command
### Build DeepaMehta 5 from source
Provides the `Open Tableview` command on all Tableview` topics.
The template project assumes you have build DeepaMehta 5 from source:
```sh
git clone https://github.com/jri/deepamehta.git
cd deepamehta
mvn clean install -P all -DskipTests
```
Only when you build DeepaMehta 5 from source you will get Hot Module Replacement. Hot Module Replacement provides you a comfortable development experience.
Note: Only when you build DMX from source you will get Hot Module Replacement. Hot Module Replacement provides you a comfortable development experience.
### Clone this project
This project assumes being cloned inside DeepaMehta's `modules-external` directory.
This project assumes being cloned inside DMX's `modules-external` directory.
```sh
cd modules-external
......@@ -23,8 +15,8 @@ clone https://git.dmx.systems/dmx-plugins/dmx-tableview-command.git
Cloning inside `modules-external` has _at least_ the following 2 advantages:
- For building the production version of the plugin the existing Webpack installation of the DeepaMehta installation will be reused (you don't need install Webpack for every plugin project again and again).
- The production build of your plugin is automatically copied to DeepaMehta's `bundle-deploy` directory in order to get hot deployed.
- For building the production version of the plugin the existing Webpack installation of the dmx-platform installation will be reused (you don't need install Webpack for every plugin project again and again).
- The production build of your plugin is automatically copied to DMX's `bundle-deploy` directory in order to get hot deployed.
### Build plugin for production
......@@ -33,14 +25,38 @@ cd dmx-tableview-command
mvn clean package
```
This will build a `.jar` file for production and copy it to DeepaMehta's `bundle-deploy` directory. The `.jar` file contains your plugin (minified Javascript, extracted CSS, both hashed for longterm caching) and is deployable in every DeepaMehta 5 installation. The production build is handled by Webpack. The DeepaMehta backend server serves the plugin front-end assets via http(s).
This will build a `.jar` file for production and copy it to DMX's `bundle-deploy` directory. The `.jar` file contains your plugin (minified Javascript, extracted CSS, both hashed for longterm caching) and is deployable in every DMX 5 installation. The production build is handled by Webpack. The DMX backend server serves the plugin front-end assets via http(s).
Test the production build of your plugin by opening the webclient, but this time as served from the DMX back-end server `http://localhost:8080/systems.dmx.webclient/` (note that the trailing slash is needed). The "Greetings!" button is supposed to appear and function like before. But note that this time the DeepaMehta webclient fetches the plugin's front-end assets (Javascript, CSS) from the DMX back-end server (no dev server involved). You can see this in the browser console:
Version history
---------------
**1.2.0** -- Upcoming
* Feature: Simplifies tableview creation
* Compatible with DMX 5.0-beta-4 and DMX Tableiew 0.2.0
**1.1.0** -- June 12, 2019
* Bugfix: Editable `Tableview Name`
* Compatiblew with DMX 5.0-beta-3 and DMX Tableview 0.1.0
**1.0.0** -- Apr 25, 2019
* Compatible with DMX 5.0-beta-2
Licensing
---------
DMX Tableview Command is available freely under the GNU Affero General Public License, version 3.
All third party components incorporated into the DMX Tableview Command Software are licensed under the original license provided by the owner of the applicable component.
Test the production build of your plugin by opening the webclient, but this time as served from the DeepaMehta back-end server `http://localhost:8080/systems.dmx.webclient/` (note that the trailing slash is needed). The "Greetings!" button is supposed to appear and function like before. But note that this time the DeepaMehta webclient fetches the plugin's front-end assets (Javascript, CSS) from the DeepaMehta back-end server (no dev server involved). You can see this in the browser console:
**0.1** -- Mar 17, 2019
Copyright
---------
* Trying to get it build
Copyright (C) 2019 DMX Systems
------------
Malte Reißig
Mar 17, 2019
......@@ -7,13 +7,13 @@
<name>DMX Tableview Command</name>
<groupId>systems.dmx</groupId>
<artifactId>dmx-tableview-command</artifactId>
<version>1.1.0</version>
<version>1.2.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<parent>
<groupId>systems.dmx</groupId>
<artifactId>dmx-plugin</artifactId>
<version>5.0-beta-3</version>
<version>5.0-beta-4</version>
</parent>
<build>
......