Use NPM module in matrix-appservice-discord

This commit is contained in:
Alexandre Iooss 2019-03-12 16:51:27 +01:00
parent 4a6da11837
commit cc48990798

View file

@ -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