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
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue