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 become_user: matrix-appservice-discord
# Setup dependencies # Setup dependencies
# May create issues with package-lock.json not in gitignore
- name: Install matrix-appservice-discord dependencies - name: Install matrix-appservice-discord dependencies
command: npm ci npm:
args: path: /var/local/matrix-appservice-discord/matrix-appservice-discord
chdir: /var/local/matrix-appservice-discord/matrix-appservice-discord
become: true become: true
become_user: matrix-appservice-discord become_user: matrix-appservice-discord
# Typescript into javascript # Typescript into javascript
- name: Compile matrix-appservice-discord - name: Compile matrix-appservice-discord
command: npm run build command: ./node_modules/.bin/tsc
args: args:
chdir: /var/local/matrix-appservice-discord/matrix-appservice-discord chdir: /var/local/matrix-appservice-discord/matrix-appservice-discord
register: npm_build_result
changed_when: npm_build_result
become: true become: true
become_user: matrix-appservice-discord become_user: matrix-appservice-discord