The Department of Energy Advanced Manufacturing Office has tasked Oak Ridge National Laboratory to develop a tool to track, visualize, analyze and even forecast facility utility data in industrial settings. This tool will incorporate and expand on several existing DOE tools (EnPI, EnPI Lite, Energy Footprint Tool, Plant Energy Profiler), most of which currently are excel-based or excel-add ons. This project will integrate them into a common, open-source framework which is harmonized with other DOE software tools – mainly the DOE’s MEASUR tool suite.
- Node.js (https://nodejs.org/en/) (v16.14.2 is best option)
-
To install all required packages:
npm install -
Built artifacts will be stored in the
/distdirectory. -
General build for electron
npm run build -
Production Web Build
npm run build-prod -
Production Electron Build
npm run build-prod-electron
-
npm run distwill create electron installers for your operating system -
Installer will be created in an
/output/verifi/directory in the parent directory you run the command in
- Run
npm run testto execute the unit tests via Karma.
-
When developing in electron window use
npm run build-watchand a re-build will trigger on save of changes -
To start the electron app (kill and restart app after rebuild on save):
npm run electron -
When developing for web run
npm run startfor a dev server. Navigate tohttp://localhost:4200/. The app will automatically reload if you change any of the source files. -
Run
ng generate component component-nameto generate a new component. You can also useng generate directive|pipe|service|class|guard|interface|enum|module. -
For more information, see the angular docs
-
Run
electron-builder -mto build and sign your mac dmg. -
Run
xcrun altool --notarize-app --primary-bundle-id "com.ornl.verifi" --username "<APPLE USERNAME>" --password "<APPLE APP PASSWORD>" --file VERIFI-x.x.x-x.dmg -itc_provider "<CERT UID>" --verboseto notarize your signed dmg. -
Run
xcrun stapler staple VERIFI-x.x.x-x.dmgto staple the notarization.
Note: APPLE APP PASSWORD is an app-specific password (not your Apple ID password).