nomad-system-module

Nomad system module for Nomad Cloud web app

Usage no npm install needed!

<script type="module">
  import nomadSystemModule from 'https://cdn.skypack.dev/nomad-system-module';
</script>

README

nomad-system-module

System module for Nomad Cloud web app.

This module add the System tab to the Nomad Cloud app.

Contents

1 Project structure

  • Sources:
    • js folder for the javascript files
    • templates HTML views
    • GruntFile.js contains the Grunt functions to build the distribution files (into dist folder)
  • Testing:
    • index.html HTML page used to test the module
    • test/test.js test Main controller

3 Testing

Install lite-server:

npm i lite-server -g 

Run the module test page:

npm test 

4 Building

The following command:

npm run build
  • Concatenate javascipt files.
  • Concatenate template pages into module javascript file.
  • Uglify the javascript module file.
  • Creates dist folder with all the files of distribution.
  • Copy the package.json & README.md files into the 'dist' folder.

5 Publishing

Before publishing the first time:

  • Set the Sixense Digital registry:
npm set registry http://registry.sixense-digitalsite.com:4873
  • Then run publish script
npm run publish