waltz-controls / waltz

A general purpose web application that provides the interface between SCADA(s) system and the scientific users who define and calibrate their experiments
https://waltz-docs.readthedocs.io/en/latest/
GNU General Public License v3.0
17 stars 6 forks source link

Migrate to NPM #232

Closed Ingvord closed 4 years ago

Ingvord commented 4 years ago

Resolves #231

Ingvord commented 4 years ago

Look into Gulp for packaging

Ingvord commented 4 years ago

As Waltz

1) entirely client side pure JS app (not taking two jsp pages) 2) Very lightweight in terms of developing (just a bunch of files)

and we want it keep it that way. Therefore we have to stick with option 1 from [1]

This PR will be merged even though we have not fully migrated to Node.js

External dependencies will be resolved via <script> tag to CDNs while internal (e.g. extracted Tango device model library) via <script> to node_modules

Later on all web-app files can be moved into a dedicated dir and an ant task can be added to copy .js and .css files to that folder e.g. www to separate infrastructural files like .travis.yml from actual project files

[1] Using jQuery plugins with npm