Document how to test a production build

Change-Id: I6a20e0c3978f169d63a8196359376d06b6445dc0
This commit is contained in:
Honza Pokorny 2017-06-22 11:39:16 -03:00
parent 41fee6da8a
commit a63dcc8a3f
3 changed files with 24 additions and 0 deletions

View File

@ -15,6 +15,7 @@ Welcome to Tripleo UI's developer documentation!
testing
translation
packaging
production
contributing
* `Source code`_

12
docs/production.rst Normal file
View File

@ -0,0 +1,12 @@
Production
==========
Building for production
-----------------------
::
$ npm run build
This will produce a minified and mangled file in ``dist/tripleo_ui.js``. It
also enables React production mode.

View File

@ -14,6 +14,17 @@ Tests during development
Start Karma to run tests after every change ``npm run test:watch``.
Testing a production build locally
----------------------------------
::
$ <kill your webpack-dev-server process>
$ npm run build
$ cd dist
$ python -m SimpleHTTPServer 1111
$ <go to http://localhost:1111 in the browser>
Debugging tests
---------------