Skip to content

Commit e871e75

Browse files
authored
Doc: Add section showing how to use as a Symfony CLI worker (#27)
1 parent c36c40e commit e871e75

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ composer require sensiolabs/typescript-bundle
1515

1616
## Documentation
1717

18-
Read the documentation at: [doc/index.md](doc/index.rst)
18+
Read the documentation at: [doc/index.rst](doc/index.rst)
1919

2020
## Credits
2121
This bundle was greatly inspired by the [Sass Bundle](https://github.com/SymfonyCasts/sass-bundle) from [SymfonyCasts](https://github.com/SymfonyCasts).

Diff for: doc/index.rst

+19
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,25 @@ Then run the command:
5353
5454
And that's it!
5555

56+
Symfony CLI
57+
~~~~~~~~~~~
58+
59+
If using the `Symfony CLI <https://symfony.com/download>`_, you can add the build
60+
command as a `worker <https://symfony.com/doc/current/setup/symfony_server.html#configuring-workers>`_
61+
to be started whenever you run ``symfony server:start``:
62+
63+
.. code-block:: yaml
64+
# .symfony.local.yaml
65+
workers:
66+
# ...
67+
typescript:
68+
cmd: ['symfony', 'console', 'typescript:build', '--watch']
69+
70+
.. tip::
71+
72+
If running ``symfony server:start`` as a daemon, you can run
73+
``symfony server:log`` to tail the output of the worker.
74+
5675
How Does it Work?
5776
-----------------
5877

0 commit comments

Comments
 (0)