* Forced checkouts to use LF line endings and added NPM cripts for windows * Updated the readme * Removed verbose logs
28 lines
718 B
ReStructuredText
28 lines
718 B
ReStructuredText
This directory contains the EcmaScript frontend code of Kubernetes Operational View and is only needed during build time.
|
|
|
|
The JavaScript application bundle (webpack) will be generated to ``kube_ops_view/static/build/app*.js`` by running:
|
|
|
|
.. code-block:: bash
|
|
|
|
$ npm install
|
|
$ npm run build
|
|
|
|
Frontend development is supported by watching the source code and continuously recompiling the webpack:
|
|
|
|
.. code-block:: bash
|
|
|
|
$ npm start
|
|
|
|
Windows uses slightly different scripts. This will build the JavaScript app in Windows:
|
|
|
|
.. code-block:: powershell
|
|
|
|
$ npm install
|
|
$ npm run buildwin
|
|
|
|
This will start the code watch and rebuild script in Windows:
|
|
|
|
.. code-block:: powershell
|
|
|
|
$ npm run startwin
|