Permalink
Browse files

homepage tweaked

bootstrap installed
lesscss installed
less files created
typos corrected
  • Loading branch information...
inmarelibero committed Oct 2, 2012
1 parent 39e70dc commit d6e6306b044136b3e3f163065d6508699b44478b
Showing with 41,044 additions and 20 deletions.
  1. +1 −1 app/config/config_dev.yml
  2. +1 −1 src/Bricks/SiteBundle/Controller/DefaultController.php
  3. +87 −1 src/Bricks/SiteBundle/Resources/views/Default/index.html.twig
  4. +82 −0 src/Bricks/SiteBundle/Resources/views/layout.html.twig
  5. +0 −17 src/Bricks/SiteBundle/Tests/Controller/DefaultControllerTest.php
  6. +37 −0 web/assets/bootstrap-2.1.1/.gitignore
  7. +85 −0 web/assets/bootstrap-2.1.1/.issue-guidelines.js
  8. +3 −0 web/assets/bootstrap-2.1.1/.travis.yml
  9. +176 −0 web/assets/bootstrap-2.1.1/LICENSE
  10. +108 −0 web/assets/bootstrap-2.1.1/Makefile
  11. +139 −0 web/assets/bootstrap-2.1.1/README.md
  12. +1,058 −0 web/assets/bootstrap-2.1.1/docs/assets/css/bootstrap-responsive.css
  13. +5,774 −0 web/assets/bootstrap-2.1.1/docs/assets/css/bootstrap.css
  14. +1,001 −0 web/assets/bootstrap-2.1.1/docs/assets/css/docs.css
  15. BIN web/assets/bootstrap-2.1.1/docs/assets/ico/apple-touch-icon-114-precomposed.png
  16. BIN web/assets/bootstrap-2.1.1/docs/assets/ico/apple-touch-icon-144-precomposed.png
  17. BIN web/assets/bootstrap-2.1.1/docs/assets/ico/apple-touch-icon-57-precomposed.png
  18. BIN web/assets/bootstrap-2.1.1/docs/assets/ico/apple-touch-icon-72-precomposed.png
  19. BIN web/assets/bootstrap-2.1.1/docs/assets/ico/favicon.ico
  20. BIN web/assets/bootstrap-2.1.1/docs/assets/img/bootstrap-mdo-sfmoma-01.jpg
  21. BIN web/assets/bootstrap-2.1.1/docs/assets/img/bootstrap-mdo-sfmoma-02.jpg
  22. BIN web/assets/bootstrap-2.1.1/docs/assets/img/bootstrap-mdo-sfmoma-03.jpg
  23. BIN web/assets/bootstrap-2.1.1/docs/assets/img/bs-docs-bootstrap-features.png
  24. BIN web/assets/bootstrap-2.1.1/docs/assets/img/bs-docs-masthead-pattern.png
  25. BIN web/assets/bootstrap-2.1.1/docs/assets/img/bs-docs-responsive-illustrations.png
  26. BIN web/assets/bootstrap-2.1.1/docs/assets/img/bs-docs-twitter-github.png
  27. BIN web/assets/bootstrap-2.1.1/docs/assets/img/example-sites/fleetio.png
  28. BIN web/assets/bootstrap-2.1.1/docs/assets/img/example-sites/jshint.png
  29. BIN web/assets/bootstrap-2.1.1/docs/assets/img/example-sites/kippt.png
  30. BIN web/assets/bootstrap-2.1.1/docs/assets/img/example-sites/soundready.png
  31. BIN web/assets/bootstrap-2.1.1/docs/assets/img/examples/bootstrap-example-fluid.jpg
  32. BIN web/assets/bootstrap-2.1.1/docs/assets/img/examples/bootstrap-example-hero.jpg
  33. BIN web/assets/bootstrap-2.1.1/docs/assets/img/examples/bootstrap-example-starter.jpg
  34. BIN web/assets/bootstrap-2.1.1/docs/assets/img/glyphicons-halflings-white.png
  35. BIN web/assets/bootstrap-2.1.1/docs/assets/img/glyphicons-halflings.png
  36. BIN web/assets/bootstrap-2.1.1/docs/assets/img/grid-baseline-20px.png
  37. BIN web/assets/bootstrap-2.1.1/docs/assets/img/less-logo-large.png
  38. BIN web/assets/bootstrap-2.1.1/docs/assets/img/responsive-illustrations.png
  39. +106 −0 web/assets/bootstrap-2.1.1/docs/assets/js/README.md
  40. +154 −0 web/assets/bootstrap-2.1.1/docs/assets/js/application.js
  41. +104 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-affix.js
  42. +90 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-alert.js
  43. +96 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-button.js
  44. +176 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-carousel.js
  45. +158 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-collapse.js
  46. +150 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-dropdown.js
  47. +239 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-modal.js
  48. +103 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-popover.js
  49. +151 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-scrollspy.js
  50. +135 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-tab.js
  51. +275 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-tooltip.js
  52. +60 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-transition.js
  53. +300 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap-typeahead.js
  54. +2,027 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap.js
  55. +6 −0 web/assets/bootstrap-2.1.1/docs/assets/js/bootstrap.min.js
  56. +30 −0 web/assets/bootstrap-2.1.1/docs/assets/js/google-code-prettify/prettify.css
  57. +28 −0 web/assets/bootstrap-2.1.1/docs/assets/js/google-code-prettify/prettify.js
  58. +4 −0 web/assets/bootstrap-2.1.1/docs/assets/js/jquery.js
  59. +1,980 −0 web/assets/bootstrap-2.1.1/docs/base-css.html
  60. +44 −0 web/assets/bootstrap-2.1.1/docs/build/index.js
  61. +6 −0 web/assets/bootstrap-2.1.1/docs/build/package.json
  62. +2,338 −0 web/assets/bootstrap-2.1.1/docs/components.html
  63. +480 −0 web/assets/bootstrap-2.1.1/docs/customize.html
  64. +154 −0 web/assets/bootstrap-2.1.1/docs/examples/fluid.html
  65. +126 −0 web/assets/bootstrap-2.1.1/docs/examples/hero.html
  66. +79 −0 web/assets/bootstrap-2.1.1/docs/examples/starter-template.html
  67. +286 −0 web/assets/bootstrap-2.1.1/docs/extend.html
  68. +335 −0 web/assets/bootstrap-2.1.1/docs/getting-started.html
  69. +206 −0 web/assets/bootstrap-2.1.1/docs/index.html
  70. +1,731 −0 web/assets/bootstrap-2.1.1/docs/javascript.html
  71. +584 −0 web/assets/bootstrap-2.1.1/docs/scaffolding.html
  72. +147 −0 web/assets/bootstrap-2.1.1/docs/templates/layout.mustache
  73. +1,871 −0 web/assets/bootstrap-2.1.1/docs/templates/pages/base-css.mustache
  74. +2,221 −0 web/assets/bootstrap-2.1.1/docs/templates/pages/components.mustache
  75. +363 −0 web/assets/bootstrap-2.1.1/docs/templates/pages/customize.mustache
  76. +169 −0 web/assets/bootstrap-2.1.1/docs/templates/pages/extend.mustache
  77. +218 −0 web/assets/bootstrap-2.1.1/docs/templates/pages/getting-started.mustache
  78. +89 −0 web/assets/bootstrap-2.1.1/docs/templates/pages/index.mustache
  79. +1,615 −0 web/assets/bootstrap-2.1.1/docs/templates/pages/javascript.mustache
  80. +471 −0 web/assets/bootstrap-2.1.1/docs/templates/pages/scaffolding.mustache
  81. BIN web/assets/bootstrap-2.1.1/img/glyphicons-halflings-white.png
  82. BIN web/assets/bootstrap-2.1.1/img/glyphicons-halflings.png
  83. +12 −0 web/assets/bootstrap-2.1.1/js/.jshintrc
  84. +104 −0 web/assets/bootstrap-2.1.1/js/bootstrap-affix.js
  85. +90 −0 web/assets/bootstrap-2.1.1/js/bootstrap-alert.js
  86. +96 −0 web/assets/bootstrap-2.1.1/js/bootstrap-button.js
  87. +176 −0 web/assets/bootstrap-2.1.1/js/bootstrap-carousel.js
  88. +158 −0 web/assets/bootstrap-2.1.1/js/bootstrap-collapse.js
  89. +150 −0 web/assets/bootstrap-2.1.1/js/bootstrap-dropdown.js
  90. +239 −0 web/assets/bootstrap-2.1.1/js/bootstrap-modal.js
  91. +103 −0 web/assets/bootstrap-2.1.1/js/bootstrap-popover.js
  92. +151 −0 web/assets/bootstrap-2.1.1/js/bootstrap-scrollspy.js
  93. +135 −0 web/assets/bootstrap-2.1.1/js/bootstrap-tab.js
  94. +275 −0 web/assets/bootstrap-2.1.1/js/bootstrap-tooltip.js
  95. +60 −0 web/assets/bootstrap-2.1.1/js/bootstrap-transition.js
  96. +300 −0 web/assets/bootstrap-2.1.1/js/bootstrap-typeahead.js
  97. +56 −0 web/assets/bootstrap-2.1.1/js/tests/index.html
  98. +63 −0 web/assets/bootstrap-2.1.1/js/tests/phantom.js
  99. +14 −0 web/assets/bootstrap-2.1.1/js/tests/server.js
  100. +19 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-affix.js
  101. +56 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-alert.js
  102. +96 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-button.js
  103. +42 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-carousel.js
  104. +88 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-collapse.js
  105. +105 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-dropdown.js
  106. +114 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-modal.js
  107. +21 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-phantom.js
  108. +107 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-popover.js
  109. +31 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-scrollspy.js
  110. +61 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-tab.js
  111. +144 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-tooltip.js
  112. +13 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-transition.js
  113. +204 −0 web/assets/bootstrap-2.1.1/js/tests/unit/bootstrap-typeahead.js
  114. +4 −0 web/assets/bootstrap-2.1.1/js/tests/vendor/jquery.js
  115. +232 −0 web/assets/bootstrap-2.1.1/js/tests/vendor/qunit.css
  116. +1,510 −0 web/assets/bootstrap-2.1.1/js/tests/vendor/qunit.js
  117. +34 −0 web/assets/bootstrap-2.1.1/less/accordion.less
  118. +65 −0 web/assets/bootstrap-2.1.1/less/alerts.less
  119. +62 −0 web/assets/bootstrap-2.1.1/less/bootstrap.less
  120. +24 −0 web/assets/bootstrap-2.1.1/less/breadcrumbs.less
  121. +245 −0 web/assets/bootstrap-2.1.1/less/button-groups.less
  122. +231 −0 web/assets/bootstrap-2.1.1/less/buttons.less
  123. +131 −0 web/assets/bootstrap-2.1.1/less/carousel.less
  124. +31 −0 web/assets/bootstrap-2.1.1/less/close.less
  125. +58 −0 web/assets/bootstrap-2.1.1/less/code.less
  126. +22 −0 web/assets/bootstrap-2.1.1/less/component-animations.less
  127. +210 −0 web/assets/bootstrap-2.1.1/less/dropdowns.less
  128. +650 −0 web/assets/bootstrap-2.1.1/less/forms.less
  129. +21 −0 web/assets/bootstrap-2.1.1/less/grid.less
  130. +24 −0 web/assets/bootstrap-2.1.1/less/hero-unit.less
  131. +72 −0 web/assets/bootstrap-2.1.1/less/labels-badges.less
  132. +16 −0 web/assets/bootstrap-2.1.1/less/layouts.less
  133. +681 −0 web/assets/bootstrap-2.1.1/less/mixins.less
  134. +98 −0 web/assets/bootstrap-2.1.1/less/modals.less
  135. +475 −0 web/assets/bootstrap-2.1.1/less/navbar.less
  136. +384 −0 web/assets/bootstrap-2.1.1/less/navs.less
  137. +40 −0 web/assets/bootstrap-2.1.1/less/pager.less
  138. +64 −0 web/assets/bootstrap-2.1.1/less/pagination.less
  139. +117 −0 web/assets/bootstrap-2.1.1/less/popovers.less
  140. +122 −0 web/assets/bootstrap-2.1.1/less/progress-bars.less
  141. +137 −0 web/assets/bootstrap-2.1.1/less/reset.less
  142. +28 −0 web/assets/bootstrap-2.1.1/less/responsive-1200px-min.less
  143. +174 −0 web/assets/bootstrap-2.1.1/less/responsive-767px-max.less
  144. +19 −0 web/assets/bootstrap-2.1.1/less/responsive-768px-979px.less
  145. +177 −0 web/assets/bootstrap-2.1.1/less/responsive-navbar.less
  146. +43 −0 web/assets/bootstrap-2.1.1/less/responsive-utilities.less
  147. +48 −0 web/assets/bootstrap-2.1.1/less/responsive.less
  148. +52 −0 web/assets/bootstrap-2.1.1/less/scaffolding.less
  149. +193 −0 web/assets/bootstrap-2.1.1/less/sprites.less
  150. +245 −0 web/assets/bootstrap-2.1.1/less/tables.less
  151. +139 −0 web/assets/bootstrap-2.1.1/less/tests/css-tests.css
  152. +1,296 −0 web/assets/bootstrap-2.1.1/less/tests/css-tests.html
  153. +179 −0 web/assets/bootstrap-2.1.1/less/tests/forms.html
  154. +108 −0 web/assets/bootstrap-2.1.1/less/tests/navbar.html
  155. +52 −0 web/assets/bootstrap-2.1.1/less/thumbnails.less
  156. +70 −0 web/assets/bootstrap-2.1.1/less/tooltip.less
  157. +221 −0 web/assets/bootstrap-2.1.1/less/type.less
  158. +30 −0 web/assets/bootstrap-2.1.1/less/utilities.less
  159. +279 −0 web/assets/bootstrap-2.1.1/less/variables.less
  160. +29 −0 web/assets/bootstrap-2.1.1/less/wells.less
  161. +25 −0 web/assets/bootstrap-2.1.1/package.json
  162. +9 −0 web/assets/less/less-1.3.0.min.js
  163. +25 −0 web/css/footer-bottom.less
  164. +95 −0 web/css/layout.less
  165. +8 −0 web/css/main.less
@@ -6,7 +6,7 @@ framework:
profiler: { only_exceptions: false }
web_profiler:
- toolbar: true
+ toolbar: false
intercept_redirects: false
monolog:
@@ -9,7 +9,7 @@
class DefaultController extends Controller
{
/**
- * @Route("/")
+ * @Route("/", name="homepage")
* @Template()
*/
public function indexAction()
@@ -1 +1,87 @@
-hello SymfonyBricks.com world!
+{% extends 'BricksSiteBundle::layout.html.twig' %}
+
+{% block main %}
+
+ <div class="row">
+ <div class="span12" style="text-align: center;">
+
+ <br><br>
+
+ <h1 style="font-size: 70px;">SymfonyBricks</h1>
+
+ <br><br><br><br><br>
+
+ <p style="font-size: 20px;">
+ Built by the community for the community
+ </p>
+ <br>
+ <p style="font-size: 20px;">
+ SymfonyBricks aims to be a repository of code, snippets and recipes useful to Symfony developers
+ </p>
+
+ <br><br><br><br>
+ Do you want to know more?
+ <br><br>
+
+ <a href="https://github.com/inmarelibero/SymfonyBricks" target="_new" class="btn btn-primary btn-large">github repository</a>
+ &nbsp;&nbsp;&nbsp;
+ <a href="https://github.com/inmarelibero/SymfonyBricks/wiki" target="_new" class="btn btn-large">github wiki</a>
+
+ </div>
+ </div>
+
+ <br><br><br>
+
+ <div class="row" style="text-align: justify;">
+ <div class="span5">
+ <h2>Open source</h2>
+ The code of the web site you are visiting is fully hosted on github, ready to be examined,
+ forked, and improved!
+ <br>
+ <a href="https://github.com/inmarelibero/SymfonyBricks" target="_new">Check out the repository now</a>
+ <br><br>
+ Everyone is invited to collaborate, you can give a hand in many, many ways. We are open-surce lovers,
+ like all the people contributing to Symfony. And we help each other ;)
+ </div>
+ <div class="span5 offset2">
+ <h2>For the community</h2>
+ The purpose is to become an homogeneous repository of code snippets, recipes and guides (and anything we cannot even imagine now)
+ about Symfony and topics related to it.
+ <br><br>
+ Contents will be submitted by you: depending on your possibilities you will post a new recipe, contribute to its translation,
+ improve them, spot errors, or just express a judgement about its utility.
+ </div>
+ </div>
+
+ <hr>
+
+ <div class="row">
+ <div class="span12">
+ <h3>I want to participate</h3>
+ The first important thing you can do is to use Twitter to stay tuned with the latest updates and to spread SymfonyBricks.
+ </div>
+ </div>
+ <br><br><br>
+ <div class="row">
+ <div class="span6" style="text-align: right;">
+ <p class="text-italic text-small">
+ Follow SymfonyBricks on Twitter
+ </p>
+ <a href="https://twitter.com/SymfonyBricks" class="twitter-follow-button" data-show-count="false">Follow @SymfonyBricks</a>
+ </div>
+ <div class="span6">
+ <p class="text-italic text-small">
+ Share the link to <a href="http://symfonybricks.com" target="_new">symfonybricks.com</a>
+ </p>
+ <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://symfonybricks.com/" data-via="SymfonyBricks">Tweet</a>
+ </div>
+ </div>
+ <br><br><br>
+ <div class="row">
+ <div class="span12">
+ The next step is to have a look at the <a href="https://github.com/inmarelibero/SymfonyBricks" target="_new">SymfonyBricks repository on github</a>
+ and participate to the development by checking the code, contributing through PRs, or just creating and commenting issue.
+ </div>
+ </div>
+
+{% endblock %}
@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <link rel="shortcut icon" href="{{ asset('favicon.ico') }}" />
+
+ {# SEO #}
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
+ <title>SymfonyBricks.com</title>
+ <meta name="description" content="SymfonyBricks.com" />
+ <meta name="keywords" content="Symfony" />
+ <meta name="robots" content="index, follow" />
+ <meta name="googlebot" content="index, follow" />
+ <meta name="author" content="symfonybricks.com" />
+ <meta name="language" content="en"/>
+
+ {% block stylesheets %}
+ <link rel="stylesheet/less" type="text/css" href="{{ asset('css/main.less') }}">
+ {% endblock %}
+
+ {% block javascripts_header %}
+ <script src="{{ asset('assets/less/less-1.3.0.min.js') }}" type="text/javascript"></script>
+
+ {# twitter #}
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+ {% endblock %}
+ </head>
+
+ <body lang="{{app.request.locale}}">
+
+ <div class="wrapper">
+ <header>
+ <div class="navbar" id="main-navbar">
+ <div class="navbar-inner">
+ <div class="container">
+ <ul class="nav menu-left">
+ <li>
+ <a href="{{ path('homepage') }}" id="brand">
+ SymfonyBricks.com
+ </a>
+ </li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </header>
+
+ <section id="main">
+ <div class="container">
+ {% block main %}{% endblock %}
+ </div>
+ </section>
+ <div class="push-footer"></div>
+ </div>
+
+ <footer class="footer">
+ <div class="container">
+ <div class="row">
+ <div class="span6">
+ <ul>
+ <li><a href="{{ path('homepage') }}" target="_new">SymfonyBricks.com</a></li>
+ <li><a href="https://github.com/inmarelibero/SymfonyBricks" target="_new">SymfonyBricks github repository</a></li>
+ </ul>
+ </div>
+ <div class="span6" style="text-align: right">
+ <br>
+ online since Mon 1 Oct 2012 23:15:23 CEST
+ </div>
+ </div>
+ </div>
+ </footer>
+
+ {% if 'dev' == app.environment %}
+ <script>
+ // destroy less cache
+ // it doesn't work on IE
+ localStorage.clear();
+ </script>
+ {% endif %}
+ </body>
+
+</html>
@@ -1,17 +0,0 @@
-<?php
-
-namespace Bricks\SiteBundle\Tests\Controller;
-
-use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
-
-class DefaultControllerTest extends WebTestCase
-{
- public function testIndex()
- {
- $client = static::createClient();
-
- $crawler = $client->request('GET', '/hello/Fabien');
-
- $this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
- }
-}
@@ -0,0 +1,37 @@
+# Numerous always-ignore extensions
+*.diff
+*.err
+*.orig
+*.log
+*.rej
+*.swo
+*.swp
+*.zip
+*.vi
+*~
+*.sass-cache
+
+# OS or Editor folders
+.DS_Store
+._*
+Thumbs.db
+.cache
+.project
+.settings
+.tmproj
+*.esproj
+nbproject
+*.sublime-project
+*.sublime-workspace
+
+# Komodo
+*.komodoproject
+.komodotools
+
+# Folders to ignore
+.hg
+.svn
+.CVS
+.idea
+node_modules
+dist
@@ -0,0 +1,85 @@
+/* ==========================================================
+ * issue-guidelines.js
+ * http://twitter.github.com/bootstrap/javascript.html#alerts
+ * ==========================================================
+ * Copyright 2012 Twitter, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ========================================================== */
+
+var assert = require('assert')
+
+module.exports = {
+
+ 'pull-requests': {
+
+ 'should always be made against -wip branches': function (pull) {
+ assert.ok(/\-wip$/.test(pull.base.ref))
+ },
+
+ 'should always be made from feature branches': function (pull) {
+ assert.notEqual(pull.head.ref, 'master')
+ },
+
+ 'should always include a unit test if changing js files': function (pull) {
+ var hasJS = false
+ var hasTests = false
+
+ pull.files.forEach(function (file) {
+ if (/^js\/[^./]+.js/.test(file.filename)) hasJS = true
+ if (/^js\/tests\/unit\/[^.]+.js/.test(file.filename)) hasTests = true
+ })
+
+ assert.ok(!hasJS || hasJS && hasTests)
+ },
+
+ 'after': function (pull) {
+ if (pull.reporter.stats.failures) {
+ pull.reportFailures(pull.close.bind(pull))
+ }
+ }
+
+ },
+
+ 'issues': {
+
+ 'before': function (issue) {
+ var plus = {}
+ var labels = issue.labels.map(function (label) { return label.name });
+
+ if (~labels.indexOf('popular')) return
+
+ issue.comments.forEach(function (comment) {
+ if (/\+1/.test(comment.body)) plus[comment.user.login] = true
+ })
+
+ if (Object.keys(plus).length > 5) {
+ issue.tag('popular')
+ issue.comment('Tagging this issue as popular, please stop commenting on this issue with +1. thanks!')
+ }
+ },
+
+ 'should include a jsfiddle/jsbin illustrating the problem if tagged with js but not a feature': function (issue) {
+ var labels = issue.labels.map(function (label) { return label.name });
+ if (~labels.indexOf('js') && !~labels.indexOf('feature')) assert.ok(/(jsfiddle|jsbin)/.test(issue.body))
+ },
+
+ 'after': function (issue) {
+ if (issue.reporter.stats.failures) {
+ issue.reportFailures(issue.close.bind(issue))
+ }
+ }
+
+ }
+
+}
@@ -0,0 +1,3 @@
+language: node_js
+node_js:
+ - 0.6
Oops, something went wrong.

0 comments on commit d6e6306

Please sign in to comment.