Extend scope of 'rubocop:apply'
This commit is contained in:
parent
55d61e67d8
commit
5429df0f12
8 changed files with 24 additions and 8 deletions
|
@ -17,6 +17,8 @@ AllCops:
|
|||
- lib/**/*.rb
|
||||
- libexec/*
|
||||
- libexec/*/**
|
||||
- nanoc/rules/*
|
||||
- nanoc/lib/*
|
||||
- bin/*
|
||||
- test/*
|
||||
Exclude:
|
||||
|
|
|
@ -22,10 +22,14 @@ AllCops:
|
|||
- lib/**/*.rb
|
||||
- libexec/*
|
||||
- libexec/*/**
|
||||
- nanoc/rules/*
|
||||
- nanoc/lib/*
|
||||
- bin/*
|
||||
- test/*
|
||||
Exclude:
|
||||
- src/css/vendor/tail.css/bin/*
|
||||
- src/tmp/*
|
||||
- src/tmp/**/*
|
||||
|
||||
##
|
||||
# Enabled
|
||||
|
|
|
@ -21,7 +21,7 @@ class Twenty::Command::Connect < Twenty::Command
|
|||
if File.exist?(path)
|
||||
project = Twenty::Project.create(
|
||||
name: File.basename(path),
|
||||
path:,
|
||||
path:
|
||||
)
|
||||
warn "[-] '#{project.name}' connected"
|
||||
else
|
||||
|
|
|
@ -22,10 +22,14 @@ AllCops:
|
|||
- lib/**/*.rb
|
||||
- libexec/*
|
||||
- libexec/*/**
|
||||
- nanoc/rules/*
|
||||
- nanoc/lib/*
|
||||
- bin/*
|
||||
- test/*
|
||||
Exclude:
|
||||
- src/css/vendor/tail.css/bin/*
|
||||
- src/tmp/*
|
||||
- src/tmp/**/*
|
||||
|
||||
##
|
||||
# Enabled
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
twenty-client (0.4.2)
|
||||
twenty-client (0.4.3)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
compile("/css/main.scss") do
|
||||
filter(:sass, syntax: :scss)
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
components = {
|
||||
'react-task' => ['tasks/new', 'tasks/edit'],
|
||||
'react-tasks' => [ '/', 'tasks'],
|
||||
'react-projects' => ['projects']
|
||||
"react-task" => ["tasks/new", "tasks/edit"],
|
||||
"react-tasks" => ["/", "tasks"],
|
||||
"react-projects" => ["projects"]
|
||||
}
|
||||
|
||||
components.each do |name, paths|
|
||||
compile '/html/react.html.erb', rep: name do
|
||||
compile "/html/react.html.erb", rep: name do
|
||||
filter(:erb, locals: {name:, src: "/js/main.js"})
|
||||
paths.each do |path|
|
||||
path == "/" ? write("/index.html") : write("/#{path}/index.html")
|
||||
(path == "/") ? write("/index.html") : write("/#{path}/index.html")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,10 +22,14 @@ AllCops:
|
|||
- lib/**/*.rb
|
||||
- libexec/*
|
||||
- libexec/*/**
|
||||
- nanoc/rules/*
|
||||
- nanoc/lib/*
|
||||
- bin/*
|
||||
- test/*
|
||||
Exclude:
|
||||
- src/css/vendor/tail.css/bin/*
|
||||
- src/tmp/*
|
||||
- src/tmp/**/*
|
||||
|
||||
##
|
||||
# Enabled
|
||||
|
|
Loading…
Reference in a new issue