mirror of
https://github.com/searxng/searxng.git
synced 2025-08-02 18:12:21 +02:00
Merge pull request #174 from searxng/static_script
[mod] add make targets to manage the build files in the /searx/static directory
This commit is contained in:
commit
30e4a2a224
20 changed files with 288 additions and 158 deletions
|
@ -29,7 +29,7 @@ If you implement themes, you will need to compile styles and JavaScript before
|
|||
|
||||
.. code:: sh
|
||||
|
||||
make themes
|
||||
make themes.all
|
||||
|
||||
Don't forget to install npm_ first.
|
||||
|
||||
|
@ -53,3 +53,24 @@ Don't forget to install npm_ first.
|
|||
|
||||
sudo -H dnf install npm
|
||||
|
||||
If you finished your *tests* you can start to commit your changes. To separate
|
||||
the changed code from the build products first run:
|
||||
|
||||
.. code:: sh
|
||||
|
||||
make static.build.restore
|
||||
|
||||
This will restore the old build products and only your changes of the code
|
||||
remain in the working tree which can now be added & commited. When all sources
|
||||
are commited, you can commit the build products simply by:
|
||||
|
||||
.. code:: sh
|
||||
|
||||
make static.build.commit
|
||||
|
||||
Commiting the build products should be the last step, just before you send us
|
||||
your PR. There is also a make target to rewind this last build commit:
|
||||
|
||||
.. code:: sh
|
||||
|
||||
make static.build.drop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue