Editing a plugin - Legacy Windows

Step 1:

Make the edits you want to do.

Step 2:

When you have finished your editing. Do this:

%HOMEPATH%

cd Documents\workspace\microting

git clone https://github.com/microting/eform-angular-machinearea-plugin.git

Step 3:

%HOMEPATH%

cd Documents\workspace\microting

Xcopy /X /O /H /K /E /I eform-angular-machinearea-plugin\eform-client\src\app\plugins\modules eform-angular-frontend\eform-client\src\app\plugins\modules

Step 4:

%HOMEPATH%

cd Documents\workspace\microting

mkdir eform-angular-frontend\eFormAPI\Plugins

Step 5:

%HOMEPATH%

Xcopy /X /O /H /K /E /I Documents\workspace\microting\eform-angular-machinearea-plugin\eFormAPI\Plugins Documents\workspace\microting\eform-angular-frontend\eFormAPI\Plugins

Step 6:

Open eFormAPI.sln in your preferred IDE

Step 7:

Unload all project in folder "Installation"

Step 8:

OBS! After adding existing project. Remember to REBUILD SOLUTION!!!

Step 9:

Open eform-angular-frontend -> eform-client in your preferred Typescript IDE.

Step 10:

Copy this in plugins.routing.ts

{

path: 'machine-area-pn',

canActivate: [AuthGuard],

loadChildren: './modules/machine-area-pn/machine-area-pn.module#MachineAreaPnModule'

}

Step 11:

OBS! Remember to run eFormAPI.sln before running the command npm start on eform-client!

After running command go to localhost http://localhost:4200/

%HOMEPATH%

cd Documents\workspace\microting\eform-angular-frontend\eform-client

npm start

Step 12:

Go to advanced -> plugins and edit Machine Area Plugin and toggle on "Enabled"

Refresh page.

Enjoy!

Last updated

Was this helpful?