Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F996061
README.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
README.md
View Options
#
multiple
-
scripts
-
tmux
##
Description
This
project
allows
you
to
conveniently
run
multiple
scripts
in
separate
tmux
windows
using
a
simple
command
in
the
terminal
.
##
Requirements
-
tmux
-
npm
##
Installation
Installing
**
multiple
-
scripts
-
tmux
**
using
npm
:
```
bash
npm
install
multiple
-
scripts
-
tmux
```
Install
Tmux
on
**
Ubuntu
**
and
**
Debian
**:
```
bash
$
sudo
apt
-
get
install
tmux
```
Install
tmux
via
HomeBrew
of
**
OSX
**:
```
bash
$
brew
install
tmux
```
##
Running
```
bash
npx
multiple
-
scripts
-
tmux
"npm run watch:front"
"npm run watch:back"
```
or
using
`
tmux
-
scripts
`
in
your
`
package
.
json
`
.
```
bash
npx
multiple
-
scripts
-
tmux
-
p
watch
```
##
Example
Usage
in
package
.
json
In
your
package
.
json
file
,
you
can
configure
your
scripts
and
define
script
sets
to
run
in
different
configurations
.
Here
'
s
an
example
:
```
json
"scripts"
:
{
"watch"
:
"multiple-scripts-tmux -p watch"
,
"watch:back"
:
"echo 'Watching back-end'"
,
"watch:front"
:
"echo 'Watching front-end'"
,
},
"tmux-scripts"
:
{
"watch"
:
[
"npm run watch:back"
,
"npm run watch:front"
],
},
```
To
execute
the
scripts
defined
in
the
`
package
.
json
`
file
,
enter
the
appropriate
commands
in
the
terminal
.
For
example
:
```
bash
npm
run
watch
```
Running
this
command
launches
the
correspondingdhc
tmux
-
scripts
##
Testing
To
run
tests
in
the
project
,
follow
these
steps
:
###
1
.
Run
the
watch
script
:
```
bash
npm
run
watch
```
This
script
monitors
changes
in
the
project
'
s
source
code
and
automatically
runs
tests
upon
detecting
changes
.
It
'
s
a
useful
tool
for
continuous
testing
and
ensuring
that
your
code
is
always
checked
for
potential
issues
.
###
2
.
Navigate
to
the
testing
directory
:
```
bash
cd
testing
/
```
Navigate
to
the
"testing/"
directory
,
which
likely
contains
testing
package
.
json
.
###
3
.
Execute
the
tests
:
```
bash
node
../
lib
/
index
.
js
-
p
start
```
This
command
runs
tests
using
the
index
.
js
file
located
in
the
"lib"
directory
.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 08:53 (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557061
Default Alt Text
README.md (1 KB)
Attached To
Mode
rMULT multiple-scripts-tmux
Attached
Detach File
Event Timeline
Log In to Comment