utopia 2.14.0 → 2.15.0

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
  SHA256:
3
- metadata.gz: a3a6b8f885af36532a896ea9ec0a781c2c9771e6a700a1387beaa6451de494cf
4
- data.tar.gz: d67a5a7f1d2e4f83680b4216f10d2d52a9828021cddf08f3471e32a11465e513
3
+ metadata.gz: 781b8c12d30cc2ac8382cf8c6b80c752e22c371a999681c11eb94ec49352b9f7
4
+ data.tar.gz: 7895e057ff1f2e8247e2a52ffbc815e571cdf138028af9f5763be059cce7bd8b
5
5
  SHA512:
6
- metadata.gz: a5cdd9fda1b6eb6337948b89d6af6d5db3cbf74c74d767d3935612bf0015935e896f1ed1f3e350aa60b8d8af665c93a225df3f9aabbdb2ecd5eb41041c83b061
7
- data.tar.gz: c731147ffd698996509a00b7502588975b7cf9fbb9abc9942fc1c93b0687b63c70c3f259e31ea343afe5fd79dfd98b5c299dbeca65997e0a0eaf929c2b7b904a
6
+ metadata.gz: fbea9d1b4b9872471cd176337769d0dfcac29e85bccf53d44ec9b69998c76d6d78b6746fe590149e18092400de8c9c9f8a0efb8699e880976f13dfc7cd9489a8
7
+ data.tar.gz: 730f39dfca4b31f477b43e191b651fa31f16f89371599d12f9850c7732695f68a5e949f61a51785baa5d58d33285f909d072b14df03b436b7582d182e8c0c1ce
@@ -6,7 +6,13 @@ def update
6
6
  require 'utopia/path'
7
7
 
8
8
  root = Pathname.new(context.root)
9
- yarn_package_root = root + "lib/components"
9
+ yarn_package_root = root + "node_modules"
10
+
11
+ # This is a legacy path:
12
+ unless yarn_package_root.directory?
13
+ yarn_package_root = root + "lib/components"
14
+ end
15
+
10
16
  yarn_install_root = root + "public/_components"
11
17
 
12
18
  yarn_package_root.children.select(&:directory?).collect(&:basename).each do |package_directory|
@@ -33,7 +33,7 @@ module Utopia
33
33
  # Local site setup commands.
34
34
  class Site < Samovar::Command
35
35
  # Configuration files which should be installed/updated:
36
- CONFIGURATION_FILES = ['.yarnrc', '.gitignore', 'config.ru', 'config/environment.rb', 'falcon.rb', 'Gemfile', 'Guardfile', 'bake.rb', 'spec/spec_helper.rb', 'spec/website_context.rb', 'spec/website_spec.rb']
36
+ CONFIGURATION_FILES = ['.gitignore', 'config.ru', 'config/environment.rb', 'falcon.rb', 'Gemfile', 'Guardfile', 'bake.rb', 'spec/spec_helper.rb', 'spec/website_context.rb', 'spec/website_spec.rb']
37
37
 
38
38
  # Directories that should exist:
39
39
  DIRECTORIES = ["config", "lib", "pages", "public", "tasks", "spec"]
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Utopia
24
- VERSION = "2.14.0"
24
+ VERSION = "2.15.0"
25
25
  end
@@ -79,7 +79,7 @@ RSpec.describe "utopia command" do
79
79
 
80
80
  system(utopia, "--in", dir, "site", "create")
81
81
 
82
- expect(Dir.entries(dir)).to include(".yarnrc", ".git", "Gemfile", "Gemfile.lock", "README.md", "bake.rb", "config.ru", "lib", "pages", "public", "spec")
82
+ expect(Dir.entries(dir)).to include(".git", "Gemfile", "Gemfile.lock", "README.md", "bake.rb", "config.ru", "lib", "pages", "public", "spec")
83
83
 
84
84
  expect(
85
85
  system("bundle", "exec", "bake", "utopia:test", chdir: dir)
@@ -152,7 +152,7 @@ RSpec.describe "utopia command" do
152
152
  expect(result).to be == 0
153
153
  end
154
154
 
155
- files = %W[.yarnrc .git Gemfile Gemfile.lock README.md bake.rb config.ru lib pages public]
155
+ files = %W[.git Gemfile Gemfile.lock README.md bake.rb config.ru lib pages public]
156
156
 
157
157
  expect(Dir.entries(server_path)).to include(*files)
158
158
 
@@ -2,8 +2,6 @@
2
2
 
3
3
  Utopia integrates with Yarn and provides a [bake task](https://github.com/ioquatix/bake) to simplify deployment packages distributed using `yarn` that implement the `dist` sub-directory convention.
4
4
 
5
- By default, utopia includes a `.yarnrc` file which installs modules into `lib/components`. This code can then be copied into `public/_components` using `bake utopia:yarn:update`.
6
-
7
5
  ## Installing Yarn
8
6
 
9
7
  If you don't already have yarn installed, make sure you have npm installed and then run the following command:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.0
4
+ version: 2.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-28 00:00:00.000000000 Z
11
+ date: 2020-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trenni
@@ -431,7 +431,6 @@ files:
431
431
  - setup/server/git/hooks/post-receive
432
432
  - setup/site/.gitignore
433
433
  - setup/site/.rspec
434
- - setup/site/.yarnrc
435
434
  - setup/site/Gemfile
436
435
  - setup/site/Guardfile
437
436
  - setup/site/README.md
@@ -1 +0,0 @@
1
- --modules-folder lib/components