qb 0.1.24 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dfe61f1565472727bdae6b030b59ef7bdeca300
4
- data.tar.gz: 75c4ca2512edb66c32d35c4b24c16e2199fa5ca1
3
+ metadata.gz: 8eacfdedcfc6d42f8f29a3c4c0a5e4cf7e13fd50
4
+ data.tar.gz: db07c58f091593b21ce3e490d4259429f022f369
5
5
  SHA512:
6
- metadata.gz: 8d20ad6373ec039f0e45cc97a8885ae6e0871fa18a559550b5ea284f2b6af2598d98bad66063c8c74ddc60e5d42ff42636d7627932d15ed6b9d76f35a90e139a
7
- data.tar.gz: f74ada30a77323db4e41705a9cb57fab452b795c0da82412e9a944c0ba7a5ca430a2825f0d50008dfe2ae4ed7044b23e97d23339fbca5f6b0c8398e4f06bd323
6
+ metadata.gz: ee1d4880b662945fd9f81003daffb58bf565bd0d103ab535e66fd790620ac1f640f3c49ac99c5bc7248713e58c4ceb9cf92d22bf96f8e01352c8935c000c9628
7
+ data.tar.gz: d7e20dbb0372a085c21047db8f394a3a38b83d67bd50ddd2735a58eb050a303a1c2da80b8c9293e876ce98c63a81d72870ce07e4e2bf0685ef5e6b2ffe9247e3
data/lib/qb/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module QB
2
2
  GEM_NAME = 'qb'
3
3
 
4
- VERSION = "0.1.24"
4
+ VERSION = "0.1.25"
5
5
 
6
6
  def self.gemspec
7
7
  Gem.loaded_specs[GEM_NAME]
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  qb.qb_role:
3
- defaults: false
3
+ defaults: true
4
4
  files: true
5
5
  templates: false
6
6
  vars: true
@@ -0,0 +1,4 @@
1
+ ---
2
+ # defaults file for qb.nrser_js
3
+
4
+ nrser_js_yarn: false
@@ -1,4 +1,8 @@
1
1
  const gulp = require('gulp');
2
- const ugh = require('./ughfile');
2
+ const Ugh = require('nrser/lib/ugh').Ugh;
3
3
 
4
- ugh.createGulpTasks(gulp);
4
+ const ugh = new Ugh({gulp, packageDir: __dirname});
5
+
6
+ ugh.autoTasks();
7
+
8
+ module.exports = ugh;
@@ -43,5 +43,11 @@ options:
43
43
  # type: boolean # boolean (default) | string
44
44
  # short: e
45
45
 
46
+ - name: yarn
47
+ description: use yarn node package manager instead of npm
48
+ required: false
49
+ type: boolean
50
+ short: y
51
+
46
52
  - include: qb.npm_package
47
53
  as: package
@@ -38,22 +38,11 @@
38
38
  src: .babelrc
39
39
  dest: "{{ qb_dir }}/.babelrc"
40
40
 
41
- - name: add ughfile.js
42
- copy:
43
- src: ughfile.js
44
- dest: "{{ qb_dir }}/ughfile.js"
45
-
46
41
  - name: add gulpfile.js
47
42
  copy:
48
43
  src: gulpfile.js
49
44
  dest: "{{ qb_dir }}/gulpfile.js"
50
45
 
51
- - name: flow init
52
- command: node_modules/.bin/flow init
53
- args:
54
- chdir: "{{ qb_dir }}"
55
- creates: "{{ qb_dir }}/.flowconfig"
56
-
57
46
  - name: "ignore {{ item }}"
58
47
  lineinfile:
59
48
  line: "{{ item }}"
@@ -61,3 +50,23 @@
61
50
  with_items:
62
51
  - /lib
63
52
  - /test/lib
53
+
54
+ - name: npm install
55
+ when: "{{ nrser_js_yarn == false }}"
56
+ command: npm install
57
+ args:
58
+ chdir: "{{ qb_dir }}"
59
+ creates: "{{ qb_dir }}/node_modules"
60
+
61
+ - name: yarn install
62
+ when: "{{ nrser_js_yarn == true}}"
63
+ command: yarn
64
+ args:
65
+ chdir: "{{ qb_dir }}"
66
+ creates: "{{ qb_dir }}/node_modules"
67
+
68
+ - name: flow init
69
+ command: ./node_modules/.bin/flow init
70
+ args:
71
+ chdir: "{{ qb_dir }}"
72
+ creates: "{{ qb_dir }}/.flowconfig"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-28 00:00:00.000000000 Z
11
+ date: 2016-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -480,10 +480,10 @@ files:
480
480
  - roles/qb.npm_package/meta/qb.yml
481
481
  - roles/qb.npm_package/tasks/main.yml
482
482
  - roles/qb.nrser_js/.qb-options.yml
483
+ - roles/qb.nrser_js/defaults/main.yml
483
484
  - roles/qb.nrser_js/files/.babelrc
484
485
  - roles/qb.nrser_js/files/.gitkeep
485
486
  - roles/qb.nrser_js/files/gulpfile.js
486
- - roles/qb.nrser_js/files/ughfile.js
487
487
  - roles/qb.nrser_js/meta/main.yml
488
488
  - roles/qb.nrser_js/meta/qb.yml
489
489
  - roles/qb.nrser_js/tasks/main.yml
@@ -1,7 +0,0 @@
1
- const Ugh = require('nrser/lib/ugh').Ugh;
2
-
3
- const ugh = new Ugh({packageDir: __dirname});
4
-
5
- ugh.autoTasks();
6
-
7
- module.exports = ugh;