workarea-theme 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +20 -0
  3. data/.eslintrc +25 -0
  4. data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
  5. data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
  6. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  7. data/.gitignore +25 -0
  8. data/.rubocop.yml +8 -0
  9. data/.scss-lint.yml +192 -0
  10. data/CHANGELOG.md +88 -0
  11. data/CODE_OF_CONDUCT.md +3 -0
  12. data/CONTRIBUTING.md +3 -0
  13. data/Gemfile +20 -0
  14. data/LICENSE +52 -0
  15. data/README.md +315 -0
  16. data/Rakefile +63 -0
  17. data/bin/rails +21 -0
  18. data/config/initializers/workarea.rb +3 -0
  19. data/config/routes.rb +2 -0
  20. data/docs/guides/source/theme_template.rb +155 -0
  21. data/engines/workarea-bogus-theme/.gitignore +19 -0
  22. data/engines/workarea-bogus-theme/Gemfile +19 -0
  23. data/engines/workarea-bogus-theme/README.md +51 -0
  24. data/engines/workarea-bogus-theme/Rakefile +108 -0
  25. data/engines/workarea-bogus-theme/bin/rails +21 -0
  26. data/engines/workarea-bogus-theme/config/initializers/theme.rb +16 -0
  27. data/engines/workarea-bogus-theme/config/initializers/workarea.rb +3 -0
  28. data/engines/workarea-bogus-theme/config/routes.rb +2 -0
  29. data/engines/workarea-bogus-theme/lib/tasks/bogus_theme_tasks.rake +4 -0
  30. data/engines/workarea-bogus-theme/lib/workarea/bogus_theme.rb +11 -0
  31. data/engines/workarea-bogus-theme/lib/workarea/bogus_theme/engine.rb +11 -0
  32. data/engines/workarea-bogus-theme/lib/workarea/bogus_theme/version.rb +5 -0
  33. data/engines/workarea-bogus-theme/test/dummy/Rakefile +6 -0
  34. data/engines/workarea-bogus-theme/test/dummy/bin/bundle +4 -0
  35. data/engines/workarea-bogus-theme/test/dummy/bin/rails +5 -0
  36. data/engines/workarea-bogus-theme/test/dummy/bin/rake +5 -0
  37. data/engines/workarea-bogus-theme/test/dummy/bin/setup +38 -0
  38. data/engines/workarea-bogus-theme/test/dummy/bin/update +30 -0
  39. data/engines/workarea-bogus-theme/test/dummy/bin/yarn +12 -0
  40. data/engines/workarea-bogus-theme/test/dummy/config.ru +5 -0
  41. data/engines/workarea-bogus-theme/test/dummy/config/application.rb +27 -0
  42. data/engines/workarea-bogus-theme/test/dummy/config/boot.rb +5 -0
  43. data/engines/workarea-bogus-theme/test/dummy/config/cable.yml +10 -0
  44. data/engines/workarea-bogus-theme/test/dummy/config/environment.rb +5 -0
  45. data/engines/workarea-bogus-theme/test/dummy/config/environments/development.rb +54 -0
  46. data/engines/workarea-bogus-theme/test/dummy/config/environments/production.rb +91 -0
  47. data/engines/workarea-bogus-theme/test/dummy/config/environments/test.rb +44 -0
  48. data/engines/workarea-bogus-theme/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
  49. data/engines/workarea-bogus-theme/test/dummy/config/initializers/assets.rb +14 -0
  50. data/engines/workarea-bogus-theme/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  51. data/engines/workarea-bogus-theme/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  52. data/engines/workarea-bogus-theme/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  53. data/engines/workarea-bogus-theme/test/dummy/config/initializers/inflections.rb +16 -0
  54. data/engines/workarea-bogus-theme/test/dummy/config/initializers/mime_types.rb +4 -0
  55. data/engines/workarea-bogus-theme/test/dummy/config/initializers/workarea.rb +5 -0
  56. data/engines/workarea-bogus-theme/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  57. data/engines/workarea-bogus-theme/test/dummy/config/locales/en.yml +33 -0
  58. data/engines/workarea-bogus-theme/test/dummy/config/puma.rb +56 -0
  59. data/engines/workarea-bogus-theme/test/dummy/config/routes.rb +5 -0
  60. data/engines/workarea-bogus-theme/test/dummy/config/secrets.yml +32 -0
  61. data/engines/workarea-bogus-theme/test/dummy/config/spring.rb +6 -0
  62. data/engines/workarea-bogus-theme/test/dummy/db/seeds.rb +2 -0
  63. data/engines/workarea-bogus-theme/test/dummy/lib/assets/.keep +0 -0
  64. data/engines/workarea-bogus-theme/test/dummy/log/.keep +0 -0
  65. data/engines/workarea-bogus-theme/test/dummy/package.json +5 -0
  66. data/engines/workarea-bogus-theme/test/teaspoon_env.rb +6 -0
  67. data/engines/workarea-bogus-theme/test/test_helper.rb +10 -0
  68. data/engines/workarea-bogus-theme/workarea-bogus_theme.gemspec +21 -0
  69. data/lib/generators/workarea/starter_store/USAGE +13 -0
  70. data/lib/generators/workarea/starter_store/starter_store_generator.rb +124 -0
  71. data/lib/generators/workarea/theme_override/USAGE +8 -0
  72. data/lib/generators/workarea/theme_override/theme_override_generator.rb +50 -0
  73. data/lib/tasks/theme_tasks.rake +4 -0
  74. data/lib/workarea/theme.rb +40 -0
  75. data/lib/workarea/theme/engine.rb +8 -0
  76. data/lib/workarea/theme/errors.rb +5 -0
  77. data/lib/workarea/theme/version.rb +5 -0
  78. data/test/dummy/Rakefile +6 -0
  79. data/test/dummy/bin/bundle +4 -0
  80. data/test/dummy/bin/rails +5 -0
  81. data/test/dummy/bin/rake +5 -0
  82. data/test/dummy/bin/setup +38 -0
  83. data/test/dummy/bin/update +30 -0
  84. data/test/dummy/bin/yarn +12 -0
  85. data/test/dummy/config.ru +5 -0
  86. data/test/dummy/config/application.rb +27 -0
  87. data/test/dummy/config/boot.rb +5 -0
  88. data/test/dummy/config/cable.yml +10 -0
  89. data/test/dummy/config/environment.rb +5 -0
  90. data/test/dummy/config/environments/development.rb +54 -0
  91. data/test/dummy/config/environments/production.rb +91 -0
  92. data/test/dummy/config/environments/test.rb +44 -0
  93. data/test/dummy/config/initializers/application_controller_renderer.rb +8 -0
  94. data/test/dummy/config/initializers/assets.rb +14 -0
  95. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  96. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  97. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  98. data/test/dummy/config/initializers/inflections.rb +16 -0
  99. data/test/dummy/config/initializers/mime_types.rb +4 -0
  100. data/test/dummy/config/initializers/workarea.rb +5 -0
  101. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  102. data/test/dummy/config/locales/en.yml +33 -0
  103. data/test/dummy/config/puma.rb +56 -0
  104. data/test/dummy/config/routes.rb +5 -0
  105. data/test/dummy/config/secrets.yml +32 -0
  106. data/test/dummy/config/spring.rb +6 -0
  107. data/test/dummy/db/seeds.rb +2 -0
  108. data/test/dummy/lib/assets/.keep +0 -0
  109. data/test/dummy/log/.keep +0 -0
  110. data/test/dummy/package.json +5 -0
  111. data/test/generators/workarea/starter_store_generator_test.rb +79 -0
  112. data/test/generators/workarea/theme_override_generator_test.rb +23 -0
  113. data/test/teaspoon_env.rb +6 -0
  114. data/test/test_helper.rb +10 -0
  115. data/workarea-theme.gemspec +21 -0
  116. metadata +201 -0
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # This command will automatically be run when you run "rails" with Rails gems
4
+ # installed from the root of your application.
5
+
6
+ ENGINE_ROOT = File.expand_path('..', __dir__)
7
+ ENGINE_PATH = File.expand_path('../lib/theme/engine', __dir__)
8
+ APP_PATH = File.expand_path('../test/dummy/config/application', __dir__)
9
+
10
+ # Set up gems listed in the Gemfile.
11
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
12
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
13
+
14
+ require 'action_controller/railtie'
15
+ require 'action_view/railtie'
16
+ require 'action_mailer/railtie'
17
+ require 'rails/test_unit/railtie'
18
+ require 'sprockets/railtie'
19
+ require 'teaspoon-mocha'
20
+
21
+ require 'rails/engine/commands'
@@ -0,0 +1,3 @@
1
+ Workarea.configure do |config|
2
+ # Add custom configuration here
3
+ end
@@ -0,0 +1,2 @@
1
+ Rails.application.routes.draw do
2
+ end
@@ -0,0 +1,155 @@
1
+ # Start with...
2
+ # rails plugin new path/to/my_theme --full -m path/to/theme_template.rb --skip-spring --skip-active-storage --skip-action-cable
3
+ #
4
+ # Or using the Workarea CLI
5
+ # workarea new theme path/to/my_theme
6
+ #
7
+
8
+ def source_paths
9
+ ["#{Gem::Specification.find_by_name('workarea').gem_dir}/docs/guides/source/"]
10
+ end
11
+
12
+ apply('plugin_template.rb')
13
+
14
+ # Add workarea-theme as a dependency
15
+ workarea_theme_dependency = "s.add_dependency 'workarea-theme', '~> 1.x'\n"
16
+ inject_into_file "workarea-#{name}.gemspec", workarea_theme_dependency, before: "end\n"
17
+
18
+ # require workarea/theme in plugin libfile
19
+ insert_into_file "lib/workarea/#{name}.rb", "require 'workarea/theme'\n", after: "require 'workarea/admin'\n"
20
+
21
+ # include Workarea::Theme in engine
22
+ insert_into_file "lib/workarea/#{name}/engine.rb", " include Workarea::Theme\n", after: "include Workarea::Plugin\n"
23
+
24
+ create_file 'config/initializers/theme.rb', <<~CODE
25
+ Workarea.configure do |config|
26
+ config.theme = {
27
+ color_schemes: ['#{name}'],
28
+ color_scheme: '#{name}',
29
+ font_stacks: {
30
+ sans_serif: 'sans-serif',
31
+ serif: 'serif'
32
+ },
33
+ primary_font_family: 'sans_serif',
34
+ secondary_font_family: 'serif'
35
+ }
36
+ end
37
+ CODE
38
+
39
+ create_file 'app/assets/stylesheets/workarea/storefront/settings/_font_families.scss.erb', <<~CODE
40
+ /*------------------------------------*\\
41
+ #FONT-FAMILIES
42
+ \\*------------------------------------*/
43
+
44
+ <%= "$font-family: \#{Workarea.config.theme[:font_stacks][Workarea.config.theme[:primary_font_family].to_sym]} !default;" %>
45
+ <%= "$secondary-font-family: \#{Workarea.config.theme[:font_stacks][Workarea.config.theme[:secondary_font_family].to_sym]} !default;" %>
46
+ CODE
47
+
48
+ create_file 'app/assets/stylesheets/workarea/storefront/settings/_colors.scss.erb', <<~CODE
49
+ /*------------------------------------*\\
50
+ #COLORS
51
+ \\*------------------------------------*/
52
+
53
+ /**
54
+ * Color Variables
55
+ *
56
+ * These variables are loaded in from the theme's color scheme configurations
57
+ *
58
+ * To customize colors in this theme you can add your own color scheme
59
+ * file to the storefront/theme_config directory and reference
60
+ * it by name below.
61
+ */
62
+
63
+ <% path = "\\'workarea/storefront/theme_config/color_schemes/\#{Workarea.config.theme[:color_scheme].downcase}_color_scheme\\';" %>
64
+
65
+ <%= "@import \#{path}" %>
66
+ CODE
67
+
68
+ create_file "app/assets/stylesheets/workarea/storefront/theme_config/color_schemes/#{name}_color_scheme.scss.erb", <<~CODE
69
+ /*------------------------------------*\\
70
+ ##{name.upcase.dasherize}-COLOR-SCHEME
71
+ \\*------------------------------------*/
72
+ /**
73
+ * Color Variables
74
+ *
75
+ * These variables should always be aliased as Functional Variables at
76
+ * the bottom of this file. Using color name variables outside of this file may
77
+ * cause errors when changing color scheme.
78
+ */
79
+
80
+ $blue: #3366cc !default;
81
+ $yellow: #fdcc5d !default;
82
+ $red: #b50010 !default;
83
+ $green: #19c06a !default;
84
+
85
+ $white: #ffffff !default;
86
+ $gray: #666666 !default;
87
+ $light-gray: #dddddd !default;
88
+ $black: #000000 !default;
89
+
90
+ $black-alpha-15: rgba($black, 0.15) !default;
91
+ $black-alpha-50: rgba($black, 0.50) !default;
92
+
93
+ $white-alpha-50: rgba($white, 0.50) !default;
94
+
95
+ $transparent: transparent !default;
96
+
97
+
98
+
99
+
100
+
101
+ /**
102
+ * Brand Color Variables
103
+ */
104
+
105
+
106
+
107
+
108
+
109
+ /**
110
+ * Global Functional Color Variables
111
+ */
112
+
113
+ $font-color: $black !default;
114
+ $background-color: $white !default;
115
+ $highlight-color: $yellow !default;
116
+ $link-color: $blue !default;
117
+
118
+ $overlay-shadow-color: $black-alpha-15 !default;
119
+
120
+ $focus-ring-color: $blue !default;
121
+ CODE
122
+
123
+ # Add theme_cleanup rake task
124
+ rakefile('theme_cleanup.rake') do
125
+ <<~TASK
126
+ namespace :workarea do
127
+ desc 'Initial setup for installation'
128
+ task theme_cleanup: :environment do
129
+ puts 'Cleaning up your theme for release!'
130
+ original_sha = File.read('./lib/workarea/theme/override_commit').strip
131
+ changed_files = `git diff --name-only HEAD \#{original_sha}`.split("\\n")
132
+
133
+ # Remove any files that are unchanged since the original commit SHA
134
+ # Reverse each to remove files within directories before attempting to delete the dir
135
+ Dir['app/**/*'].reverse_each do |path|
136
+ next if changed_files.include?(path)
137
+
138
+ if File.directory?(path)
139
+ Dir.rmdir path if Dir.entries(path).size == 2
140
+ else
141
+ File.delete(path)
142
+ end
143
+ end
144
+ end
145
+ end
146
+ TASK
147
+ end
148
+
149
+ #
150
+ # Load theme_cleanup in Rakefile
151
+ #
152
+ append_to_file 'Rakefile', <<~CODE
153
+
154
+ load 'lib/tasks/theme_cleanup.rake'
155
+ CODE
@@ -0,0 +1,19 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ test/dummy/db/*.sqlite3
5
+ test/dummy/db/*.sqlite3-journal
6
+ test/dummy/log/*.log
7
+ test/dummy/tmp/
8
+ .DS_Store
9
+ .byebug_history
10
+ .bundle/
11
+ .sass-cache/
12
+ Gemfile.lock
13
+ pkg/
14
+ test/dummy/tmp/
15
+ test/dummy/public/
16
+ log/*.log
17
+ test/dummy/log/*.log
18
+ test/dummy/db/*.sqlite3
19
+ test/dummy/db/*.sqlite3-journal
@@ -0,0 +1,19 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Declare your gem's dependencies in bogus_theme.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # Declare any dependencies that are still in development here instead of in
9
+ # your gemspec. These might include edge Rails or gems from your path or
10
+ # Git. Remember to move these dependencies to your gemspec before releasing
11
+ # your gem to rubygems.org.
12
+
13
+ # To use a debugger
14
+ # gem 'byebug', group: [:development, :test]
15
+
16
+ gem 'workarea', source: 'https://gems.weblinc.com'
17
+ group :test do
18
+ gem 'workarea-testing', source: 'https://gems.weblinc.com'
19
+ end
@@ -0,0 +1,51 @@
1
+ Workarea Bogus Theme
2
+ ================================================================================
3
+
4
+ Bogus Theme plugin for the Workarea platform.
5
+
6
+ Getting Started
7
+ --------------------------------------------------------------------------------
8
+
9
+ This gem contains a rails engine that must be mounted onto a host Rails application.
10
+
11
+ To access Workarea gems and source code, you must be an employee of WebLinc or a licensed retailer or partner.
12
+
13
+ Workarea gems are hosted privately at https://gems.weblinc.com/.
14
+ You must have individual or team credentials to install gems from this server. Add your gems server credentials to Bundler:
15
+
16
+ bundle config gems.weblinc.com my_username:my_password
17
+
18
+ Or set the appropriate environment variable in a shell startup file:
19
+
20
+ export BUNDLE_GEMS__WEBLINC__COM='my_username:my_password'
21
+
22
+ Then add the gem to your application's Gemfile specifying the source:
23
+
24
+ # ...
25
+ gem 'workarea-bogus_theme', source: 'https://gems.weblinc.com'
26
+ # ...
27
+
28
+ Or use a source block:
29
+
30
+ # ...
31
+ source 'https://gems.weblinc.com' do
32
+ gem 'workarea-bogus_theme'
33
+ end
34
+ # ...
35
+
36
+ Update your application's bundle.
37
+
38
+ cd path/to/application
39
+ bundle
40
+
41
+ Workarea Platform Documentation
42
+ --------------------------------------------------------------------------------
43
+
44
+ See [http://developer.weblinc.com](http://developer.weblinc.com) for Workarea platform documentation.
45
+
46
+ Copyright & Licensing
47
+ --------------------------------------------------------------------------------
48
+
49
+ Copyright WebLinc 2018. All rights reserved.
50
+
51
+ For licensing, contact sales@workarea.com.
@@ -0,0 +1,108 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+ RDoc::Task.new(:rdoc) do |rdoc|
9
+ rdoc.rdoc_dir = 'rdoc'
10
+ rdoc.title = 'Bogus Theme'
11
+ rdoc.options << '--line-numbers'
12
+ rdoc.rdoc_files.include('README.md')
13
+ rdoc.rdoc_files.include('lib/**/*.rb')
14
+ end
15
+
16
+ APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__)
17
+ load 'rails/tasks/engine.rake'
18
+ load 'rails/tasks/statistics.rake'
19
+
20
+ require 'rake/testtask'
21
+ Rake::TestTask.new(:test) do |t|
22
+ t.libs << 'lib'
23
+ t.libs << 'test'
24
+ t.pattern = 'test/**/*_test.rb'
25
+ t.verbose = false
26
+ end
27
+ task default: :test
28
+
29
+ $LOAD_PATH.unshift File.expand_path('lib', __dir__)
30
+ require 'workarea/bogus_theme/version'
31
+
32
+ desc 'Generate the changelog based on git history'
33
+ task :changelog, :from, :to do |_t, args|
34
+ require 'date'
35
+
36
+ from = args[:from] || `git describe --tags --abbrev=0`.strip
37
+ to = args[:to] || 'HEAD'
38
+ log = `git log #{from}..#{to} --pretty=format:'%an|%B___'`
39
+
40
+ puts "Workarea Bogus Theme #{Workarea::BogusTheme::VERSION} (#{Time.zone.today})"
41
+ puts '-' * 80
42
+ puts
43
+
44
+ log.split(/___/).each do |commit|
45
+ pieces = commit.split('|').reverse
46
+ author = pieces.pop.strip
47
+ message = pieces.join.strip
48
+
49
+ next if message =~ /^\s*Merge pull request/
50
+ next if message =~ /No changelog/i
51
+
52
+ project_key = nil # TODO: Replace with your Project's Jira key
53
+
54
+ if project_key.blank?
55
+ puts "To clean up your release notes, add your project's Jira key to the Changelog Rake task!"
56
+ else
57
+ ticket = message.scan(/#{project_key}-\d+/)[0]
58
+ next if ticket.nil?
59
+ next if message =~ /^\s*Merge branch/ && ticket.nil?
60
+ end
61
+
62
+ first_line = false
63
+
64
+ message.each_line do |line|
65
+ if !first_line
66
+ first_line = true
67
+ puts "* #{line}"
68
+ elsif line.strip.empty?
69
+ puts
70
+ else
71
+ puts " #{line}"
72
+ end
73
+ end
74
+
75
+ puts " #{author}"
76
+ puts
77
+ end
78
+ end
79
+
80
+ desc "Release version #{Workarea::BogusTheme::VERSION} of the gem"
81
+ task :release do
82
+ host = "https://#{ENV['BUNDLE_GEMS__WEBLINC__COM']}@gems.weblinc.com"
83
+
84
+ system 'touch CHANGELOG.md'
85
+ system 'echo "$(rake changelog)
86
+
87
+
88
+ $(cat CHANGELOG.md)" > CHANGELOG.md'
89
+ system 'git add CHANGELOG.md && git commit -m "Update changelog" && git push origin HEAD'
90
+
91
+ system "git tag -a v#{Workarea::BogusTheme::VERSION} -m 'Tagging #{Workarea::BogusTheme::VERSION}'"
92
+ system 'git push --tags'
93
+
94
+ system 'gem build workarea-bogus_theme.gemspec'
95
+ system "gem push workarea-bogus_theme-#{Workarea::BogusTheme::VERSION}.gem --host #{host}"
96
+ system "rm workarea-bogus_theme-#{Workarea::BogusTheme::VERSION}.gem"
97
+ end
98
+
99
+ desc 'Run the JavaScript tests'
100
+ ENV['TEASPOON_RAILS_ENV'] = File.expand_path('test/dummy/config/environment', __dir__)
101
+ task teaspoon: 'app:teaspoon'
102
+
103
+ desc 'Start a server at http://localhost:3000/teaspoon for JavaScript tests'
104
+ task :teaspoon_server do
105
+ Dir.chdir('test/dummy')
106
+ teaspoon_env = File.expand_path('test/teaspoon_env.rb', __dir__)
107
+ system "RAILS_ENV=test TEASPOON_ENV=#{teaspoon_env} rails s"
108
+ end
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # This command will automatically be run when you run "rails" with Rails gems
4
+ # installed from the root of your application.
5
+
6
+ ENGINE_ROOT = File.expand_path('..', __dir__)
7
+ ENGINE_PATH = File.expand_path('../lib/bogus_theme/engine', __dir__)
8
+ APP_PATH = File.expand_path('../test/dummy/config/application', __dir__)
9
+
10
+ # Set up gems listed in the Gemfile.
11
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
12
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
13
+
14
+ require 'action_controller/railtie'
15
+ require 'action_view/railtie'
16
+ require 'action_mailer/railtie'
17
+ require 'rails/test_unit/railtie'
18
+ require 'sprockets/railtie'
19
+ require 'teaspoon-mocha'
20
+
21
+ require 'rails/engine/commands'
@@ -0,0 +1,16 @@
1
+ Workarea.configure do |config|
2
+ config.theme = {
3
+ color_schemes: ['test'],
4
+ color_scheme: 'test',
5
+ font_stacks: {
6
+ roboto: '"Roboto", "HelveticaNeue", "Helvetica Neue", sans-serif',
7
+ lora: '"Lora", "Times New Roman", "Georgia", serif',
8
+ hind: '"Hind", Helvetica, Arial, sans-serif',
9
+ source_serif_pro: '"Source Serif Pro", "Times New Roman", Georgia, serif',
10
+ muli: '"Muli", Helvetica, Arial, sans-serif',
11
+ playfair_display: '"Playfair Display", "Times New Roman", Georgia, serif'
12
+ },
13
+ primary_font_family: 'roboto',
14
+ secondary_font_family: 'lora'
15
+ }
16
+ end
@@ -0,0 +1,3 @@
1
+ Workarea.configure do |config|
2
+ # Add custom configuration here
3
+ end
@@ -0,0 +1,2 @@
1
+ Rails.application.routes.draw do
2
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :bogus_theme do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,11 @@
1
+ require 'workarea'
2
+ require 'workarea/storefront'
3
+ require 'workarea/admin'
4
+
5
+ require 'workarea/bogus_theme/engine'
6
+ require 'workarea/bogus_theme/version'
7
+
8
+ module Workarea
9
+ module BogusTheme
10
+ end
11
+ end