myg 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/lib/generators/myg/install_generator.rb +49 -17
  4. data/lib/generators/templates/install/initializer.rb +8 -2
  5. data/lib/generators/templates/install/javascripts/action-button.js +5 -0
  6. data/lib/generators/templates/install/javascripts/button.js +5 -0
  7. data/lib/generators/templates/install/javascripts/card.js +5 -0
  8. data/lib/generators/templates/install/javascripts/checkbox.js +5 -0
  9. data/lib/generators/templates/install/javascripts/dialog.js +5 -0
  10. data/lib/generators/templates/install/javascripts/drawer.js +5 -0
  11. data/lib/generators/templates/install/javascripts/dropdown.js +5 -0
  12. data/lib/generators/templates/install/javascripts/footer.js +5 -0
  13. data/lib/generators/templates/install/javascripts/form-field.js +5 -0
  14. data/lib/generators/templates/install/javascripts/icon.js +5 -0
  15. data/lib/generators/templates/install/javascripts/index.js.erb +26 -0
  16. data/lib/generators/templates/install/javascripts/input.js +5 -0
  17. data/lib/generators/templates/install/javascripts/menu.js +5 -0
  18. data/lib/generators/templates/install/javascripts/modal.js +5 -0
  19. data/lib/generators/templates/install/javascripts/progress.js +5 -0
  20. data/lib/generators/templates/install/javascripts/radio.js +5 -0
  21. data/lib/generators/templates/install/javascripts/select.js +5 -0
  22. data/lib/generators/templates/install/javascripts/sidebar.js +5 -0
  23. data/lib/generators/templates/install/javascripts/slide.js +5 -0
  24. data/lib/generators/templates/install/javascripts/slider.js +5 -0
  25. data/lib/generators/templates/install/javascripts/tabs.js +5 -0
  26. data/lib/generators/templates/install/javascripts/text.js +5 -0
  27. data/lib/generators/templates/install/javascripts/theme.js +5 -0
  28. data/lib/generators/templates/install/javascripts/titlebar.js +5 -0
  29. data/lib/generators/templates/install/javascripts/toast.js +5 -0
  30. data/lib/generators/templates/install/javascripts/toolbar.js +5 -0
  31. data/lib/generators/templates/install/javascripts/tooltip.js +5 -0
  32. data/lib/generators/templates/install/{_myg.sass → stylesheets/_myg.sass} +0 -0
  33. data/lib/generators/templates/install/{_variables.sass → stylesheets/_variables.sass} +0 -0
  34. data/lib/generators/templates/install/{myg.sass → stylesheets/myg.sass} +0 -0
  35. data/lib/generators/templates/install/{theme → stylesheets/theme}/_default.scss +0 -0
  36. data/lib/generators/templates/install/{theme → stylesheets/theme}/theme.sass +0 -0
  37. data/lib/generators/templates/install/{variables → stylesheets/variables}/_action-button.scss +0 -0
  38. data/lib/generators/templates/install/{variables → stylesheets/variables}/_animate.scss +0 -0
  39. data/lib/generators/templates/install/{variables → stylesheets/variables}/_base.scss +0 -0
  40. data/lib/generators/templates/install/{variables → stylesheets/variables}/_elevation.scss +0 -0
  41. data/lib/generators/templates/install/{variables → stylesheets/variables}/_font.scss +0 -0
  42. data/lib/generators/templates/install/{variables → stylesheets/variables}/_footer.scss +0 -0
  43. data/lib/generators/templates/install/{variables → stylesheets/variables}/_grid.scss +0 -0
  44. data/lib/generators/templates/install/{variables → stylesheets/variables}/_layout.scss +0 -0
  45. data/lib/generators/templates/install/{variables → stylesheets/variables}/_spacing.scss +0 -0
  46. data/lib/generators/templates/install/{variables → stylesheets/variables}/_text.scss +0 -0
  47. data/lib/generators/templates/install/{variables → stylesheets/variables}/_theme.scss +0 -0
  48. data/lib/myg/configuration.rb +6 -2
  49. data/lib/myg/version.rb +1 -1
  50. metadata +44 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecfef11006865a49b4670f14bbdd96ee30b090b621b6d81f26261d9472ac6950
4
- data.tar.gz: 5b2a749c760218a405c6a167b403f76f44018ef0fe9de77751b5839cf902e776
3
+ metadata.gz: 55cef74361c47b08c31b7f964505ae27eca66fddae39e3affb5949d315e146bf
4
+ data.tar.gz: b9c42791739b28782f876b6894029b0430b889178948178f2873627cdc1467d6
5
5
  SHA512:
6
- metadata.gz: 7d3eca61f622c8e7899d888c603a0ceac72bae75f7f74519b02f056d53b122116aa05770e3049d5aace4abac1b919e34a6bdb28629684779c5ece4777fac75f2
7
- data.tar.gz: bc4a1a9f3ac9560b4fe846dd899745e6a34d97c1d61468f1f59c37b1ee4eede95fc7b0609edf051091997dfd2d868ff4017ef5489de47a8c52536b4ee14d5c25
6
+ metadata.gz: '0816eab69e1891006b65e78cda7226fd44a1f58d8790bae4b05f09f41697f84305e84344159cffd6c066d3ad716b233306b8c0b4482e73856b4708a6de03841b'
7
+ data.tar.gz: 4ebad2ef55260fd0a86249a399aa356b89773b401b720a4ab0ebf6b1c54331965e47085b718e84f8b1bc71e06d99062656c207ad9949b646813d2d6b9a08ca47
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  * nothing yet
6
6
 
7
+ ### 2.0.0 - 2018/02/16
8
+
9
+ * features
10
+ * generates javascript assets with `install` generator
11
+ * add `javascripts_dir`, `stylesheets_dir` and `es6` configuration options
12
+
7
13
  ### 1.2.0 - 2018/02/16
8
14
 
9
15
  * features
@@ -12,23 +12,55 @@ class Myg::InstallGenerator < Rails::Generators::Base
12
12
  template 'initializer.rb', 'config/initializers/myg.rb'
13
13
  end
14
14
 
15
- def create_assets
16
- template 'myg.sass', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/myg.sass"
17
- template '_myg.sass', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/_myg.sass"
18
- template '_variables.sass', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/_variables.sass"
19
- template 'variables/_action-button.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_action-button.scss"
20
- template 'variables/_animate.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_animate.scss"
21
- template 'variables/_base.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_base.scss"
22
- template 'variables/_elevation.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_elevation.scss"
23
- template 'variables/_font.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_font.scss"
24
- template 'variables/_footer.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_footer.scss"
25
- template 'variables/_grid.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_grid.scss"
26
- template 'variables/_layout.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_layout.scss"
27
- template 'variables/_spacing.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_spacing.scss"
28
- template 'variables/_text.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_text.scss"
29
- template 'variables/_theme.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/variables/_theme.scss"
30
- template 'theme/theme.sass', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/theme/theme.sass"
31
- template 'theme/_default.scss', "#{Myg.configuration&.assets_dir || 'app/assets/stylesheets/myg'}/theme/_default.scss"
15
+ def create_stylesheets
16
+ template 'stylesheets/myg.sass', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/myg.sass"
17
+ template 'stylesheets/_myg.sass', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/_myg.sass"
18
+ template 'stylesheets/_variables.sass', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/_variables.sass"
19
+ template 'stylesheets/variables/_action-button.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_action-button.scss"
20
+ template 'stylesheets/variables/_animate.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_animate.scss"
21
+ template 'stylesheets/variables/_base.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_base.scss"
22
+ template 'stylesheets/variables/_elevation.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_elevation.scss"
23
+ template 'stylesheets/variables/_font.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_font.scss"
24
+ template 'stylesheets/variables/_footer.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_footer.scss"
25
+ template 'stylesheets/variables/_grid.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_grid.scss"
26
+ template 'stylesheets/variables/_layout.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_layout.scss"
27
+ template 'stylesheets/variables/_spacing.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_spacing.scss"
28
+ template 'stylesheets/variables/_text.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_text.scss"
29
+ template 'stylesheets/variables/_theme.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/variables/_theme.scss"
30
+ template 'stylesheets/theme/theme.sass', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/theme/theme.sass"
31
+ template 'stylesheets/theme/_default.scss', "#{Myg.configuration&.stylesheets_dir || 'app/assets/stylesheets/myg'}/theme/_default.scss"
32
+ end
33
+
34
+ def create_javascripts
35
+ template 'javascripts/index.js.erb', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/index.js"
36
+ unless Myg.configuration&.es6 == false
37
+ template 'javascripts/action-button.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/action-button.js"
38
+ template 'javascripts/button.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/button.js"
39
+ template 'javascripts/card.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/card.js"
40
+ template 'javascripts/checkbox.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/checkbox.js"
41
+ template 'javascripts/dialog.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/dialog.js"
42
+ template 'javascripts/drawer.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/drawer.js"
43
+ template 'javascripts/dropdown.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/dropdown.js"
44
+ template 'javascripts/footer.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/footer.js"
45
+ template 'javascripts/form-field.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/form-field.js"
46
+ template 'javascripts/icon.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/icon.js"
47
+ template 'javascripts/input.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/input.js"
48
+ template 'javascripts/menu.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/menu.js"
49
+ template 'javascripts/modal.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/modal.js"
50
+ template 'javascripts/progress.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/progress.js"
51
+ template 'javascripts/radio.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/radio.js"
52
+ template 'javascripts/select.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/select.js"
53
+ template 'javascripts/sidebar.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/sidebar.js"
54
+ template 'javascripts/slide.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/slide.js"
55
+ template 'javascripts/slider.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/slider.js"
56
+ template 'javascripts/tabs.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/tabs.js"
57
+ template 'javascripts/text.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/text.js"
58
+ template 'javascripts/theme.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/theme.js"
59
+ template 'javascripts/titlebar.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/titlebar.js"
60
+ template 'javascripts/toast.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/toast.js"
61
+ template 'javascripts/toolbar.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/toolbar.js"
62
+ template 'javascripts/tooltip.js', "#{Myg.configuration&.javascripts_dir || 'app/assets/javascripts/myg'}/tooltip.js"
63
+ end
32
64
  end
33
65
 
34
66
  end
@@ -1,7 +1,13 @@
1
1
  Myg.configure do |config|
2
2
 
3
- # Path to Myg styles directory
4
- # config.assets_dir = 'app/assets/stylesheets/myg'
3
+ # Path to Myg javascripts directory
4
+ # config.javascripts_dir = 'app/assets/javascripts/myg'
5
+
6
+ # Path to Myg stylehseets directory
7
+ # config.stylehseets_dir = 'app/assets/stylesheets/myg'
8
+
9
+ # Enable or disable Webpack (ES6)
10
+ # config.es6 = true
5
11
 
6
12
 
7
13
  ##### MYG-THEME #####
@@ -0,0 +1,5 @@
1
+ import MygActionButton from 'myg-action-button';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygActionButton = new MygActionButton( document.querySelector('.myg-action-button'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygButton from 'myg-button';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygButtons = MygButton.initAll( document.querySelectorAll('.myg-button'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygCard from 'myg-card';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygCards = MygCard.initAll( document.querySelectorAll('.myg-card'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygCheckbox from 'myg-checkbox';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygCheckboxes = MygCheckbox.initAll( document.querySelectorAll('.myg-checkbox'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygDialog from 'myg-dialog';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygDialogs = MygDialog.initAll( document.querySelectorAll('.myg-dialog'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygDrawer from 'myg-drawer';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygDrawer = new MygDrawer( document.querySelector('.myg-drawer'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygDropdown from 'myg-dropdown';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygDropdowns = MygDropdown.initAll( document.querySelectorAll('.myg-dropdown'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygFooter from 'myg-footer';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygFooter = new MygFooter( document.querySelector('.myg-footer'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygFormField from 'myg-form-field';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygFormFields = MygFormField.initAll( document.querySelectorAll('.myg-form-field'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygIcon from 'myg-icon';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygIcons = MygIcon.initAll( document.querySelectorAll('.myg-icon'), {} );
5
+ })
@@ -0,0 +1,26 @@
1
+ <% if Myg.configuration&.es6 == false %>//= require myg/dist/myg<% else %>import './action-button';
2
+ import './button';
3
+ import './card';
4
+ import './checkbox';
5
+ import './dialog';
6
+ import './drawer';
7
+ import './dropdown';
8
+ import './footer';
9
+ import './form-field';
10
+ import './icon';
11
+ import './input';
12
+ import './menu';
13
+ import './modal';
14
+ import './progress';
15
+ import './radio';
16
+ import './select';
17
+ import './sidebar';
18
+ import './slide';
19
+ import './slider';
20
+ import './tabs';
21
+ import './text';
22
+ import './theme';
23
+ import './titlebar';
24
+ import './toast';
25
+ import './toolbar';
26
+ import './tooltip';<% end %>
@@ -0,0 +1,5 @@
1
+ import MygInput from 'myg-input';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygInputs = MygInput.initAll( document.querySelectorAll('.myg-input'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygMenu from 'myg-menu';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygMenu = new MygMenu( document.querySelector('.myg-menu'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygModal from 'myg-modal';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygModals = MygModal.initAll( document.querySelectorAll('.myg-modal'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygProgress from 'myg-progress';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygProgresses = MygProgress.initAll( document.querySelectorAll('.myg-progress'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygRadio from 'myg-radio';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygRadios = MygRadio.initAll( document.querySelectorAll('.myg-radio'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygSelect from 'myg-select';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygSelects = MygSelect.initAll( document.querySelectorAll('.myg-select'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygSidebar from 'myg-sidebar';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygSidebar = new MygSidebar( document.querySelector('.myg-sidebar'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygSlide from 'myg-slide';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygSlides = MygSlide.initAll( document.querySelectorAll('.myg-slide'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygSlider from 'myg-slider';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygSliders = MygSlider.initAll( document.querySelectorAll('.myg-slider'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygTabs from 'myg-tabs';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygTabs = new MygTabs( document.querySelector('.myg-tabs'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygText from 'myg-text';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygTexts = MygText.initAll( document.querySelectorAll('.myg-text'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygTheme from 'myg-theme';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygTheme = new MygTheme( document.querySelector('html'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygTitlebar from 'myg-titlebar';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygTitlebar = new MygTitlebar( document.querySelector('.myg-titlebar'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygToast from 'myg-toast';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygToast = new MygToast( document.querySelector('.myg-toast'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygToolbar from 'myg-toolbar';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygToolbar = new MygToolbar( document.querySelector('.myg-toolbar'), {} );
5
+ })
@@ -0,0 +1,5 @@
1
+ import MygTooltip from 'myg-tooltip';
2
+
3
+ document.addEventListener( 'turbolinks:load', () => {
4
+ const mygTooltips = MygTooltip.initAll( document.querySelectorAll('.myg-tooltip'), {} );
5
+ })
@@ -11,7 +11,9 @@ module Myg
11
11
 
12
12
  class Configuration
13
13
 
14
- attr_accessor :assets_dir
14
+ attr_accessor :stylesheets_dir
15
+ attr_accessor :javascripts_dir
16
+ attr_accessor :es6
15
17
  attr_accessor :themes
16
18
  attr_accessor :theme
17
19
  attr_accessor :theme_auto
@@ -21,7 +23,9 @@ module Myg
21
23
  attr_accessor :theme_night_time
22
24
 
23
25
  def initialize
24
- @assets_dir = 'app/assets/stylesheets/myg'
26
+ @stylesheets_dir = 'app/assets/stylesheets/myg'
27
+ @javascripts_dir = 'app/assets/javascripts/myg'
28
+ @es6 = true
25
29
  @themes = ['default']
26
30
  @theme = 'default'
27
31
  @theme_auto = false
data/lib/myg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Myg
2
2
 
3
- VERSION = '1.2.0'
3
+ VERSION = '2.0.0'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
@@ -139,23 +139,50 @@ files:
139
139
  - app/views/mozaic/myg/_toolbar.html.erb
140
140
  - lib/generators/myg/install_generator.rb
141
141
  - lib/generators/myg/theme_generator.rb
142
- - lib/generators/templates/install/_myg.sass
143
- - lib/generators/templates/install/_variables.sass
144
142
  - lib/generators/templates/install/initializer.rb
145
- - lib/generators/templates/install/myg.sass
146
- - lib/generators/templates/install/theme/_default.scss
147
- - lib/generators/templates/install/theme/theme.sass
148
- - lib/generators/templates/install/variables/_action-button.scss
149
- - lib/generators/templates/install/variables/_animate.scss
150
- - lib/generators/templates/install/variables/_base.scss
151
- - lib/generators/templates/install/variables/_elevation.scss
152
- - lib/generators/templates/install/variables/_font.scss
153
- - lib/generators/templates/install/variables/_footer.scss
154
- - lib/generators/templates/install/variables/_grid.scss
155
- - lib/generators/templates/install/variables/_layout.scss
156
- - lib/generators/templates/install/variables/_spacing.scss
157
- - lib/generators/templates/install/variables/_text.scss
158
- - lib/generators/templates/install/variables/_theme.scss
143
+ - lib/generators/templates/install/javascripts/action-button.js
144
+ - lib/generators/templates/install/javascripts/button.js
145
+ - lib/generators/templates/install/javascripts/card.js
146
+ - lib/generators/templates/install/javascripts/checkbox.js
147
+ - lib/generators/templates/install/javascripts/dialog.js
148
+ - lib/generators/templates/install/javascripts/drawer.js
149
+ - lib/generators/templates/install/javascripts/dropdown.js
150
+ - lib/generators/templates/install/javascripts/footer.js
151
+ - lib/generators/templates/install/javascripts/form-field.js
152
+ - lib/generators/templates/install/javascripts/icon.js
153
+ - lib/generators/templates/install/javascripts/index.js.erb
154
+ - lib/generators/templates/install/javascripts/input.js
155
+ - lib/generators/templates/install/javascripts/menu.js
156
+ - lib/generators/templates/install/javascripts/modal.js
157
+ - lib/generators/templates/install/javascripts/progress.js
158
+ - lib/generators/templates/install/javascripts/radio.js
159
+ - lib/generators/templates/install/javascripts/select.js
160
+ - lib/generators/templates/install/javascripts/sidebar.js
161
+ - lib/generators/templates/install/javascripts/slide.js
162
+ - lib/generators/templates/install/javascripts/slider.js
163
+ - lib/generators/templates/install/javascripts/tabs.js
164
+ - lib/generators/templates/install/javascripts/text.js
165
+ - lib/generators/templates/install/javascripts/theme.js
166
+ - lib/generators/templates/install/javascripts/titlebar.js
167
+ - lib/generators/templates/install/javascripts/toast.js
168
+ - lib/generators/templates/install/javascripts/toolbar.js
169
+ - lib/generators/templates/install/javascripts/tooltip.js
170
+ - lib/generators/templates/install/stylesheets/_myg.sass
171
+ - lib/generators/templates/install/stylesheets/_variables.sass
172
+ - lib/generators/templates/install/stylesheets/myg.sass
173
+ - lib/generators/templates/install/stylesheets/theme/_default.scss
174
+ - lib/generators/templates/install/stylesheets/theme/theme.sass
175
+ - lib/generators/templates/install/stylesheets/variables/_action-button.scss
176
+ - lib/generators/templates/install/stylesheets/variables/_animate.scss
177
+ - lib/generators/templates/install/stylesheets/variables/_base.scss
178
+ - lib/generators/templates/install/stylesheets/variables/_elevation.scss
179
+ - lib/generators/templates/install/stylesheets/variables/_font.scss
180
+ - lib/generators/templates/install/stylesheets/variables/_footer.scss
181
+ - lib/generators/templates/install/stylesheets/variables/_grid.scss
182
+ - lib/generators/templates/install/stylesheets/variables/_layout.scss
183
+ - lib/generators/templates/install/stylesheets/variables/_spacing.scss
184
+ - lib/generators/templates/install/stylesheets/variables/_text.scss
185
+ - lib/generators/templates/install/stylesheets/variables/_theme.scss
159
186
  - lib/generators/templates/theme/_theme.scss.erb
160
187
  - lib/myg.rb
161
188
  - lib/myg/configuration.rb