vuejs 1.1.0.beta5 → 1.1.0.beta6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generators/vue/vue_generator.rb +2 -2
- data/lib/install/config/alias.js +0 -1
- data/lib/install/setup.rb +13 -12
- data/lib/vuejs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d42d8153c9298b86c3424301a0fc105d28fa2064d5053bc0f77854ef61469c7
|
|
4
|
+
data.tar.gz: be5c5b87ffd42d4bdf245ef92aaa1ff8e1100d1128254c85e931a292e2686772
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c8e1948cf82af92670ed351563ae4933d8a50a0606fe59a092efb539d614a87abc95b0a58d0d2bb8bfb8da82a32d6caa22770faaa4b986104bf1c3cafecc8ff5
|
|
7
|
+
data.tar.gz: 87b20c95986ed22eecf21df40ce0ce6f0945d200897f2e843a963af3b09edc4d47d515a014e804499aae27fb733ef172582c6b56ff56527e22c1f048a368c42b
|
|
@@ -38,8 +38,8 @@ class VueGenerator < Rails::Generators::NamedBase
|
|
|
38
38
|
def add_tests_to_component name
|
|
39
39
|
template "tests/unit.test.js.erb", "#{TESTS_PATH}/#{name}.test.js"
|
|
40
40
|
|
|
41
|
-
say "adding vue-test-utils and other Jest dependencies"
|
|
42
|
-
run "yarn add @vue/test-utils jest-serializer-vue vue-jest babel-jest"
|
|
41
|
+
# say "adding vue-test-utils and other Jest dependencies"
|
|
42
|
+
# run "yarn add @vue/test-utils jest-serializer-vue vue-jest babel-jest"
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
def add_helpers_to_component name
|
data/lib/install/config/alias.js
CHANGED
data/lib/install/setup.rb
CHANGED
|
@@ -12,11 +12,11 @@ insert_into_file Rails.root.join("config/webpack/environment.js").to_s,
|
|
|
12
12
|
|
|
13
13
|
scripts = <<-eos
|
|
14
14
|
"scripts": {
|
|
15
|
-
"test": "jest",
|
|
16
|
-
"assets:precompile": "yarn install; rails assets:precompile",
|
|
17
|
-
"webpack-dev-server": "./bin/webpack-dev-server",
|
|
18
15
|
"rails server": "rails server",
|
|
19
|
-
"
|
|
16
|
+
"webpack-dev-server": "./bin/webpack-dev-server",
|
|
17
|
+
"rails assets:precompile": "yarn install; rails assets:precompile",
|
|
18
|
+
"yarn install": "yarn install",
|
|
19
|
+
"yarn test": "jest"
|
|
20
20
|
},
|
|
21
21
|
"jest": {
|
|
22
22
|
"moduleFileExtensions": [
|
|
@@ -43,17 +43,18 @@ insert_into_file Rails.root.join("package.json").to_s,
|
|
|
43
43
|
|
|
44
44
|
say "Adding test presets to .babelrc"
|
|
45
45
|
babelrc = <<-eos
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
"env": {
|
|
47
|
+
"test": {
|
|
48
|
+
"presets": [
|
|
49
|
+
["env", { "targets": { "node": "current" }}]
|
|
50
|
+
]
|
|
51
|
+
}
|
|
50
52
|
},
|
|
51
53
|
eos
|
|
52
54
|
|
|
53
55
|
insert_into_file Rails.root.join(".babelrc").to_s,
|
|
54
56
|
"#{babelrc}",
|
|
55
57
|
before: " \"presets\": ["
|
|
56
|
-
|
|
57
|
-
say "Adding @vue/
|
|
58
|
-
run "yarn add @vue/
|
|
59
|
-
|
|
58
|
+
|
|
59
|
+
say "Adding @vue/test-utils and other Jest dependencies"
|
|
60
|
+
run "yarn add @vue/test-utils jest jest-serializer-vue vue-jest babel-jest"
|
data/lib/vuejs/version.rb
CHANGED