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 +4 -4
- data/bake/utopia/yarn.rb +7 -1
- data/lib/utopia/command/site.rb +1 -1
- data/lib/utopia/version.rb +1 -1
- data/spec/utopia/command_spec.rb +2 -2
- data/wiki/pages/javascript/index.md +0 -2
- metadata +2 -3
- data/setup/site/.yarnrc +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 781b8c12d30cc2ac8382cf8c6b80c752e22c371a999681c11eb94ec49352b9f7
|
4
|
+
data.tar.gz: 7895e057ff1f2e8247e2a52ffbc815e571cdf138028af9f5763be059cce7bd8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbea9d1b4b9872471cd176337769d0dfcac29e85bccf53d44ec9b69998c76d6d78b6746fe590149e18092400de8c9c9f8a0efb8699e880976f13dfc7cd9489a8
|
7
|
+
data.tar.gz: 730f39dfca4b31f477b43e191b651fa31f16f89371599d12f9850c7732695f68a5e949f61a51785baa5d58d33285f909d072b14df03b436b7582d182e8c0c1ce
|
data/bake/utopia/yarn.rb
CHANGED
@@ -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 + "
|
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|
|
data/lib/utopia/command/site.rb
CHANGED
@@ -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 = ['.
|
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"]
|
data/lib/utopia/version.rb
CHANGED
data/spec/utopia/command_spec.rb
CHANGED
@@ -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(".
|
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[.
|
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.
|
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-
|
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
|
data/setup/site/.yarnrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--modules-folder lib/components
|