Use NPM module in matrix-appservice-discord
This commit is contained in:
parent
4a6da11837
commit
cc48990798
1 changed files with 6 additions and 4 deletions
|
@ -15,18 +15,20 @@
|
|||
become_user: matrix-appservice-discord
|
||||
|
||||
# Setup dependencies
|
||||
# May create issues with package-lock.json not in gitignore
|
||||
- name: Install matrix-appservice-discord dependencies
|
||||
command: npm ci
|
||||
args:
|
||||
chdir: /var/local/matrix-appservice-discord/matrix-appservice-discord
|
||||
npm:
|
||||
path: /var/local/matrix-appservice-discord/matrix-appservice-discord
|
||||
become: true
|
||||
become_user: matrix-appservice-discord
|
||||
|
||||
# Typescript into javascript
|
||||
- name: Compile matrix-appservice-discord
|
||||
command: npm run build
|
||||
command: ./node_modules/.bin/tsc
|
||||
args:
|
||||
chdir: /var/local/matrix-appservice-discord/matrix-appservice-discord
|
||||
register: npm_build_result
|
||||
changed_when: npm_build_result
|
||||
become: true
|
||||
become_user: matrix-appservice-discord
|
||||
|
||||
|
|
Loading…
Reference in a new issue