ember-cli-rails 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +2 -0
- data/lib/ember_cli/path_set.rb +19 -1
- data/lib/ember_cli/shell.rb +6 -1
- data/lib/ember_cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a9a7180945c981aa7cd40061080728d0b3479ea
|
4
|
+
data.tar.gz: d74ef9352b130fc0f4865ec79e68591eba9c8eb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 015b3b7369a54946bb94f0bbb8f488a5eaaf80b1ce20ce6c9aee4126d048c07f15b41a1667fee4ac3896180a4116b0738af3eb061cc079bd5f86a8c59553229c
|
7
|
+
data.tar.gz: 84671272943be7d029051112fa052e2bb7cdca22ff6bdf3a3ce0000c1f9d8676791f020143040c8a9a0225fcc5177a1045c83302cc0887e3e86e39b32e6b0b39
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -79,6 +79,8 @@ c.app :frontend, path: "~/projects/my-ember-app"
|
|
79
79
|
|
80
80
|
- `silent` - this provides `--silent` option for Ember CLI commands to control verbosity of their output.
|
81
81
|
|
82
|
+
- `yarn` - enables the [yarn](https://github.com/yarnpkg/yarn) package manager when installing dependencies
|
83
|
+
|
82
84
|
```ruby
|
83
85
|
EmberCli.configure do |c|
|
84
86
|
c.app :adminpanel # path defaults to `Rails.root.join("adminpanel")`
|
data/lib/ember_cli/path_set.rb
CHANGED
@@ -45,7 +45,7 @@ module EmberCli
|
|
45
45
|
Install it:
|
46
46
|
|
47
47
|
$ cd #{root}
|
48
|
-
$
|
48
|
+
$ #{package_manager} install
|
49
49
|
MSG
|
50
50
|
end
|
51
51
|
end
|
@@ -86,6 +86,12 @@ module EmberCli
|
|
86
86
|
@npm ||= app_options.fetch(:npm_path) { which("npm") }
|
87
87
|
end
|
88
88
|
|
89
|
+
def yarn
|
90
|
+
if yarn?
|
91
|
+
@yarn ||= app_options.fetch(:yarn_path) { which("yarn") }
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
89
95
|
def node_modules
|
90
96
|
@node_modules ||= root.join("node_modules")
|
91
97
|
end
|
@@ -102,6 +108,18 @@ module EmberCli
|
|
102
108
|
|
103
109
|
attr_reader :app, :ember_cli_root, :environment, :rails_root
|
104
110
|
|
111
|
+
def package_manager
|
112
|
+
if yarn?
|
113
|
+
"yarn"
|
114
|
+
else
|
115
|
+
"npm"
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
def yarn?
|
120
|
+
app_options[:yarn] || app_options[:yarn_path]
|
121
|
+
end
|
122
|
+
|
105
123
|
def app_name
|
106
124
|
app.name
|
107
125
|
end
|
data/lib/ember_cli/shell.rb
CHANGED
@@ -41,7 +41,12 @@ module EmberCli
|
|
41
41
|
clean_ember_dependencies!
|
42
42
|
end
|
43
43
|
|
44
|
-
|
44
|
+
if paths.yarn
|
45
|
+
run! "#{paths.yarn} install"
|
46
|
+
else
|
47
|
+
run! "#{paths.npm} prune && #{paths.npm} install"
|
48
|
+
end
|
49
|
+
|
45
50
|
run! "#{paths.bower} prune && #{paths.bower} install"
|
46
51
|
end
|
47
52
|
|
data/lib/ember_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-cli-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Pravosud
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-10-
|
13
|
+
date: 2016-10-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ember-cli-rails-assets
|