workarea-theme 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 17cc6518f931e22ec1dbb4de05a7b171d6f537b2eb77f6a6824747635225be67
4
+ data.tar.gz: 842574d2e33c93b948cc0c1eaff3b7f6134b739dc0868e574382d6b9e565e9e7
5
+ SHA512:
6
+ metadata.gz: d0bfbc4fdf214a23fcf805896fb924669b1cb6e1253ad38fe9924b1b353f58c07dc1f67db00322533158432f388066b442c6e11d04612fa0e2a89bc8cc89be19
7
+ data.tar.gz: 234b30fba9d294bd7185fcf77ef8b1a786371c5cfd0134a85c01c0e98276f3260c556cb43305c01f1185d968f98eff405fcf89665715b11247822b18f7a021d6
@@ -0,0 +1,20 @@
1
+ # editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ end_of_line = lf
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+
11
+ [{*.rb,*.haml,*.decorator,*.yml,*.yaml,*.jbuilder}]
12
+ indent_size = 2
13
+ indent_style = space
14
+
15
+ [{*.js,*.jst,*.ejs,*.scss}]
16
+ indent_size = 4
17
+
18
+ [*.md]
19
+ indent_size = 4
20
+ trim_trailing_whitespace = false
@@ -0,0 +1,25 @@
1
+ {
2
+ "extends": "eslint:recommended",
3
+ "rules": {
4
+ "semi": ["error", "always"],
5
+ "eqeqeq": ["error", "always"]
6
+ },
7
+ "globals": {
8
+ "window": true,
9
+ "document": true,
10
+ "WORKAREA": true,
11
+ "$": true,
12
+ "jQuery": true,
13
+ "_": true,
14
+ "feature": true,
15
+ "JST": true,
16
+ "Turbolinks": true,
17
+ "I18n": true,
18
+ "Chart": true,
19
+ "Dropzone": true,
20
+ "strftime": true,
21
+ "Waypoint": true,
22
+ "wysihtml": true,
23
+ "LocalTime": true,
24
+ }
25
+ }
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve Workarea
4
+ title: ''
5
+ labels: bug
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ ⚠️**Before you create**⚠️
11
+ Please verify the issue you're experiencing is not part of your Workarea project customizations. The best way to do this is with a [vanilla Workarea installation](https://developer.workarea.com/articles/create-a-new-host-application.html). This will help us spend time on fixes/improvements for the whole community. Thank you!
12
+
13
+ **Describe the bug**
14
+ A clear and concise description of what the bug is.
15
+
16
+ **To Reproduce**
17
+ Steps to reproduce the behavior:
18
+ 1. Go to '...'
19
+ 2. Click on '....'
20
+ 3. Scroll down to '....'
21
+ 4. See error
22
+
23
+ **Expected behavior**
24
+ A clear and concise description of what you expected to happen.
25
+
26
+ **Workarea Setup (please complete the following information):**
27
+ - Workarea Version: [e.g. v3.4.6]
28
+ - Plugins [e.g. workarea-blog, workarea-sitemaps]
29
+
30
+ **Attachments**
31
+ If applicable, add any attachments to help explain your problem, things like:
32
+ - screenshots
33
+ - Gemfile.lock
34
+ - test cases
35
+
36
+ **Additional context**
37
+ Add any other context about the problem here.
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: Documentation request
3
+ about: Suggest documentation
4
+ title: ''
5
+ labels: documentation
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your documentation related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm confused by [...]
12
+
13
+ **Describe the article you'd like**
14
+ A clear and concise description of what would be in the documentation article.
15
+
16
+ **Additional context**
17
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for Workarea
4
+ title: ''
5
+ labels: enhancement
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,25 @@
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
20
+ engines/workarea-bogus-theme/test/dummy/db/*.sqlite3
21
+ engines/workarea-bogus-theme/test/dummy/db/*.sqlite3-journal
22
+ engines/workarea-bogus-theme/test/dummy/log/*.log
23
+ engines/workarea-bogus-theme/test/dummy/tmp/
24
+ engines/workarea-bogus-theme/test/dummy/.sass-cache
25
+ app
@@ -0,0 +1,8 @@
1
+ inherit_gem:
2
+ workarea-ci: rubocop.yml
3
+
4
+ AllCops:
5
+ Exclude:
6
+ - 'test/dummy/**/*'
7
+ - 'lib/theme.rb'
8
+ - 'lib/theme/**/*'
@@ -0,0 +1,192 @@
1
+ # Extension of the default configuration:
2
+ # https://github.com/causes/scss-lint/blob/master/config/default.yml
3
+
4
+ exclude: 'docs/**'
5
+
6
+ linters:
7
+ Comment:
8
+ enabled: false
9
+
10
+ DeclarationOrder:
11
+ enabled: true
12
+
13
+ ElsePlacement:
14
+ enabled: true
15
+
16
+ EmptyRule:
17
+ enabled: false
18
+
19
+ HexLength:
20
+ enabled: true
21
+ style: long
22
+
23
+ Indentation:
24
+ enabled: true
25
+ allow_non_nested_indentation: true
26
+ character: space
27
+ width: 4
28
+
29
+ LeadingZero:
30
+ enabled: true
31
+ style: include_zero
32
+
33
+ MergeableSelector:
34
+ enabled: true
35
+ force_nesting: false
36
+
37
+ PropertySortOrder:
38
+ enabled: true
39
+ ignore_unspecified: false
40
+ separate_groups: false
41
+ order:
42
+ - display
43
+ -
44
+ - position
45
+ - top
46
+ - right
47
+ - bottom
48
+ - left
49
+ - z-index
50
+ -
51
+ - margin
52
+ - margin-top
53
+ - margin-right
54
+ - margin-bottom
55
+ - margin-left
56
+ -
57
+ - margin-collapse
58
+ - margin-top-collapse
59
+ - margin-right-collapse
60
+ - margin-bottom-collapse
61
+ - margin-left-collapse
62
+ -
63
+ - padding
64
+ - padding-top
65
+ - padding-right
66
+ - padding-bottom
67
+ - padding-left
68
+ -
69
+ - width
70
+ - height
71
+ - max-width
72
+ - max-height
73
+ - min-width
74
+ - min-height
75
+ -
76
+ - float
77
+ - clear
78
+ -
79
+ - color
80
+ -
81
+ - font
82
+ - font-size
83
+ - font-style
84
+ - font-family
85
+ - font-weight
86
+ - font-variant
87
+ - font-smoothing
88
+ -
89
+ - line-height
90
+ - letter-spacing
91
+ - word-spacing
92
+ -
93
+ - text-align
94
+ - text-indent
95
+ - text-shadow
96
+ - text-overflow
97
+ - text-rendering
98
+ - text-transform
99
+ - text-decoration
100
+ - text-size-adjust
101
+ -
102
+ - word-break
103
+ - word-wrap
104
+ -
105
+ - white-space
106
+ -
107
+ - background
108
+ - background-size
109
+ - background-color
110
+ - background-image
111
+ - background-repeat
112
+ - background-position
113
+ - background-attachment
114
+ -
115
+ - border
116
+ - border-top
117
+ - border-right
118
+ - border-bottom
119
+ - border-left
120
+ -
121
+ - border-image
122
+ - border-spacing
123
+ - border-collapse
124
+ -
125
+ - border-color
126
+ - border-top-color
127
+ - border-right-color
128
+ - border-bottom-color
129
+ - border-left-color
130
+ -
131
+ - border-style
132
+ - border-top-style
133
+ - border-right-style
134
+ - border-bottom-style
135
+ - border-left-style
136
+ -
137
+ - border-width
138
+ - border-top-width
139
+ - border-right-width
140
+ - border-bottom-width
141
+ - border-left-width
142
+ -
143
+ - border-radius
144
+ - border-top-right-radius
145
+ - border-bottom-right-radius
146
+ - border-bottom-left-radius
147
+ - border-top-left-radius
148
+ - border-radius-topright
149
+ - border-radius-bottomright
150
+ - border-radius-bottomleft
151
+ - border-radius-topleft
152
+ -
153
+ - box-shadow
154
+
155
+ SelectorFormat:
156
+ enabled: true
157
+ convention: hyphenated_BEM
158
+
159
+ SingleLinePerSelector:
160
+ enabled: false
161
+
162
+ SpaceAfterPropertyColon:
163
+ enabled: true
164
+ style: at_least_one_space
165
+
166
+ SpaceBeforeBrace:
167
+ enabled: true
168
+ style: space
169
+ allow_single_line_padding: true
170
+
171
+ VariableForProperty:
172
+ enabled: true
173
+ properties:
174
+ - color
175
+ - font-family
176
+ - background-color
177
+
178
+ PseudoElement:
179
+ enabled: false
180
+
181
+ # These default settings may be problematic to implementors. They are not
182
+ # ommitted so that they may be adjusted as needed during an implementation.
183
+ #
184
+ # For documentation:
185
+ # https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md
186
+
187
+ DuplicateProperty:
188
+ enabled: true
189
+
190
+ PropertySpelling:
191
+ enabled: true
192
+ extra_properties: [] # Add experimental CSS to this array, if needed
@@ -0,0 +1,88 @@
1
+ Workarea Theme 1.1.1 (2019-08-21)
2
+ --------------------------------------------------------------------------------
3
+
4
+ * Open Source!
5
+
6
+
7
+
8
+ Workarea Theme 1.1.0 (2018-11-13)
9
+ --------------------------------------------------------------------------------
10
+
11
+ * Do not inject 3rd party dependencies within the gems.weblinc.com source block
12
+
13
+ Splits the dependency array before injecting to ensure 3rd party gems are added to the gemfile within the correct scope
14
+
15
+ THEME-7
16
+ Jake Beresford
17
+
18
+ * Add documentation for Themes including:
19
+
20
+ * Using a theme in an application.
21
+ * Gem vs. dev tool implementation patterns.
22
+ * Developing a theme, including upgrades and maintenance.
23
+
24
+ THEME-6
25
+ Jake Beresford
26
+
27
+ * Implement override for all storefront assets for theming
28
+
29
+ * Add theme_template for creating new themes
30
+ * Add theme_override generator to override all commonly themed files
31
+ * Theme template includes theme cleanup raketask to complete new tooling workflow.
32
+ * Use Rails::Generators.invoke to call workarea:override generators as this keeps the execution context from the caller, which includes workarea and allows the generators to run from a plugin.
33
+ * Add instructions for new tooling to README
34
+ * Update to use workarea-ci for bamboo
35
+
36
+ THEME-5
37
+ Jake Beresford
38
+
39
+
40
+
41
+ Workarea Theme v1.0.3 (2018-02-20)
42
+ --------------------------------------------------------------------------------
43
+
44
+ * Update generator to output versions correctly
45
+
46
+ * Dependencies with specified versions were not being output to the host application's gemfile correctly
47
+
48
+ THEME-4
49
+ Jake Beresford
50
+
51
+
52
+
53
+ Workarea Theme v1.0.2 (2018-02-13)
54
+ --------------------------------------------------------------------------------
55
+
56
+ * Prevent running generator tests in the context of a theme
57
+
58
+ * Update `running_in_gem?` method to ensure tests only run when the bogus theme is installed
59
+
60
+ THEME-3
61
+ Jake Beresford
62
+
63
+
64
+
65
+ Workarea Theme v1.0.1 (2018-02-02)
66
+ --------------------------------------------------------------------------------
67
+
68
+ * Attempting to run a rake task from the generator caused issues in the test environment.
69
+
70
+ * Removed calls to rake rake clobber assets and seed DB
71
+
72
+ THEME-2
73
+ Jake Beresford
74
+
75
+
76
+
77
+ Workarea Theme v1.0.0 (2018-02-01)
78
+ --------------------------------------------------------------------------------
79
+ * Implement script for importing theme as starter store
80
+
81
+ * Implement `starter_store` generator
82
+ * Add tests for generator. Tests only run from within this gem, not a host app.
83
+ * Add bogus theme to use in tests for generator
84
+ * Update Workarea::Theme to be an active support concern, similar to Workarea::Plugin.
85
+ * Workarea::Theme must be included in the Theme's engine.rb file in order to be registered as a Theme within the host application.
86
+ * Update Workarea::Theme raise an error if multiple themes being installed.
87
+
88
+ Jake Beresford