Skip to content

Commit

Permalink
Issue digibib#265: Add Yarn
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Cohen Arazi <[email protected]>
  • Loading branch information
tomascohen committed Aug 9, 2018
1 parent bf8c5e2 commit ed447da
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion roles/kohadevbox/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
become: yes
when: elasticsearch

- include: less.yml
- include: node.yml
become: yes

- include: remote-debugger.yml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@

- name: Less | Add Node.js repository (key)
- name: Node | Add Node.js repository (key)
apt_key:
url: "https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
state: present

- name: Less | Add Node.js repository (repo)
- name: Node | Add Node.js repository (repo)
apt_repository:
repo: "deb https://deb.nodesource.com/{{ node_version }} {{ ansible_distribution_release }} main"
state: present

- name: Less | Instal Node.js
- name: Node | Instal Node.js
apt:
name: nodejs
state: latest

- name: Less | Install Less globally
- name: Node | Install Yarn
npm:
name: yarn
global: yes

- name: Node | Install Less
npm:
name: less
version: '2.7.3'
global: yes
when: less

- name: Less | Install the Clean CSS plugin for Less globally
- name: Node | Install the Clean CSS plugin for Less
npm:
name: less-plugin-clean-css
global: yes
when: less
2 changes: 2 additions & 0 deletions vars/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ remote_debugger_key: "''"
selenium: false
selenium_url: https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar

less: true

# Set mysql_engine: mysql | mariadb
mysql_engine: mysql
# Set to "*" to listen on all interfaces
Expand Down
2 changes: 2 additions & 0 deletions vars/user.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
# selenium: false
# selenium_url: https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar

# less: true

# Set mysql_engine: mysql | mariadb
# mysql_engine: mysql
# Set to "*" to listen on all interfaces
Expand Down

0 comments on commit ed447da

Please sign in to comment.