Contributing: Use meson to install development dependencies

This commit is contained in:
Romain Vigier
2022-04-05 11:30:32 +02:00
parent 305c157407
commit c044e1159f
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ You're welcome to contribute to the [code](#contributing-to-the-code) or to the
You'll need [NPM](https://www.npmjs.com/) to install the development dependencies:
```bash
npm install --save-dev
meson compile -C builddir dev
```
When you're done, commit all your changes. Make one commit per change. The commit message must include which part of the code you worked on. Example:
+5
View File
@@ -16,5 +16,10 @@ INSTALL_DIR = get_option('datadir') / 'gnome-shell' / 'extensions' / UUID
gnome = import('gnome')
i18n = import('i18n')
npm_exe = find_program('npm')
if npm_exe.found()
run_target('dev', command: [ npm_exe, 'install', '--save-dev' ])
endif
subdir('src')
subdir('tests')