From 322c270b6590d0d0bf5025f4782ffe7cdea0f8b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 16 May 2017 13:09:40 +0200 Subject: Removed embedded documentation --- docs/en/developer/front_end.rst | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 docs/en/developer/front_end.rst (limited to 'docs/en/developer/front_end.rst') diff --git a/docs/en/developer/front_end.rst b/docs/en/developer/front_end.rst deleted file mode 100644 index 40f18a42..00000000 --- a/docs/en/developer/front_end.rst +++ /dev/null @@ -1,33 +0,0 @@ -Tips for front-end developers -============================= - -Starting from version 2.3, wallabag uses webpack to bundle its assets. - -Dev mode --------- - -If the server runs in dev mode, you need to run ``yarn run build:dev`` to generate the outputted javascript files for each theme. These are named ``%theme%.dev.js`` and are ignored by git. You need to relaunch ``yarn run build:dev`` for each change made to one of the assets files (js, css, pictures, fonts,...). - -Live reload ------------ - -Webpack brings support for live reload, which means you don't need to regenerate the assets file for each change neither reload the page manually. Changes are applied automatically in the web page. Just set the ``use_webpack_dev_server`` setting to ``true`` in ``app/config/config.yml`` and run ``yarn run watch`` and you're good to go. - -.. note:: - - Don't forget to put back ``use_webpack_dev_server`` to ``false`` when not using the live reload feature. - -Production builds ------------------ - -When you want to commit your changes, build them in production environment by using ``yarn run build:prod``. This will build all the assets needed for wallabag. To test that it properly works, you'll need to have a server in production mode, for instance with ``bin/console server:run -e=prod``. - -.. note:: - - Don't forget to generate production builds before committing ! - - -Code style ----------- - -Code style is checked by two tools : stylelint for (S)CSS and eslint for JS. ESlint config is based on the Airbnb base preset. -- cgit v1.2.3