|
|
|
@ -83,27 +83,33 @@ EXAMPLES = '''
|
|
|
|
yarn:
|
|
|
|
yarn:
|
|
|
|
name: imagemin
|
|
|
|
name: imagemin
|
|
|
|
path: /app/location
|
|
|
|
path: /app/location
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install "imagemin" node.js package on version 5.3.1
|
|
|
|
- name: Install "imagemin" node.js package on version 5.3.1
|
|
|
|
yarn:
|
|
|
|
yarn:
|
|
|
|
name: imagemin
|
|
|
|
name: imagemin
|
|
|
|
version: '5.3.1'
|
|
|
|
version: '5.3.1'
|
|
|
|
path: /app/location
|
|
|
|
path: /app/location
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install "imagemin" node.js package globally.
|
|
|
|
- name: Install "imagemin" node.js package globally.
|
|
|
|
yarn:
|
|
|
|
yarn:
|
|
|
|
name: imagemin
|
|
|
|
name: imagemin
|
|
|
|
global: yes
|
|
|
|
global: yes
|
|
|
|
|
|
|
|
|
|
|
|
- name: Remove the globally-installed package "imagemin".
|
|
|
|
- name: Remove the globally-installed package "imagemin".
|
|
|
|
yarn:
|
|
|
|
yarn:
|
|
|
|
name: imagemin
|
|
|
|
name: imagemin
|
|
|
|
global: yes
|
|
|
|
global: yes
|
|
|
|
state: absent
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install "imagemin" node.js package from custom registry.
|
|
|
|
- name: Install "imagemin" node.js package from custom registry.
|
|
|
|
yarn:
|
|
|
|
yarn:
|
|
|
|
name: imagemin
|
|
|
|
name: imagemin
|
|
|
|
registry: 'http://registry.mysite.com'
|
|
|
|
registry: 'http://registry.mysite.com'
|
|
|
|
|
|
|
|
|
|
|
|
- name: Install packages based on package.json.
|
|
|
|
- name: Install packages based on package.json.
|
|
|
|
yarn:
|
|
|
|
yarn:
|
|
|
|
path: /app/location
|
|
|
|
path: /app/location
|
|
|
|
|
|
|
|
|
|
|
|
- name: Update all packages in package.json to their latest version.
|
|
|
|
- name: Update all packages in package.json to their latest version.
|
|
|
|
yarn:
|
|
|
|
yarn:
|
|
|
|
path: /app/location
|
|
|
|
path: /app/location
|
|
|
|
|