ustyle 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/.rbenv-gemsets +1 -0
- data/.ruby-version +1 -0
- data/CONTRIBUTING.md +68 -0
- data/Gemfile +4 -0
- data/Gruntfile.js +189 -0
- data/JAVASCRIPT_STANDARDS.md +88 -0
- data/LICENSE.txt +13 -0
- data/README.md +93 -0
- data/Rakefile +6 -0
- data/bower.json +54 -0
- data/config/.jscsrc +76 -0
- data/config/autoprefixer.yml +6 -0
- data/config/scss-lint.yml +54 -0
- data/dist/ustyle-content.css +1 -0
- data/dist/ustyle-icons.css +1 -0
- data/dist/ustyle-latest.css +1 -0
- data/dist/ustyle.js +799 -0
- data/dist/ustyle.json +1 -0
- data/grunt/modules/dss-helper.js +117 -0
- data/grunt/modules/file.js +26 -0
- data/grunt/modules/templates.js +59 -0
- data/grunt/tasks/browser-sync.js +19 -0
- data/grunt/tasks/builder.js +72 -0
- data/grunt/tasks/styleguide.js +290 -0
- data/grunt/tasks/svg2png.js +57 -0
- data/lib/ustyle/deploy.rb +31 -0
- data/lib/ustyle/engine.rb +24 -0
- data/lib/ustyle/hash.rb +44 -0
- data/lib/ustyle/icons.rb +13 -0
- data/lib/ustyle/sass_functions.rb +104 -0
- data/lib/ustyle/sinatra.rb +34 -0
- data/lib/ustyle/sprockets.rb +6 -0
- data/lib/ustyle/utils.rb +40 -0
- data/lib/ustyle/version.rb +4 -0
- data/lib/ustyle.rb +54 -0
- data/package.json +74 -0
- data/styleguide/CNAME +1 -0
- data/styleguide/assets/images/bower-logo.png +0 -0
- data/styleguide/assets/images/cloudfront-logo.png +0 -0
- data/styleguide/assets/images/illustration-01.png +0 -0
- data/styleguide/assets/images/illustration-02.png +0 -0
- data/styleguide/assets/images/illustration-03.png +0 -0
- data/styleguide/assets/images/illustration-04.png +0 -0
- data/styleguide/assets/images/illustration-05.png +0 -0
- data/styleguide/assets/images/illustration-06.png +0 -0
- data/styleguide/assets/images/illustration-07.png +0 -0
- data/styleguide/assets/images/illustration-08.png +0 -0
- data/styleguide/assets/images/infographic-01.png +0 -0
- data/styleguide/assets/images/infographic-02.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-01.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-02.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-03.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-04.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-05.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-06.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-07.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-08.png +0 -0
- data/styleguide/assets/images/npm-logo.png +0 -0
- data/styleguide/assets/images/object-photography-01.png +0 -0
- data/styleguide/assets/images/object-photography-02.png +0 -0
- data/styleguide/assets/images/object-photography-03.png +0 -0
- data/styleguide/assets/images/object-photography-04.png +0 -0
- data/styleguide/assets/images/object-photography-05.png +0 -0
- data/styleguide/assets/images/object-photography-06.png +0 -0
- data/styleguide/assets/images/object-photography-07.png +0 -0
- data/styleguide/assets/images/object-photography-08.png +0 -0
- data/styleguide/assets/images/ruby-logo.png +0 -0
- data/styleguide/assets/images/ustyle.svg +73 -0
- data/styleguide/assets/javascripts/app.js +91 -0
- data/styleguide/assets/javascripts/modules/cleanWhiteSpace.js +34 -0
- data/styleguide/assets/javascripts/modules/stats.js +51 -0
- data/styleguide/assets/javascripts/vendor/highlight.js +1 -0
- data/styleguide/assets/sass/main.scss +152 -0
- data/styleguide/assets/sass/modules/_code.scss +8 -0
- data/styleguide/assets/sass/modules/_colours.scss +25 -0
- data/styleguide/assets/sass/modules/_copyright.scss +4 -0
- data/styleguide/assets/sass/modules/_grid.scss +12 -0
- data/styleguide/assets/sass/modules/_home.scss +5 -0
- data/styleguide/assets/sass/modules/_links.scss +3 -0
- data/styleguide/assets/sass/modules/_logo.scss +56 -0
- data/styleguide/assets/sass/modules/_made-at.scss +6 -0
- data/styleguide/assets/sass/modules/_markdown.scss +7 -0
- data/styleguide/assets/sass/modules/_nav-mobile.scss +72 -0
- data/styleguide/assets/sass/modules/_nav.scss +32 -0
- data/styleguide/assets/sass/modules/_sidebar.scss +94 -0
- data/styleguide/assets/sass/modules/_states.scss +4 -0
- data/styleguide/assets/sass/modules/_styleguide.scss +134 -0
- data/styleguide/assets/sass/modules/_table.scss +3 -0
- data/styleguide/assets/sass/modules/_tooltip.scss +9 -0
- data/styleguide/assets/sass/modules/_typography.scss +14 -0
- data/styleguide/assets/sass/modules/_version.scss +11 -0
- data/styleguide/assets/sass/structure/_base.scss +18 -0
- data/styleguide/assets/sass/structure/_header.scss +12 -0
- data/styleguide/assets/sass/vendor/_highlight.scss +139 -0
- data/styleguide/assets/sass/vendor/_pure-table.scss +75 -0
- data/styleguide/content/brand/index.md +47 -0
- data/styleguide/content/brand/language.md +102 -0
- data/styleguide/content/brand/logo.tpl +102 -0
- data/styleguide/content/design/index.tpl +79 -0
- data/styleguide/content/design/typography.md +30 -0
- data/styleguide/content/index.tpl +44 -0
- data/styleguide/content/pattern-library/grid.tpl +64 -0
- data/styleguide/content/pattern-library/index.tpl +92 -0
- data/styleguide/partials/_footer.tpl +8 -0
- data/styleguide/partials/_head.tpl +20 -0
- data/styleguide/partials/_header.tpl +7 -0
- data/styleguide/partials/_sidebar.tpl +22 -0
- data/styleguide/partials/colour.tpl +24 -0
- data/styleguide/partials/icons.tpl +28 -0
- data/styleguide/partials/style_block.tpl +44 -0
- data/styleguide/templates/simple.tpl +15 -0
- data/styleguide/templates/stats.tpl +50 -0
- data/styleguide/templates/styleguide.tpl +33 -0
- data/tasks/publish.rake +65 -0
- data/ustyle.gemspec +34 -0
- data/vendor/assets/images/icons/16px/alarm.png +0 -0
- data/vendor/assets/images/icons/16px/android.png +0 -0
- data/vendor/assets/images/icons/16px/angry.png +0 -0
- data/vendor/assets/images/icons/16px/apple.png +0 -0
- data/vendor/assets/images/icons/16px/arrow-circle.png +0 -0
- data/vendor/assets/images/icons/16px/arrow-up-left.png +0 -0
- data/vendor/assets/images/icons/16px/arrow-up.png +0 -0
- data/vendor/assets/images/icons/16px/barchart.png +0 -0
- data/vendor/assets/images/icons/16px/blackberry.png +0 -0
- data/vendor/assets/images/icons/16px/book.png +0 -0
- data/vendor/assets/images/icons/16px/bookmark.png +0 -0
- data/vendor/assets/images/icons/16px/breadcrumb.png +0 -0
- data/vendor/assets/images/icons/16px/calculator.png +0 -0
- data/vendor/assets/images/icons/16px/calendar.png +0 -0
- data/vendor/assets/images/icons/16px/car.png +0 -0
- data/vendor/assets/images/icons/16px/checkbox-tick.png +0 -0
- data/vendor/assets/images/icons/16px/clock.png +0 -0
- data/vendor/assets/images/icons/16px/close.png +0 -0
- data/vendor/assets/images/icons/16px/cog.png +0 -0
- data/vendor/assets/images/icons/16px/controller.png +0 -0
- data/vendor/assets/images/icons/16px/credit-card.png +0 -0
- data/vendor/assets/images/icons/16px/cross.png +0 -0
- data/vendor/assets/images/icons/16px/desktop.png +0 -0
- data/vendor/assets/images/icons/16px/doc.png +0 -0
- data/vendor/assets/images/icons/16px/down-arrow.png +0 -0
- data/vendor/assets/images/icons/16px/dual-fuel.png +0 -0
- data/vendor/assets/images/icons/16px/electric-light.png +0 -0
- data/vendor/assets/images/icons/16px/envelope.png +0 -0
- data/vendor/assets/images/icons/16px/exit-noexit.png +0 -0
- data/vendor/assets/images/icons/16px/facebook.png +0 -0
- data/vendor/assets/images/icons/16px/filter.png +0 -0
- data/vendor/assets/images/icons/16px/fixed-variable.png +0 -0
- data/vendor/assets/images/icons/16px/gas.png +0 -0
- data/vendor/assets/images/icons/16px/gauge.png +0 -0
- data/vendor/assets/images/icons/16px/github.png +0 -0
- data/vendor/assets/images/icons/16px/google.png +0 -0
- data/vendor/assets/images/icons/16px/graph-up.png +0 -0
- data/vendor/assets/images/icons/16px/happy.png +0 -0
- data/vendor/assets/images/icons/16px/home.png +0 -0
- data/vendor/assets/images/icons/16px/hot.png +0 -0
- data/vendor/assets/images/icons/16px/info.png +0 -0
- data/vendor/assets/images/icons/16px/kettle.png +0 -0
- data/vendor/assets/images/icons/16px/key.png +0 -0
- data/vendor/assets/images/icons/16px/laptop.png +0 -0
- data/vendor/assets/images/icons/16px/lock.png +0 -0
- data/vendor/assets/images/icons/16px/magnify-in.png +0 -0
- data/vendor/assets/images/icons/16px/magnify-out.png +0 -0
- data/vendor/assets/images/icons/16px/magnify.png +0 -0
- data/vendor/assets/images/icons/16px/menu.png +0 -0
- data/vendor/assets/images/icons/16px/message.png +0 -0
- data/vendor/assets/images/icons/16px/mobile.png +0 -0
- data/vendor/assets/images/icons/16px/monthly-dd.png +0 -0
- data/vendor/assets/images/icons/16px/neutral.png +0 -0
- data/vendor/assets/images/icons/16px/no-exit.png +0 -0
- data/vendor/assets/images/icons/16px/pdf.png +0 -0
- data/vendor/assets/images/icons/16px/pencil.png +0 -0
- data/vendor/assets/images/icons/16px/person-add.png +0 -0
- data/vendor/assets/images/icons/16px/person.png +0 -0
- data/vendor/assets/images/icons/16px/phone.png +0 -0
- data/vendor/assets/images/icons/16px/piggy-bank.png +0 -0
- data/vendor/assets/images/icons/16px/pin.png +0 -0
- data/vendor/assets/images/icons/16px/play.png +0 -0
- data/vendor/assets/images/icons/16px/pound-circle.png +0 -0
- data/vendor/assets/images/icons/16px/pound-note.png +0 -0
- data/vendor/assets/images/icons/16px/power.png +0 -0
- data/vendor/assets/images/icons/16px/present.png +0 -0
- data/vendor/assets/images/icons/16px/print.png +0 -0
- data/vendor/assets/images/icons/16px/quarterly-dd.png +0 -0
- data/vendor/assets/images/icons/16px/question-circle.png +0 -0
- data/vendor/assets/images/icons/16px/question.png +0 -0
- data/vendor/assets/images/icons/16px/quote.png +0 -0
- data/vendor/assets/images/icons/16px/recycle.png +0 -0
- data/vendor/assets/images/icons/16px/remove.png +0 -0
- data/vendor/assets/images/icons/16px/renewable.png +0 -0
- data/vendor/assets/images/icons/16px/results.png +0 -0
- data/vendor/assets/images/icons/16px/sad.png +0 -0
- data/vendor/assets/images/icons/16px/save.png +0 -0
- data/vendor/assets/images/icons/16px/share.png +0 -0
- data/vendor/assets/images/icons/16px/sim.png +0 -0
- data/vendor/assets/images/icons/16px/smiley.png +0 -0
- data/vendor/assets/images/icons/16px/sort.png +0 -0
- data/vendor/assets/images/icons/16px/speech-circle.png +0 -0
- data/vendor/assets/images/icons/16px/speech.png +0 -0
- data/vendor/assets/images/icons/16px/spinner 2.png +0 -0
- data/vendor/assets/images/icons/16px/spinner.png +0 -0
- data/vendor/assets/images/icons/16px/star-half.png +0 -0
- data/vendor/assets/images/icons/16px/star.png +0 -0
- data/vendor/assets/images/icons/16px/starline-half.png +0 -0
- data/vendor/assets/images/icons/16px/starline.png +0 -0
- data/vendor/assets/images/icons/16px/tablet.png +0 -0
- data/vendor/assets/images/icons/16px/talk.png +0 -0
- data/vendor/assets/images/icons/16px/tick-circle.png +0 -0
- data/vendor/assets/images/icons/16px/tick.png +0 -0
- data/vendor/assets/images/icons/16px/tv.png +0 -0
- data/vendor/assets/images/icons/16px/twitter.png +0 -0
- data/vendor/assets/images/icons/16px/ustyle.png +0 -0
- data/vendor/assets/images/icons/16px/uswitch.png +0 -0
- data/vendor/assets/images/icons/16px/variable.png +0 -0
- data/vendor/assets/images/icons/16px/warning-circle.png +0 -0
- data/vendor/assets/images/icons/16px/warning.png +0 -0
- data/vendor/assets/images/icons/16px/wifi.png +0 -0
- data/vendor/assets/images/icons/16px/wiki.png +0 -0
- data/vendor/assets/images/icons/16px/windows.png +0 -0
- data/vendor/assets/images/icons/16px/wondering.png +0 -0
- data/vendor/assets/images/icons/16px/world.png +0 -0
- data/vendor/assets/images/icons/16px/xml.png +0 -0
- data/vendor/assets/images/icons/32px/alarm.png +0 -0
- data/vendor/assets/images/icons/32px/android.png +0 -0
- data/vendor/assets/images/icons/32px/angry.png +0 -0
- data/vendor/assets/images/icons/32px/apple.png +0 -0
- data/vendor/assets/images/icons/32px/arrow-circle.png +0 -0
- data/vendor/assets/images/icons/32px/arrow-up-left.png +0 -0
- data/vendor/assets/images/icons/32px/arrow-up.png +0 -0
- data/vendor/assets/images/icons/32px/barchart.png +0 -0
- data/vendor/assets/images/icons/32px/blackberry.png +0 -0
- data/vendor/assets/images/icons/32px/book.png +0 -0
- data/vendor/assets/images/icons/32px/bookmark.png +0 -0
- data/vendor/assets/images/icons/32px/breadcrumb.png +0 -0
- data/vendor/assets/images/icons/32px/calculator.png +0 -0
- data/vendor/assets/images/icons/32px/calendar.png +0 -0
- data/vendor/assets/images/icons/32px/car.png +0 -0
- data/vendor/assets/images/icons/32px/checkbox-tick.png +0 -0
- data/vendor/assets/images/icons/32px/clock.png +0 -0
- data/vendor/assets/images/icons/32px/close.png +0 -0
- data/vendor/assets/images/icons/32px/cog.png +0 -0
- data/vendor/assets/images/icons/32px/controller.png +0 -0
- data/vendor/assets/images/icons/32px/credit-card.png +0 -0
- data/vendor/assets/images/icons/32px/cross.png +0 -0
- data/vendor/assets/images/icons/32px/desktop.png +0 -0
- data/vendor/assets/images/icons/32px/doc.png +0 -0
- data/vendor/assets/images/icons/32px/down-arrow.png +0 -0
- data/vendor/assets/images/icons/32px/dual-fuel.png +0 -0
- data/vendor/assets/images/icons/32px/electric-light.png +0 -0
- data/vendor/assets/images/icons/32px/envelope.png +0 -0
- data/vendor/assets/images/icons/32px/exit-noexit.png +0 -0
- data/vendor/assets/images/icons/32px/facebook.png +0 -0
- data/vendor/assets/images/icons/32px/filter.png +0 -0
- data/vendor/assets/images/icons/32px/fixed-variable.png +0 -0
- data/vendor/assets/images/icons/32px/gas.png +0 -0
- data/vendor/assets/images/icons/32px/gauge.png +0 -0
- data/vendor/assets/images/icons/32px/github.png +0 -0
- data/vendor/assets/images/icons/32px/google.png +0 -0
- data/vendor/assets/images/icons/32px/graph-up.png +0 -0
- data/vendor/assets/images/icons/32px/happy.png +0 -0
- data/vendor/assets/images/icons/32px/home.png +0 -0
- data/vendor/assets/images/icons/32px/hot.png +0 -0
- data/vendor/assets/images/icons/32px/info.png +0 -0
- data/vendor/assets/images/icons/32px/kettle.png +0 -0
- data/vendor/assets/images/icons/32px/key.png +0 -0
- data/vendor/assets/images/icons/32px/laptop.png +0 -0
- data/vendor/assets/images/icons/32px/lock.png +0 -0
- data/vendor/assets/images/icons/32px/magnify-in.png +0 -0
- data/vendor/assets/images/icons/32px/magnify-out.png +0 -0
- data/vendor/assets/images/icons/32px/magnify.png +0 -0
- data/vendor/assets/images/icons/32px/menu.png +0 -0
- data/vendor/assets/images/icons/32px/message.png +0 -0
- data/vendor/assets/images/icons/32px/mobile.png +0 -0
- data/vendor/assets/images/icons/32px/monthly-dd.png +0 -0
- data/vendor/assets/images/icons/32px/neutral.png +0 -0
- data/vendor/assets/images/icons/32px/no-exit.png +0 -0
- data/vendor/assets/images/icons/32px/pdf.png +0 -0
- data/vendor/assets/images/icons/32px/pencil.png +0 -0
- data/vendor/assets/images/icons/32px/person-add.png +0 -0
- data/vendor/assets/images/icons/32px/person.png +0 -0
- data/vendor/assets/images/icons/32px/phone.png +0 -0
- data/vendor/assets/images/icons/32px/piggy-bank.png +0 -0
- data/vendor/assets/images/icons/32px/pin.png +0 -0
- data/vendor/assets/images/icons/32px/play.png +0 -0
- data/vendor/assets/images/icons/32px/pound-circle.png +0 -0
- data/vendor/assets/images/icons/32px/pound-note.png +0 -0
- data/vendor/assets/images/icons/32px/power.png +0 -0
- data/vendor/assets/images/icons/32px/present.png +0 -0
- data/vendor/assets/images/icons/32px/print.png +0 -0
- data/vendor/assets/images/icons/32px/quarterly-dd.png +0 -0
- data/vendor/assets/images/icons/32px/question-circle.png +0 -0
- data/vendor/assets/images/icons/32px/question.png +0 -0
- data/vendor/assets/images/icons/32px/quote.png +0 -0
- data/vendor/assets/images/icons/32px/recycle.png +0 -0
- data/vendor/assets/images/icons/32px/remove.png +0 -0
- data/vendor/assets/images/icons/32px/renewable.png +0 -0
- data/vendor/assets/images/icons/32px/results.png +0 -0
- data/vendor/assets/images/icons/32px/sad.png +0 -0
- data/vendor/assets/images/icons/32px/save.png +0 -0
- data/vendor/assets/images/icons/32px/share.png +0 -0
- data/vendor/assets/images/icons/32px/sim.png +0 -0
- data/vendor/assets/images/icons/32px/smiley.png +0 -0
- data/vendor/assets/images/icons/32px/sort.png +0 -0
- data/vendor/assets/images/icons/32px/speech-circle.png +0 -0
- data/vendor/assets/images/icons/32px/speech.png +0 -0
- data/vendor/assets/images/icons/32px/spinner 2.png +0 -0
- data/vendor/assets/images/icons/32px/spinner.png +0 -0
- data/vendor/assets/images/icons/32px/star-half.png +0 -0
- data/vendor/assets/images/icons/32px/star.png +0 -0
- data/vendor/assets/images/icons/32px/starline-half.png +0 -0
- data/vendor/assets/images/icons/32px/starline.png +0 -0
- data/vendor/assets/images/icons/32px/tablet.png +0 -0
- data/vendor/assets/images/icons/32px/talk.png +0 -0
- data/vendor/assets/images/icons/32px/tick-circle.png +0 -0
- data/vendor/assets/images/icons/32px/tick.png +0 -0
- data/vendor/assets/images/icons/32px/tv.png +0 -0
- data/vendor/assets/images/icons/32px/twitter.png +0 -0
- data/vendor/assets/images/icons/32px/ustyle.png +0 -0
- data/vendor/assets/images/icons/32px/uswitch.png +0 -0
- data/vendor/assets/images/icons/32px/variable.png +0 -0
- data/vendor/assets/images/icons/32px/warning-circle.png +0 -0
- data/vendor/assets/images/icons/32px/warning.png +0 -0
- data/vendor/assets/images/icons/32px/wifi.png +0 -0
- data/vendor/assets/images/icons/32px/wiki.png +0 -0
- data/vendor/assets/images/icons/32px/windows.png +0 -0
- data/vendor/assets/images/icons/32px/wondering.png +0 -0
- data/vendor/assets/images/icons/32px/world.png +0 -0
- data/vendor/assets/images/icons/32px/xml.png +0 -0
- data/vendor/assets/images/icons/64px/alarm.png +0 -0
- data/vendor/assets/images/icons/64px/android.png +0 -0
- data/vendor/assets/images/icons/64px/angry.png +0 -0
- data/vendor/assets/images/icons/64px/apple.png +0 -0
- data/vendor/assets/images/icons/64px/arrow-circle.png +0 -0
- data/vendor/assets/images/icons/64px/arrow-up-left.png +0 -0
- data/vendor/assets/images/icons/64px/arrow-up.png +0 -0
- data/vendor/assets/images/icons/64px/barchart.png +0 -0
- data/vendor/assets/images/icons/64px/blackberry.png +0 -0
- data/vendor/assets/images/icons/64px/book.png +0 -0
- data/vendor/assets/images/icons/64px/bookmark.png +0 -0
- data/vendor/assets/images/icons/64px/breadcrumb.png +0 -0
- data/vendor/assets/images/icons/64px/calculator.png +0 -0
- data/vendor/assets/images/icons/64px/calendar.png +0 -0
- data/vendor/assets/images/icons/64px/car.png +0 -0
- data/vendor/assets/images/icons/64px/checkbox-tick.png +0 -0
- data/vendor/assets/images/icons/64px/clock.png +0 -0
- data/vendor/assets/images/icons/64px/close.png +0 -0
- data/vendor/assets/images/icons/64px/cog.png +0 -0
- data/vendor/assets/images/icons/64px/controller.png +0 -0
- data/vendor/assets/images/icons/64px/credit-card.png +0 -0
- data/vendor/assets/images/icons/64px/cross.png +0 -0
- data/vendor/assets/images/icons/64px/desktop.png +0 -0
- data/vendor/assets/images/icons/64px/doc.png +0 -0
- data/vendor/assets/images/icons/64px/down-arrow.png +0 -0
- data/vendor/assets/images/icons/64px/dual-fuel.png +0 -0
- data/vendor/assets/images/icons/64px/electric-light.png +0 -0
- data/vendor/assets/images/icons/64px/envelope.png +0 -0
- data/vendor/assets/images/icons/64px/exit-noexit.png +0 -0
- data/vendor/assets/images/icons/64px/facebook.png +0 -0
- data/vendor/assets/images/icons/64px/filter.png +0 -0
- data/vendor/assets/images/icons/64px/fixed-variable.png +0 -0
- data/vendor/assets/images/icons/64px/gas.png +0 -0
- data/vendor/assets/images/icons/64px/gauge.png +0 -0
- data/vendor/assets/images/icons/64px/github.png +0 -0
- data/vendor/assets/images/icons/64px/google.png +0 -0
- data/vendor/assets/images/icons/64px/graph-up.png +0 -0
- data/vendor/assets/images/icons/64px/happy.png +0 -0
- data/vendor/assets/images/icons/64px/home.png +0 -0
- data/vendor/assets/images/icons/64px/hot.png +0 -0
- data/vendor/assets/images/icons/64px/info.png +0 -0
- data/vendor/assets/images/icons/64px/kettle.png +0 -0
- data/vendor/assets/images/icons/64px/key.png +0 -0
- data/vendor/assets/images/icons/64px/laptop.png +0 -0
- data/vendor/assets/images/icons/64px/lock.png +0 -0
- data/vendor/assets/images/icons/64px/magnify-in.png +0 -0
- data/vendor/assets/images/icons/64px/magnify-out.png +0 -0
- data/vendor/assets/images/icons/64px/magnify.png +0 -0
- data/vendor/assets/images/icons/64px/menu.png +0 -0
- data/vendor/assets/images/icons/64px/message.png +0 -0
- data/vendor/assets/images/icons/64px/mobile.png +0 -0
- data/vendor/assets/images/icons/64px/monthly-dd.png +0 -0
- data/vendor/assets/images/icons/64px/neutral.png +0 -0
- data/vendor/assets/images/icons/64px/no-exit.png +0 -0
- data/vendor/assets/images/icons/64px/pdf.png +0 -0
- data/vendor/assets/images/icons/64px/pencil.png +0 -0
- data/vendor/assets/images/icons/64px/person-add.png +0 -0
- data/vendor/assets/images/icons/64px/person.png +0 -0
- data/vendor/assets/images/icons/64px/phone.png +0 -0
- data/vendor/assets/images/icons/64px/piggy-bank.png +0 -0
- data/vendor/assets/images/icons/64px/pin.png +0 -0
- data/vendor/assets/images/icons/64px/play.png +0 -0
- data/vendor/assets/images/icons/64px/pound-circle.png +0 -0
- data/vendor/assets/images/icons/64px/pound-note.png +0 -0
- data/vendor/assets/images/icons/64px/power.png +0 -0
- data/vendor/assets/images/icons/64px/present.png +0 -0
- data/vendor/assets/images/icons/64px/print.png +0 -0
- data/vendor/assets/images/icons/64px/quarterly-dd.png +0 -0
- data/vendor/assets/images/icons/64px/question-circle.png +0 -0
- data/vendor/assets/images/icons/64px/question.png +0 -0
- data/vendor/assets/images/icons/64px/quote.png +0 -0
- data/vendor/assets/images/icons/64px/recycle.png +0 -0
- data/vendor/assets/images/icons/64px/remove.png +0 -0
- data/vendor/assets/images/icons/64px/renewable.png +0 -0
- data/vendor/assets/images/icons/64px/results.png +0 -0
- data/vendor/assets/images/icons/64px/sad.png +0 -0
- data/vendor/assets/images/icons/64px/save.png +0 -0
- data/vendor/assets/images/icons/64px/share.png +0 -0
- data/vendor/assets/images/icons/64px/sim.png +0 -0
- data/vendor/assets/images/icons/64px/smiley.png +0 -0
- data/vendor/assets/images/icons/64px/sort.png +0 -0
- data/vendor/assets/images/icons/64px/speech-circle.png +0 -0
- data/vendor/assets/images/icons/64px/speech.png +0 -0
- data/vendor/assets/images/icons/64px/spinner 2.png +0 -0
- data/vendor/assets/images/icons/64px/spinner.png +0 -0
- data/vendor/assets/images/icons/64px/star-half.png +0 -0
- data/vendor/assets/images/icons/64px/star.png +0 -0
- data/vendor/assets/images/icons/64px/starline-half.png +0 -0
- data/vendor/assets/images/icons/64px/starline.png +0 -0
- data/vendor/assets/images/icons/64px/tablet.png +0 -0
- data/vendor/assets/images/icons/64px/talk.png +0 -0
- data/vendor/assets/images/icons/64px/tick-circle.png +0 -0
- data/vendor/assets/images/icons/64px/tick.png +0 -0
- data/vendor/assets/images/icons/64px/tv.png +0 -0
- data/vendor/assets/images/icons/64px/twitter.png +0 -0
- data/vendor/assets/images/icons/64px/ustyle.png +0 -0
- data/vendor/assets/images/icons/64px/uswitch.png +0 -0
- data/vendor/assets/images/icons/64px/variable.png +0 -0
- data/vendor/assets/images/icons/64px/warning-circle.png +0 -0
- data/vendor/assets/images/icons/64px/warning.png +0 -0
- data/vendor/assets/images/icons/64px/wifi.png +0 -0
- data/vendor/assets/images/icons/64px/wiki.png +0 -0
- data/vendor/assets/images/icons/64px/windows.png +0 -0
- data/vendor/assets/images/icons/64px/wondering.png +0 -0
- data/vendor/assets/images/icons/64px/world.png +0 -0
- data/vendor/assets/images/icons/64px/xml.png +0 -0
- data/vendor/assets/images/icons/alarm.svg +1 -0
- data/vendor/assets/images/icons/android.svg +1 -0
- data/vendor/assets/images/icons/angry.svg +1 -0
- data/vendor/assets/images/icons/apple.svg +1 -0
- data/vendor/assets/images/icons/arrow-circle.svg +1 -0
- data/vendor/assets/images/icons/arrow-up-left.svg +1 -0
- data/vendor/assets/images/icons/arrow-up.svg +1 -0
- data/vendor/assets/images/icons/barchart.svg +1 -0
- data/vendor/assets/images/icons/blackberry.svg +1 -0
- data/vendor/assets/images/icons/book.svg +1 -0
- data/vendor/assets/images/icons/bookmark.svg +1 -0
- data/vendor/assets/images/icons/breadcrumb.svg +1 -0
- data/vendor/assets/images/icons/calculator.svg +1 -0
- data/vendor/assets/images/icons/calendar.svg +1 -0
- data/vendor/assets/images/icons/car.svg +1 -0
- data/vendor/assets/images/icons/checkbox-tick.svg +1 -0
- data/vendor/assets/images/icons/clock.svg +1 -0
- data/vendor/assets/images/icons/close.svg +1 -0
- data/vendor/assets/images/icons/cog.svg +1 -0
- data/vendor/assets/images/icons/controller.svg +1 -0
- data/vendor/assets/images/icons/credit-card.svg +1 -0
- data/vendor/assets/images/icons/cross.svg +1 -0
- data/vendor/assets/images/icons/desktop.svg +1 -0
- data/vendor/assets/images/icons/doc.svg +1 -0
- data/vendor/assets/images/icons/down-arrow.svg +1 -0
- data/vendor/assets/images/icons/dual-fuel.svg +1 -0
- data/vendor/assets/images/icons/electric-light.svg +1 -0
- data/vendor/assets/images/icons/envelope.svg +1 -0
- data/vendor/assets/images/icons/exit-noexit.svg +1 -0
- data/vendor/assets/images/icons/facebook.svg +1 -0
- data/vendor/assets/images/icons/filter.svg +1 -0
- data/vendor/assets/images/icons/fixed-variable.svg +1 -0
- data/vendor/assets/images/icons/gas.svg +1 -0
- data/vendor/assets/images/icons/gauge.svg +1 -0
- data/vendor/assets/images/icons/github.svg +1 -0
- data/vendor/assets/images/icons/google.svg +1 -0
- data/vendor/assets/images/icons/graph-up.svg +1 -0
- data/vendor/assets/images/icons/happy.svg +1 -0
- data/vendor/assets/images/icons/home.svg +1 -0
- data/vendor/assets/images/icons/hot.svg +1 -0
- data/vendor/assets/images/icons/info.svg +1 -0
- data/vendor/assets/images/icons/kettle.svg +1 -0
- data/vendor/assets/images/icons/key.svg +1 -0
- data/vendor/assets/images/icons/laptop.svg +1 -0
- data/vendor/assets/images/icons/lock.svg +1 -0
- data/vendor/assets/images/icons/magnify-in.svg +1 -0
- data/vendor/assets/images/icons/magnify-out.svg +1 -0
- data/vendor/assets/images/icons/magnify.svg +1 -0
- data/vendor/assets/images/icons/menu.svg +1 -0
- data/vendor/assets/images/icons/message.svg +1 -0
- data/vendor/assets/images/icons/mobile.svg +1 -0
- data/vendor/assets/images/icons/monthly-dd.svg +1 -0
- data/vendor/assets/images/icons/neutral.svg +1 -0
- data/vendor/assets/images/icons/no-exit.svg +1 -0
- data/vendor/assets/images/icons/pdf.svg +1 -0
- data/vendor/assets/images/icons/pencil.svg +1 -0
- data/vendor/assets/images/icons/person-add.svg +1 -0
- data/vendor/assets/images/icons/person.svg +1 -0
- data/vendor/assets/images/icons/phone.svg +1 -0
- data/vendor/assets/images/icons/piggy-bank.svg +1 -0
- data/vendor/assets/images/icons/pin.svg +1 -0
- data/vendor/assets/images/icons/play.svg +1 -0
- data/vendor/assets/images/icons/pound-circle.svg +1 -0
- data/vendor/assets/images/icons/pound-note.svg +1 -0
- data/vendor/assets/images/icons/power.svg +1 -0
- data/vendor/assets/images/icons/present.svg +1 -0
- data/vendor/assets/images/icons/print.svg +1 -0
- data/vendor/assets/images/icons/quarterly-dd.svg +1 -0
- data/vendor/assets/images/icons/question-circle.svg +1 -0
- data/vendor/assets/images/icons/question.svg +1 -0
- data/vendor/assets/images/icons/quote.svg +1 -0
- data/vendor/assets/images/icons/recycle.svg +1 -0
- data/vendor/assets/images/icons/remove.svg +1 -0
- data/vendor/assets/images/icons/renewable.svg +1 -0
- data/vendor/assets/images/icons/results.svg +1 -0
- data/vendor/assets/images/icons/sad.svg +1 -0
- data/vendor/assets/images/icons/save.svg +1 -0
- data/vendor/assets/images/icons/share.svg +1 -0
- data/vendor/assets/images/icons/sim.svg +1 -0
- data/vendor/assets/images/icons/smiley.svg +1 -0
- data/vendor/assets/images/icons/sort.svg +1 -0
- data/vendor/assets/images/icons/speech-circle.svg +1 -0
- data/vendor/assets/images/icons/speech.svg +1 -0
- data/vendor/assets/images/icons/spinner 2.svg +1 -0
- data/vendor/assets/images/icons/spinner.svg +1 -0
- data/vendor/assets/images/icons/spinner_fallback.gif +0 -0
- data/vendor/assets/images/icons/star-half.svg +1 -0
- data/vendor/assets/images/icons/star.svg +1 -0
- data/vendor/assets/images/icons/starline-half.svg +1 -0
- data/vendor/assets/images/icons/starline.svg +1 -0
- data/vendor/assets/images/icons/tablet.svg +1 -0
- data/vendor/assets/images/icons/talk.svg +1 -0
- data/vendor/assets/images/icons/tick-circle.svg +1 -0
- data/vendor/assets/images/icons/tick.svg +1 -0
- data/vendor/assets/images/icons/tv.svg +1 -0
- data/vendor/assets/images/icons/twitter.svg +1 -0
- data/vendor/assets/images/icons/ustyle.svg +1 -0
- data/vendor/assets/images/icons/uswitch.svg +1 -0
- data/vendor/assets/images/icons/variable.svg +1 -0
- data/vendor/assets/images/icons/warning-circle.svg +1 -0
- data/vendor/assets/images/icons/warning.svg +1 -0
- data/vendor/assets/images/icons/wifi.svg +1 -0
- data/vendor/assets/images/icons/wiki.svg +1 -0
- data/vendor/assets/images/icons/windows.svg +1 -0
- data/vendor/assets/images/icons/wondering.svg +1 -0
- data/vendor/assets/images/icons/world.svg +1 -0
- data/vendor/assets/images/icons/xml.svg +1 -0
- data/vendor/assets/javascripts/ustyle/anchor.js +300 -0
- data/vendor/assets/javascripts/ustyle/backdrop.js +56 -0
- data/vendor/assets/javascripts/ustyle/classtoggler.js +58 -0
- data/vendor/assets/javascripts/ustyle/login/login.js +165 -0
- data/vendor/assets/javascripts/ustyle/login/password-helper.js +151 -0
- data/vendor/assets/javascripts/ustyle/overlay.js +125 -0
- data/vendor/assets/javascripts/ustyle/radioToggle.js +28 -0
- data/vendor/assets/javascripts/ustyle/tabs.js +120 -0
- data/vendor/assets/javascripts/ustyle/utils.js +106 -0
- data/vendor/assets/javascripts/ustyle.js +7 -0
- data/vendor/assets/stylesheets/ustyle/_all.scss +50 -0
- data/vendor/assets/stylesheets/ustyle/_content.scss +5 -0
- data/vendor/assets/stylesheets/ustyle/_global.scss +24 -0
- data/vendor/assets/stylesheets/ustyle/_icons.scss +20 -0
- data/vendor/assets/stylesheets/ustyle/articles/_base.scss +88 -0
- data/vendor/assets/stylesheets/ustyle/articles/_guide.scss +57 -0
- data/vendor/assets/stylesheets/ustyle/articles/_more.scss +31 -0
- data/vendor/assets/stylesheets/ustyle/articles/_news.scss +214 -0
- data/vendor/assets/stylesheets/ustyle/articles/_related.scss +74 -0
- data/vendor/assets/stylesheets/ustyle/basics/_extends.scss +69 -0
- data/vendor/assets/stylesheets/ustyle/basics/_font-face-ie.scss +31 -0
- data/vendor/assets/stylesheets/ustyle/basics/_font-face.scss +31 -0
- data/vendor/assets/stylesheets/ustyle/basics/_fonts.scss +27 -0
- data/vendor/assets/stylesheets/ustyle/basics/_functions.scss +78 -0
- data/vendor/assets/stylesheets/ustyle/basics/_grid.scss +86 -0
- data/vendor/assets/stylesheets/ustyle/basics/_typography.scss +123 -0
- data/vendor/assets/stylesheets/ustyle/basics/_variables.scss +188 -0
- data/vendor/assets/stylesheets/ustyle/basics/variables/_colors.scss +95 -0
- data/vendor/assets/stylesheets/ustyle/basics/variables/_forms.scss +65 -0
- data/vendor/assets/stylesheets/ustyle/basics/variables/_icons.scss +166 -0
- data/vendor/assets/stylesheets/ustyle/components/_anchor.scss +134 -0
- data/vendor/assets/stylesheets/ustyle/components/_backdrop.scss +19 -0
- data/vendor/assets/stylesheets/ustyle/components/_breadcrumbs.scss +59 -0
- data/vendor/assets/stylesheets/ustyle/components/_button.scss +184 -0
- data/vendor/assets/stylesheets/ustyle/components/_content-group.scss +33 -0
- data/vendor/assets/stylesheets/ustyle/components/_cta.scss +64 -0
- data/vendor/assets/stylesheets/ustyle/components/_featured.scss +112 -0
- data/vendor/assets/stylesheets/ustyle/components/_grid-classes.scss +52 -0
- data/vendor/assets/stylesheets/ustyle/components/_hero.scss +42 -0
- data/vendor/assets/stylesheets/ustyle/components/_links.scss +30 -0
- data/vendor/assets/stylesheets/ustyle/components/_lists-li.scss +89 -0
- data/vendor/assets/stylesheets/ustyle/components/_lists.scss +46 -0
- data/vendor/assets/stylesheets/ustyle/components/_loader.scss +142 -0
- data/vendor/assets/stylesheets/ustyle/components/_overlay.scss +183 -0
- data/vendor/assets/stylesheets/ustyle/components/_progress.scss +126 -0
- data/vendor/assets/stylesheets/ustyle/components/_tabs.scss +239 -0
- data/vendor/assets/stylesheets/ustyle/components/_tooltip.scss +244 -0
- data/vendor/assets/stylesheets/ustyle/components/_usp.scss +69 -0
- data/vendor/assets/stylesheets/ustyle/content/_base.scss +195 -0
- data/vendor/assets/stylesheets/ustyle/content/_c-header.scss +30 -0
- data/vendor/assets/stylesheets/ustyle/content/_c-social.scss +10 -0
- data/vendor/assets/stylesheets/ustyle/content/_c-tabs.scss +30 -0
- data/vendor/assets/stylesheets/ustyle/forms/_base.scss +9 -0
- data/vendor/assets/stylesheets/ustyle/forms/_fields.scss +75 -0
- data/vendor/assets/stylesheets/ustyle/forms/_input-group.scss +101 -0
- data/vendor/assets/stylesheets/ustyle/forms/_input.scss +63 -0
- data/vendor/assets/stylesheets/ustyle/forms/_radio-checkbox.scss +133 -0
- data/vendor/assets/stylesheets/ustyle/forms/_reset.scss +23 -0
- data/vendor/assets/stylesheets/ustyle/forms/_select.scss +125 -0
- data/vendor/assets/stylesheets/ustyle/forms/_textarea.scss +33 -0
- data/vendor/assets/stylesheets/ustyle/forms/_toggle.scss +125 -0
- data/vendor/assets/stylesheets/ustyle/forms/_validation.scss +104 -0
- data/vendor/assets/stylesheets/ustyle/icons/_base.scss +239 -0
- data/vendor/assets/stylesheets/ustyle/icons/_png.scss +37 -0
- data/vendor/assets/stylesheets/ustyle/icons/_svg.scss +29 -0
- data/vendor/assets/stylesheets/ustyle/login/_base.scss +81 -0
- data/vendor/assets/stylesheets/ustyle/login/_password-help.scss +61 -0
- data/vendor/assets/stylesheets/ustyle/login/_social.scss +63 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_arrow.scss +51 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_base.scss +8 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_baseline.scss +41 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_forms.scss +62 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_general.scss +24 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_link-colors.scss +44 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_media-query.scss +116 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_rgba-inline.scss +18 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_typography.scss +98 -0
- data/vendor/assets/stylesheets/ustyle/tables/_base.scss +4 -0
- data/vendor/assets/stylesheets/ustyle/tables/_tables-basic.scss +72 -0
- data/vendor/assets/stylesheets/ustyle/tables/_tables-sortable.scss +72 -0
- data/vendor/assets/stylesheets/ustyle/tables/_tables-with-key-cells.scss +18 -0
- data/vendor/assets/stylesheets/ustyle/tables/_variables.scss +15 -0
- data/vendor/assets/stylesheets/ustyle/utilities/_general.scss +106 -0
- data/vendor/assets/stylesheets/ustyle/utilities/_grid.scss +13 -0
- data/vendor/assets/stylesheets/ustyle/utilities/_images.scss +34 -0
- data/vendor/assets/stylesheets/ustyle/utilities/_responsive.scss +101 -0
- data/vendor/assets/stylesheets/ustyle/utilities/_spacing.scss +74 -0
- data/vendor/assets/stylesheets/ustyle/vendor/normalize.scss +427 -0
- data/vendor/assets/stylesheets/ustyle-content.scss +2 -0
- data/vendor/assets/stylesheets/ustyle-icons.scss +1 -0
- data/vendor/assets/stylesheets/ustyle.scss +1 -0
- metadata +822 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 152ffa1f54bf8f37776785b899cfd99aa36c724b
|
4
|
+
data.tar.gz: 6e2bba45581cfd3963c652185c3a7f6f1bb86c02
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b6a75c989e4b94041e25400082844ff4b23f859b576af31539b7e35834932446add93a538b7a7ce80cfebd967a2f657512d9f386aaf35b7cd0027aa1abda3700
|
7
|
+
data.tar.gz: 66468e0db992babdcc2f336be3ee10e816985e782140da30b26592c230f93842fe4410d877eb2a4f12cde93ff8b0621ab11b3d3a3e8c0453ded90115d4dd72da
|
data/.gitignore
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
.DS_Store
|
19
|
+
*.sublime-*
|
20
|
+
docs/
|
21
|
+
.sass-cache/
|
22
|
+
node_modules/
|
23
|
+
build/
|
data/.rbenv-gemsets
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ustyle
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.3
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# Contributing
|
2
|
+
|
3
|
+
### Code style
|
4
|
+
Please see [uStyle](http://ustyle.guide)
|
5
|
+
|
6
|
+
## Modifying the code
|
7
|
+
|
8
|
+
You have several options with regards to modifying, each of which come with their advantages and disadvantages.
|
9
|
+
|
10
|
+
### Documentation
|
11
|
+
|
12
|
+
Documentation must be written for any component you are actively working on. All documentation that isn't full page examples remains within the source code `.scss` files. We use [DSS](https://github.com/darcyclarke/DSS) for documenting components. This is done like this:
|
13
|
+
|
14
|
+
```scss
|
15
|
+
// @page Forms
|
16
|
+
// @name Inputs
|
17
|
+
//
|
18
|
+
// @description
|
19
|
+
// The standard form input, `.us-form-input`, styled with our brand colours. Explicitly
|
20
|
+
// classed to allow individual app styling for other inputs
|
21
|
+
//
|
22
|
+
// @state .large - Larger input style
|
23
|
+
//
|
24
|
+
// @markup
|
25
|
+
// <input class='us-form-input {$modifiers}' type='text'>
|
26
|
+
```
|
27
|
+
|
28
|
+
`{$modifiers}` is a placeholder where the different states get rendered. If the component you are documenting requires an additional, more complex, component that doesn't quite fit the basic `style_block.tpl` layout, you can declare a partial, like so:
|
29
|
+
|
30
|
+
```scss
|
31
|
+
@page Colours
|
32
|
+
@name Base colours
|
33
|
+
@partial colours
|
34
|
+
```
|
35
|
+
|
36
|
+
Then you can have a partial named `colours.tpl` in `partials/` and run with that.
|
37
|
+
|
38
|
+
All output of our documentation goes to `ustyle.json` in `build/`. This contains the JSON which is then parsed by our `builder.js` module and compiled to handlebars. All context within DSS is available on the templates.
|
39
|
+
|
40
|
+
### Method 1
|
41
|
+
|
42
|
+
1. Clone the existing repo.
|
43
|
+
1. Run `bundle install` to install all dependencies.
|
44
|
+
1. Create a new feature branch - do not work off `master`
|
45
|
+
1. Add in the features/fixes
|
46
|
+
1. Test -- this means running the gem locally on several projects. **Not just your own**
|
47
|
+
1. Commit with a *reasonable* commit message.
|
48
|
+
1. Submit a pull request and wait for it to be merged into master
|
49
|
+
|
50
|
+
|
51
|
+
### Method 2
|
52
|
+
|
53
|
+
**Warning: If you are unsure about using the publisher function, please use method 1. If you think you're super awesome and won't screw up uStyle versions, please read on.**
|
54
|
+
|
55
|
+
1. Clone existing repo
|
56
|
+
1. Run a `bundle config --local ustyle /PATH-TO-USTYLE` -- this will allow you to test and work off master on your local copy.
|
57
|
+
1. Work off `master` and add in your awesome features.
|
58
|
+
1. Test some more, ensure you've run this in a few projects.
|
59
|
+
2. Ensure you commit `/dist` into your changes
|
60
|
+
1. Run `grunt publish:{patch,minor,major}`
|
61
|
+
1. Voilà! You now have successfully updated and pushed the gem version, updated the stylesheets and built the styleguide. You're now a pro.
|
62
|
+
|
63
|
+
Publishing
|
64
|
+
===
|
65
|
+
|
66
|
+
Versioning gets done automatically by the `grunt:publish` command. However without specifying a type of version, if will just publish `HEAD` without a new release.
|
67
|
+
|
68
|
+
$ grunt:publish:{patch,minor,major}
|
data/Gemfile
ADDED
data/Gruntfile.js
ADDED
@@ -0,0 +1,189 @@
|
|
1
|
+
var autoprefixer = require("autoprefixer-core");
|
2
|
+
|
3
|
+
module.exports = function(grunt) {
|
4
|
+
|
5
|
+
require("load-grunt-tasks")(grunt);
|
6
|
+
grunt.loadTasks("grunt/tasks");
|
7
|
+
|
8
|
+
grunt.initConfig({
|
9
|
+
shell: {
|
10
|
+
publish: {
|
11
|
+
command: "bundle exec rake ustyle:publish"
|
12
|
+
}
|
13
|
+
},
|
14
|
+
version: {
|
15
|
+
project: {
|
16
|
+
src: ["package.json", "lib/ustyle/version.rb"]
|
17
|
+
}
|
18
|
+
},
|
19
|
+
postcss: {
|
20
|
+
options: {
|
21
|
+
processors: [
|
22
|
+
autoprefixer({ browsers: ["last 5 versions", "Firefox 22", "Explorer 8", "> 1%", "Opera 12.1"] }).postcss
|
23
|
+
]
|
24
|
+
},
|
25
|
+
dist: { src: ["docs/**/*.css", "dist/**/*.css"] }
|
26
|
+
},
|
27
|
+
watch: {
|
28
|
+
options: {
|
29
|
+
spawn: false
|
30
|
+
},
|
31
|
+
build: {
|
32
|
+
files: ["vendor/assets/**/*", "styleguide/**/*", "dist/ustyle.json"],
|
33
|
+
tasks: ["copy", "sass", "sassdoc", "postcss", "browserSync-inject", "styleguide", "builder"]
|
34
|
+
},
|
35
|
+
scripts: {
|
36
|
+
files: ["styleguide/**/*.js", "vendor/**/*.js"],
|
37
|
+
tasks: ["concat"]
|
38
|
+
}
|
39
|
+
},
|
40
|
+
svg2png: {
|
41
|
+
dist: {
|
42
|
+
src: "vendor/assets/images/icons/",
|
43
|
+
sizes: ["16 144", "32 288", "64 576"]
|
44
|
+
}
|
45
|
+
},
|
46
|
+
svgmin: {
|
47
|
+
dist: {
|
48
|
+
files: [{
|
49
|
+
expand: true,
|
50
|
+
cwd: "vendor/assets/images/icons/",
|
51
|
+
src: "{,*/}*.svg",
|
52
|
+
dest: "vendor/assets/images/icons/"
|
53
|
+
}]
|
54
|
+
}
|
55
|
+
},
|
56
|
+
styleguide: {
|
57
|
+
dist: {
|
58
|
+
src: "vendor/assets/stylesheets/ustyle/**/*.scss",
|
59
|
+
dir: "styleguide",
|
60
|
+
output: "dist/ustyle.json",
|
61
|
+
statsFor: "https://assets0.uswitch.com/s3/uswitch-assets-eu/ustyle/{#tag}/ustyle-latest.css",
|
62
|
+
tagPlaceholder: "{#tag}",
|
63
|
+
tagStartVersion: "0.9.9"
|
64
|
+
}
|
65
|
+
},
|
66
|
+
builder: {
|
67
|
+
dist:{
|
68
|
+
files: {
|
69
|
+
"docs/": "dist/ustyle.json"
|
70
|
+
}
|
71
|
+
}
|
72
|
+
},
|
73
|
+
sass: {
|
74
|
+
dist: {
|
75
|
+
options: {
|
76
|
+
loadPath: ["vendor/assets/stylesheets/ustyle", "styleguide/assets/sass"],
|
77
|
+
require: "./lib/ustyle.rb",
|
78
|
+
style: "compressed",
|
79
|
+
sourcemap: "none",
|
80
|
+
bundleExec: true
|
81
|
+
},
|
82
|
+
files: {
|
83
|
+
"dist/ustyle-latest.css": "vendor/assets/stylesheets/ustyle.scss",
|
84
|
+
"dist/ustyle-content.css": "vendor/assets/stylesheets/ustyle-content.scss",
|
85
|
+
"dist/ustyle-icons.css": "vendor/assets/stylesheets/ustyle-icons.scss",
|
86
|
+
"docs/css/main.css": "styleguide/assets/sass/main.scss"
|
87
|
+
}
|
88
|
+
}
|
89
|
+
},
|
90
|
+
concat: {
|
91
|
+
ustyle: {
|
92
|
+
src: [
|
93
|
+
"vendor/assets/javascripts/ustyle/utils.js",
|
94
|
+
"vendor/assets/javascripts/ustyle/anchor.js",
|
95
|
+
"vendor/assets/javascripts/ustyle/backdrop.js",
|
96
|
+
"vendor/assets/javascripts/ustyle/overlay.js",
|
97
|
+
"vendor/assets/javascripts/ustyle/tabs.js",
|
98
|
+
"vendor/assets/javascripts/ustyle/classtoggler.js",
|
99
|
+
"vendor/assets/javascripts/ustyle/radioToggle.js"
|
100
|
+
],
|
101
|
+
dest: "dist/ustyle.js"
|
102
|
+
},
|
103
|
+
app: {
|
104
|
+
src: ["styleguide/assets/javascripts/vendor/*.js", "dist/ustyle.js", "styleguide/assets/javascripts/modules/*.js", "styleguide/assets/javascripts/*.js"],
|
105
|
+
dest: "docs/js/app.js"
|
106
|
+
}
|
107
|
+
},
|
108
|
+
copy: {
|
109
|
+
main: {
|
110
|
+
files: [
|
111
|
+
{expand: true, flatten: true, src: ["dist/*.css"], dest: "docs/css/"},
|
112
|
+
{expand: true, flatten: true, src: ["styleguide/assets/images/**"], dest: "docs/images/"},
|
113
|
+
{expand: true, flatten: true, src: ["styleguide/CNAME"], dest: "docs/"},
|
114
|
+
]
|
115
|
+
}
|
116
|
+
},
|
117
|
+
sassdoc: {
|
118
|
+
default: {
|
119
|
+
src: "vendor/assets/stylesheets/ustyle/**/*.scss",
|
120
|
+
options: {
|
121
|
+
dest: "./docs/sass"
|
122
|
+
}
|
123
|
+
}
|
124
|
+
},
|
125
|
+
scsslint: {
|
126
|
+
allFiles: [
|
127
|
+
"./vendor/assets/stylesheets/**/*.scss",
|
128
|
+
"./styleguide/assets/sass/**/*.scss"
|
129
|
+
],
|
130
|
+
options: {
|
131
|
+
bundleExec: true,
|
132
|
+
config: "config/scss-lint.yml",
|
133
|
+
reporterOutput: null,
|
134
|
+
exclude: [
|
135
|
+
"./vendor/assets/stylesheets/ustyle/vendor/*",
|
136
|
+
"./styleguide/assets/sass/vendor/*"
|
137
|
+
]
|
138
|
+
}
|
139
|
+
},
|
140
|
+
jscs: {
|
141
|
+
src: [
|
142
|
+
"Gruntfile.js",
|
143
|
+
"vendor/assets/javascripts/**/*.js"
|
144
|
+
],
|
145
|
+
options: {
|
146
|
+
config: "config/.jscsrc"
|
147
|
+
}
|
148
|
+
},
|
149
|
+
env: {
|
150
|
+
dev: {
|
151
|
+
NODE_ENV: "development"
|
152
|
+
},
|
153
|
+
build: {
|
154
|
+
NODE_ENV: "production"
|
155
|
+
}
|
156
|
+
},
|
157
|
+
buildcontrol: {
|
158
|
+
options: {
|
159
|
+
dir: "docs/",
|
160
|
+
commit: true,
|
161
|
+
push: true,
|
162
|
+
message: "Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%"
|
163
|
+
},
|
164
|
+
pages: {
|
165
|
+
options: {
|
166
|
+
remote: "git@github.com:uswitch/ustyle.git",
|
167
|
+
branch: "gh-pages"
|
168
|
+
}
|
169
|
+
}
|
170
|
+
}
|
171
|
+
});
|
172
|
+
|
173
|
+
grunt.registerTask("lint", ["scsslint", "jscs"]);
|
174
|
+
grunt.registerTask("icons", ["newer:svgmin", "svg2png"]);
|
175
|
+
|
176
|
+
grunt.registerTask("build", ["sass", "sassdoc", "copy", "concat:ustyle", "concat:app", "lint", "postcss", "styleguide", "builder"]);
|
177
|
+
|
178
|
+
grunt.registerTask("publish", ["env:build", "build", "buildcontrol:pages"]);
|
179
|
+
|
180
|
+
grunt.registerTask("publish:version", "Build and publish ustyle version", function(version) {
|
181
|
+
if (version === null) {
|
182
|
+
grunt.warn("Version must be specified when publishing ustyle");
|
183
|
+
}
|
184
|
+
|
185
|
+
grunt.task.run("env:build", "version::" + version, "build", "shell:publish", "buildcontrol:pages");
|
186
|
+
});
|
187
|
+
|
188
|
+
grunt.registerTask("default", ["env:dev", "build", "browserSync-init", "watch"]);
|
189
|
+
};
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# JAVASCRIPT STANDARDS
|
2
|
+
|
3
|
+
### INTRODUCTION
|
4
|
+
|
5
|
+
We are using [JSCS](http://jscs.info/) to lint our javascript code within uStyle.
|
6
|
+
|
7
|
+
### RULES
|
8
|
+
|
9
|
+
Our preset is set to use Airbnb as the base set of options.
|
10
|
+
|
11
|
+
```javascript
|
12
|
+
{
|
13
|
+
"esnext": true,
|
14
|
+
"verbose": true,
|
15
|
+
"requireSpaceAfterKeywords": [
|
16
|
+
"if",
|
17
|
+
"else",
|
18
|
+
"for",
|
19
|
+
"while",
|
20
|
+
"do",
|
21
|
+
"switch",
|
22
|
+
"case",
|
23
|
+
"return",
|
24
|
+
"try",
|
25
|
+
"catch",
|
26
|
+
"typeof"
|
27
|
+
],
|
28
|
+
"disallowSpacesInNamedFunctionExpression": {
|
29
|
+
"beforeOpeningRoundBrace": true
|
30
|
+
},
|
31
|
+
"disallowSpacesInFunctionExpression": {
|
32
|
+
"beforeOpeningRoundBrace": true
|
33
|
+
},
|
34
|
+
"disallowSpacesInAnonymousFunctionExpression": {
|
35
|
+
"beforeOpeningRoundBrace": true
|
36
|
+
},
|
37
|
+
"disallowSpacesInFunctionDeclaration": {
|
38
|
+
"beforeOpeningRoundBrace": true
|
39
|
+
},
|
40
|
+
"disallowEmptyBlocks": true,
|
41
|
+
"disallowSpacesInsideArrayBrackets": true,
|
42
|
+
"disallowSpacesInsideParentheses": true,
|
43
|
+
"disallowSpaceAfterObjectKeys": true,
|
44
|
+
"disallowSpaceAfterPrefixUnaryOperators": true,
|
45
|
+
"disallowSpaceBeforePostfixUnaryOperators": true,
|
46
|
+
"disallowSpaceBeforeBinaryOperators": [
|
47
|
+
","
|
48
|
+
],
|
49
|
+
"disallowMixedSpacesAndTabs": true,
|
50
|
+
"disallowTrailingWhitespace": true,
|
51
|
+
"requireTrailingComma": { "ignoreSingleLine": true },
|
52
|
+
"disallowYodaConditions": true,
|
53
|
+
"disallowKeywords": [ "with" ],
|
54
|
+
"disallowKeywordsOnNewLine": ["else"],
|
55
|
+
"disallowMultipleLineBreaks": true,
|
56
|
+
"disallowMultipleLineStrings": true,
|
57
|
+
"disallowMultipleVarDecl": true,
|
58
|
+
"disallowSpaceBeforeComma": true,
|
59
|
+
"disallowSpaceBeforeSemicolon": true,
|
60
|
+
"requireSpaceBeforeBlockStatements": true,
|
61
|
+
"requireParenthesesAroundIIFE": true,
|
62
|
+
"requireSpacesInConditionalExpression": true,
|
63
|
+
"requireBlocksOnNewline": 1,
|
64
|
+
"requireCommaBeforeLineBreak": true,
|
65
|
+
"requireSpaceBeforeBinaryOperators": true,
|
66
|
+
"requireSpaceAfterBinaryOperators": true,
|
67
|
+
"requireCamelCaseOrUpperCaseIdentifiers": true,
|
68
|
+
"requireLineFeedAtFileEnd": true,
|
69
|
+
"requireCapitalizedConstructors": true,
|
70
|
+
"requireDotNotation": true,
|
71
|
+
"requireSpacesInForStatement": true,
|
72
|
+
"requireSpaceBetweenArguments": true,
|
73
|
+
"requireCurlyBraces": [
|
74
|
+
"do"
|
75
|
+
],
|
76
|
+
"requirePaddingNewLinesBeforeLineComments": {
|
77
|
+
"allExcept": "firstAfterCurly"
|
78
|
+
},
|
79
|
+
"requirePaddingNewLinesAfterBlocks": true,
|
80
|
+
"requireSemicolons": true,
|
81
|
+
"safeContextKeyword": "_this",
|
82
|
+
"validateLineBreaks": "LF",
|
83
|
+
"validateIndentation": 2,
|
84
|
+
|
85
|
+
"validateQuoteMarks": "\"",
|
86
|
+
"requireTrailingComma": null
|
87
|
+
}
|
88
|
+
```
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Copyright 2015 uSwitch Limited
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
# [ustyle](http://ustyle.guide)
|
2
|
+
![ustyle unicorn](https://assets0.uswitch.com/s3/uswitch-assets-eu/ustyle/ustyle-unicorn.png)
|
3
|
+
|
4
|
+
uStyle, aptly named, is the styleguide gem for [uSwitch](http://www.uswitch.com). Include it in your Rails/Sinatra/Anything project as a gem and forget about those annoying additional cloudfront includes.
|
5
|
+
|
6
|
+
This project is provided as is and is aimed at building uSwitch specific projects.
|
7
|
+
|
8
|
+
## Gem Requirements
|
9
|
+
|
10
|
+
- Sprockets
|
11
|
+
- SASS
|
12
|
+
- Autoprefixer
|
13
|
+
|
14
|
+
## Sprockets
|
15
|
+
|
16
|
+
uStyle automagically sets itself up in a sprockets context where found. That means both Sinatra and Rails apps get configured correctly. However there are a few gotchas, as we don't want to add gem dependencies that are only required for certain set ups.
|
17
|
+
|
18
|
+
### Sinatra applications
|
19
|
+
|
20
|
+
Add to your Gemfile:
|
21
|
+
``` ruby
|
22
|
+
gem 'sprockets'
|
23
|
+
gem 'sprockets-sass', '~> 1.2.0'
|
24
|
+
gem 'sprockets-helpers'
|
25
|
+
```
|
26
|
+
|
27
|
+
Then in your app file (usually named server.rb/app.rb etc), after declaring your `class App < Sinatra::Base`:
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
register Sinatra::Ustyle
|
31
|
+
```
|
32
|
+
|
33
|
+
**You must use `sprockets-sass` version 1.1.0 or above, as there was a bug where the postprocessor was getting added to the preprocessor which caused autoprefixer to break**
|
34
|
+
|
35
|
+
This is only for the gem, not the styleguide within this project.
|
36
|
+
|
37
|
+
## Installation
|
38
|
+
|
39
|
+
Add this line to your application's Gemfile:
|
40
|
+
|
41
|
+
```ruby
|
42
|
+
gem 'ustyle', git: "git@github.com:uswitch/ustyle.git"
|
43
|
+
```
|
44
|
+
|
45
|
+
And then run in your terminal:
|
46
|
+
|
47
|
+
$ bundle
|
48
|
+
|
49
|
+
Version locking - if you're unsure about when you're going to have the change to upgrade again.
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
gem 'ustyle', git: "git@github.com:uswitch/ustyle.git", tag: "VERSION"
|
53
|
+
```
|
54
|
+
|
55
|
+
## Usage
|
56
|
+
|
57
|
+
If using rails and SASS, just import the base uSwitch styles at the start of your file
|
58
|
+
|
59
|
+
```scss
|
60
|
+
@import "ustyle";
|
61
|
+
```
|
62
|
+
|
63
|
+
This will import the main components. If you want more granular control of what to import, please look at the source code or the styleguide.
|
64
|
+
|
65
|
+
## Development
|
66
|
+
|
67
|
+
Development is done using [Grunt](http://gruntjs.com/), but it's just a thin wrapper around the heavy lifting done by some Node.js modules.
|
68
|
+
|
69
|
+
To install development
|
70
|
+
|
71
|
+
$ npm install -g grunt-cli
|
72
|
+
$ npm install
|
73
|
+
$ bundle
|
74
|
+
|
75
|
+
To run in development, just run
|
76
|
+
|
77
|
+
grunt
|
78
|
+
|
79
|
+
This will open a http://localhost:3000 tab with the styleguide
|
80
|
+
|
81
|
+
## Documentation
|
82
|
+
|
83
|
+
See [JAVASCRIPT_STANDARDS.md](https://github.com/uswitch/ustyle/blob/master/JAVASCRIPT_STANDARDS.md)
|
84
|
+
|
85
|
+
## Contributing
|
86
|
+
|
87
|
+
See [CONTRIBUTING.md](https://github.com/uswitch/ustyle/blob/master/CONTRIBUTING.md)
|
88
|
+
|
89
|
+
## Licences
|
90
|
+
|
91
|
+
- Source code is licenced under Apache v2.0 licence
|
92
|
+
- All icons, except the uSwitch icon are licenced under [CC - Attribution - No Derivatives 4.0](http://creativecommons.org/licenses/by-nd/4.0/)
|
93
|
+
- uSwitch icon is licenced under [CC - Attribution - NonCommercial - NoDerivates 4.0](http://creativecommons.org/licenses/by-nc-nd/4.0/)
|
data/Rakefile
ADDED
data/bower.json
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
{
|
2
|
+
"name": "ustyle",
|
3
|
+
"description": "A living styleguide and pattern library by uSwitch.",
|
4
|
+
"main": [
|
5
|
+
"dist/ustyle-latest.css",
|
6
|
+
"dist/ustyle-icons.css",
|
7
|
+
"dist/ustyle.js"
|
8
|
+
],
|
9
|
+
"dependencies": {
|
10
|
+
"jquery": ">= 1.9.1"
|
11
|
+
},
|
12
|
+
"moduleType": "globals",
|
13
|
+
"keywords": [
|
14
|
+
"css",
|
15
|
+
"sass",
|
16
|
+
"scss",
|
17
|
+
"js",
|
18
|
+
"javascript",
|
19
|
+
"front-end",
|
20
|
+
"styleguide",
|
21
|
+
"uswitch",
|
22
|
+
"ustyle"
|
23
|
+
],
|
24
|
+
"authors": [
|
25
|
+
"uSwitch Limited <developers@uswitch.com>",
|
26
|
+
"Joe Green <joe.green@uswitch.com>",
|
27
|
+
"David Annez <david.annez@uswitch.com>",
|
28
|
+
"Thomas Britton <thomas.britton@uswitch.com>",
|
29
|
+
"Ricardo Cerqueira <ricardo.cerqueira@uswitch.com>",
|
30
|
+
"Ivo Reis <ivo.reis@uswitch.com>"
|
31
|
+
],
|
32
|
+
"homepage": "http://ustyle.guide",
|
33
|
+
"repository": {
|
34
|
+
"type": "git",
|
35
|
+
"url": "git://github.com/uswitch/ustyle.git"
|
36
|
+
},
|
37
|
+
"license": "Apache-2.0",
|
38
|
+
"ignore": [
|
39
|
+
"/*.",
|
40
|
+
"config",
|
41
|
+
"docs",
|
42
|
+
"grunt",
|
43
|
+
"styleguide",
|
44
|
+
"tasks",
|
45
|
+
"CONTRIBUTING.md",
|
46
|
+
"Gemfile*",
|
47
|
+
"Gruntfile.js",
|
48
|
+
"JAVASCRIPT_STANDARDS.md",
|
49
|
+
"package.json",
|
50
|
+
"Rakefile",
|
51
|
+
"README.md",
|
52
|
+
"ustyle.gemspec"
|
53
|
+
]
|
54
|
+
}
|
data/config/.jscsrc
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
{
|
2
|
+
"esnext": true,
|
3
|
+
"verbose": true,
|
4
|
+
"requireSpaceAfterKeywords": [
|
5
|
+
"if",
|
6
|
+
"else",
|
7
|
+
"for",
|
8
|
+
"while",
|
9
|
+
"do",
|
10
|
+
"switch",
|
11
|
+
"case",
|
12
|
+
"return",
|
13
|
+
"try",
|
14
|
+
"catch",
|
15
|
+
"typeof"
|
16
|
+
],
|
17
|
+
"disallowSpacesInNamedFunctionExpression": {
|
18
|
+
"beforeOpeningRoundBrace": true
|
19
|
+
},
|
20
|
+
"disallowSpacesInFunctionExpression": {
|
21
|
+
"beforeOpeningRoundBrace": true
|
22
|
+
},
|
23
|
+
"disallowSpacesInAnonymousFunctionExpression": {
|
24
|
+
"beforeOpeningRoundBrace": true
|
25
|
+
},
|
26
|
+
"disallowSpacesInFunctionDeclaration": {
|
27
|
+
"beforeOpeningRoundBrace": true
|
28
|
+
},
|
29
|
+
"disallowEmptyBlocks": true,
|
30
|
+
"disallowSpacesInsideArrayBrackets": true,
|
31
|
+
"disallowSpacesInsideParentheses": true,
|
32
|
+
"disallowSpaceAfterObjectKeys": true,
|
33
|
+
"disallowSpaceAfterPrefixUnaryOperators": true,
|
34
|
+
"disallowSpaceBeforePostfixUnaryOperators": true,
|
35
|
+
"disallowSpaceBeforeBinaryOperators": [
|
36
|
+
","
|
37
|
+
],
|
38
|
+
"disallowMixedSpacesAndTabs": true,
|
39
|
+
"disallowTrailingWhitespace": true,
|
40
|
+
"requireTrailingComma": { "ignoreSingleLine": true },
|
41
|
+
"disallowYodaConditions": true,
|
42
|
+
"disallowKeywords": [ "with" ],
|
43
|
+
"disallowKeywordsOnNewLine": ["else"],
|
44
|
+
"disallowMultipleLineBreaks": true,
|
45
|
+
"disallowMultipleLineStrings": true,
|
46
|
+
"disallowMultipleVarDecl": true,
|
47
|
+
"disallowSpaceBeforeComma": true,
|
48
|
+
"disallowSpaceBeforeSemicolon": true,
|
49
|
+
"requireSpaceBeforeBlockStatements": true,
|
50
|
+
"requireParenthesesAroundIIFE": true,
|
51
|
+
"requireSpacesInConditionalExpression": true,
|
52
|
+
"requireBlocksOnNewline": 1,
|
53
|
+
"requireCommaBeforeLineBreak": true,
|
54
|
+
"requireSpaceBeforeBinaryOperators": true,
|
55
|
+
"requireSpaceAfterBinaryOperators": true,
|
56
|
+
"requireCamelCaseOrUpperCaseIdentifiers": true,
|
57
|
+
"requireLineFeedAtFileEnd": true,
|
58
|
+
"requireCapitalizedConstructors": true,
|
59
|
+
"requireDotNotation": true,
|
60
|
+
"requireSpacesInForStatement": true,
|
61
|
+
"requireSpaceBetweenArguments": true,
|
62
|
+
"requireCurlyBraces": [
|
63
|
+
"do"
|
64
|
+
],
|
65
|
+
"requirePaddingNewLinesBeforeLineComments": {
|
66
|
+
"allExcept": "firstAfterCurly"
|
67
|
+
},
|
68
|
+
"requirePaddingNewLinesAfterBlocks": true,
|
69
|
+
"requireSemicolons": true,
|
70
|
+
"safeContextKeyword": "_this",
|
71
|
+
"validateLineBreaks": "LF",
|
72
|
+
"validateIndentation": 2,
|
73
|
+
|
74
|
+
"validateQuoteMarks": "\"",
|
75
|
+
"requireTrailingComma": null
|
76
|
+
}
|