coveragebook_components 0.8.7 â 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/build/coco/app.css +3 -1
- data/app/assets/build/coco/app.js +12 -11
- data/app/assets/build/coco/book.css +3 -0
- data/app/components/coco/app/layouts/page/page.css +1 -1
- data/app/components/coco/app/layouts/page/page.html.erb +3 -1
- data/lib/coco.rb +1 -1
- data/lib/scripts/esbuild-plugin-build-icons.js +1 -1
- data/lib/tasks/coco_tasks.rake +55 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f723811d6a3609dae70976bda4a0f1c8577e1a89dd85ff190149112dcae54dbc
|
4
|
+
data.tar.gz: 6a54e4799a4fa6cb047c2bfc89b469c6182cb958b9ed2227d0df12f095b4166e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffdf1f637359a39c048698f58c81092d2dded4d488ef0e73ba12fadcb35b1d4c4ef95682f4b926dc0f99fd253680abaaa9846d2613e7e742640a038259ce0a01
|
7
|
+
data.tar.gz: bfa4ae0355bdf96b8f981d2ac0c47aa59a73768ee1c92464d5975a6b114da41bba5e2e8807b718b6b333abc7288d4494cd33256cf3671ca472d1a79db26831c2
|
@@ -4645,7 +4645,7 @@ select{
|
|
4645
4645
|
left: var(--sidebar-nav-width, 0)}
|
4646
4646
|
[data-coco][data-component="page-layout"] .page-controls .page-control-next{
|
4647
4647
|
margin-left: auto}
|
4648
|
-
[data-coco][data-component="page-layout"][data-width="constrained"] .page-body{
|
4648
|
+
[data-coco][data-component="page-layout"][data-width="constrained"] .page-body-content{
|
4649
4649
|
margin-left: auto;
|
4650
4650
|
margin-right: auto;
|
4651
4651
|
max-width: 1400px}
|
@@ -5049,6 +5049,8 @@ select{
|
|
5049
5049
|
border-radius: 0.375rem;
|
5050
5050
|
-o-object-fit: contain;
|
5051
5051
|
object-fit: contain}
|
5052
|
+
.visible{
|
5053
|
+
visibility: visible}
|
5052
5054
|
.static{
|
5053
5055
|
position: static}
|
5054
5056
|
.fixed{
|
@@ -14044,7 +14044,7 @@
|
|
14044
14044
|
var package_default = {
|
14045
14045
|
name: "coveragebook-components",
|
14046
14046
|
type: "module",
|
14047
|
-
version: "0.8.
|
14047
|
+
version: "0.8.8",
|
14048
14048
|
main: "index.js",
|
14049
14049
|
repository: "git@github.com:coveragebook/coco.git",
|
14050
14050
|
author: "Mark Perkins <mark@coveragebook.com>",
|
@@ -14080,23 +14080,23 @@
|
|
14080
14080
|
"fast-glob": "^3.3.1",
|
14081
14081
|
"fast-sort": "^3.2.1",
|
14082
14082
|
husky: "^8.0.3",
|
14083
|
-
jest: "^29.4.3",
|
14084
|
-
"jest-environment-jsdom": "^29.4.3",
|
14085
14083
|
"lint-staged": "^15.0.2",
|
14086
14084
|
postcss: "^8.4.31",
|
14087
14085
|
"postcss-cli": "^10.1.0",
|
14088
14086
|
"postcss-value-parser": "^4.2.0",
|
14089
|
-
prettier: "^
|
14087
|
+
prettier: "^3.1.0",
|
14090
14088
|
"release-it": "^15.10.3",
|
14091
14089
|
svgo: "^3.0.2"
|
14092
14090
|
},
|
14093
14091
|
scripts: {
|
14094
14092
|
"js:build": "node esbuild.config.js",
|
14095
|
-
"js:dev": "node esbuild.config.js --
|
14096
|
-
"js:
|
14093
|
+
"js:dev": "node esbuild.config.js --dev",
|
14094
|
+
"js:watch": "node esbuild.config.js --watch",
|
14097
14095
|
"css:build": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco",
|
14098
|
-
"css:dev": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco --
|
14096
|
+
"css:dev": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco --ext .dev.css",
|
14097
|
+
"css:watch": "postcss ./app/assets/css/{app,book}.css -d ./app/assets/build/coco --watch --ext .dev.css",
|
14099
14098
|
build: "npm run js:build && npm run css:build",
|
14099
|
+
"build:dev": "npm run js:dev && npm run css:dev",
|
14100
14100
|
"lint:fix": "bundle exec standardrb --fix && prettier --write .",
|
14101
14101
|
prepare: "husky install",
|
14102
14102
|
release: "release-it"
|
@@ -14112,7 +14112,8 @@
|
|
14112
14112
|
prettier: {
|
14113
14113
|
tabWidth: 2,
|
14114
14114
|
semi: true,
|
14115
|
-
singleQuote: false
|
14115
|
+
singleQuote: false,
|
14116
|
+
trailingComma: "es5"
|
14116
14117
|
},
|
14117
14118
|
"release-it": {
|
14118
14119
|
github: {
|
@@ -14125,14 +14126,14 @@
|
|
14125
14126
|
"before:init": [
|
14126
14127
|
"npm install",
|
14127
14128
|
"bundle install",
|
14128
|
-
"bundle exec rake test"
|
14129
|
+
"bundle exec rake coco:test"
|
14129
14130
|
],
|
14130
14131
|
"after:bump": [
|
14131
14132
|
"npm run lint:fix",
|
14132
14133
|
"npm run build"
|
14133
14134
|
],
|
14134
|
-
"after:version:bump": "
|
14135
|
-
"after:release": "
|
14135
|
+
"after:version:bump": "bundle exec rake coco:gem:bump_version[${version}] && bundle && cd lookbook && bundle",
|
14136
|
+
"after:release": "rake coco:gem:release[${version}]"
|
14136
14137
|
}
|
14137
14138
|
}
|
14138
14139
|
};
|
data/lib/coco.rb
CHANGED
@@ -45,7 +45,7 @@ export default function (sourcePath, destPath, configPath) {
|
|
45
45
|
const iconsDataFilePath = `${configPath}/icons.json`;
|
46
46
|
|
47
47
|
prettier.resolveConfig(iconsDataFilePath).then(async (options) => {
|
48
|
-
const formattedJSON = prettier.format(
|
48
|
+
const formattedJSON = await prettier.format(
|
49
49
|
JSON.stringify(iconNames.sort()),
|
50
50
|
{
|
51
51
|
...options,
|
data/lib/tasks/coco_tasks.rake
CHANGED
@@ -1,13 +1,23 @@
|
|
1
|
+
require "json"
|
2
|
+
|
1
3
|
namespace :coco do
|
2
|
-
desc "Run
|
3
|
-
task :test do
|
4
|
+
desc "Run tests"
|
5
|
+
task :test, [:files] do |task, args|
|
4
6
|
puts "𥥠Running Ruby tests..."
|
5
|
-
|
7
|
+
system "npm run build:dev"
|
8
|
+
system "bundle exec rake test TEST=#{args.files || "test/**/*_test.rb"}"
|
6
9
|
puts "â
Ruby tests complete"
|
10
|
+
end
|
7
11
|
|
8
|
-
|
9
|
-
|
10
|
-
|
12
|
+
namespace :test do
|
13
|
+
desc "Run tests in CI"
|
14
|
+
task :ci do
|
15
|
+
puts "𥥠Building assets..."
|
16
|
+
Rake::Task["coco:assets:build"].execute
|
17
|
+
puts "𥥠Running Ruby tests..."
|
18
|
+
Rake::Task["test"].execute
|
19
|
+
puts "â
Ruby tests complete"
|
20
|
+
end
|
11
21
|
end
|
12
22
|
|
13
23
|
task :lint do
|
@@ -41,4 +51,43 @@ namespace :coco do
|
|
41
51
|
puts "â
Asset build complete"
|
42
52
|
end
|
43
53
|
end
|
54
|
+
|
55
|
+
namespace :gem do
|
56
|
+
desc "Build and push to RubyGems"
|
57
|
+
task :release, [:version] do |task, args|
|
58
|
+
Rake::Task["coco:gem:build"].execute
|
59
|
+
Rake::Task["coco:gem:push"].invoke(args.version)
|
60
|
+
end
|
61
|
+
|
62
|
+
desc "Bump gem version"
|
63
|
+
task :bump_version, [:version] => :environment do |task, args|
|
64
|
+
puts "𥥠Bumping version number to #{args.version}"
|
65
|
+
|
66
|
+
new_version = args.version.sub("v", "").tr("-", ".")
|
67
|
+
version_file = File.expand_path("#{File.dirname(__FILE__)}/../coco.rb")
|
68
|
+
current_version = Coco::VERSION.to_s
|
69
|
+
file = File.open(version_file)
|
70
|
+
contents = file.read
|
71
|
+
File.write(version_file, contents.gsub(current_version, new_version))
|
72
|
+
|
73
|
+
puts "â
Version bump complete"
|
74
|
+
end
|
75
|
+
|
76
|
+
desc "Build gem"
|
77
|
+
task :build do
|
78
|
+
puts "𥥠Building Gem..."
|
79
|
+
Rake::Task["build"].execute
|
80
|
+
puts "â
Gem build complete"
|
81
|
+
end
|
82
|
+
|
83
|
+
desc "Push gem to Rubygems"
|
84
|
+
task :push, [:version] do |task, args|
|
85
|
+
puts "𥥠Pushing to RubyGems..."
|
86
|
+
|
87
|
+
version = args.version.sub("v", "").tr("-", ".")
|
88
|
+
system "gem push pkg/coveragebook_components-#{version}.gem"
|
89
|
+
|
90
|
+
puts "â
Gem pushed to RubyGems"
|
91
|
+
end
|
92
|
+
end
|
44
93
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coveragebook_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Perkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|