Permalink
Browse files

Initial setup of gruntfile and package.json, import from jquery.githu…

…b.com. Fixes #1
  • Loading branch information...
1 parent 8470b10 commit 615eb1f76054ff1120d5ac3574b3b7fcbdf2ebbc @ajpiano ajpiano committed Dec 5, 2012
Showing with 217 additions and 14 deletions.
  1. +4 −14 .gitignore
  2. +5 −0 config-sample.json
  3. +52 −0 grunt.js
  4. +31 −0 package.json
  5. +29 −0 page/CLA.html
  6. +88 −0 page/html-style-guide.html
  7. +8 −0 page/index.html
View
@@ -1,14 +1,4 @@
-lib-cov
-*.seed
-*.log
-*.csv
-*.dat
-*.out
-*.pid
-*.gz
-
-pids
-logs
-results
-
-npm-debug.log
+config.json
+node_modules/
+dist/
+.DS_Store
View
@@ -0,0 +1,5 @@
+{
+ "url": "local.contribute.jquery.com",
+ "username": "admin",
+ "password": "sample"
+}
View
@@ -0,0 +1,52 @@
+module.exports = function( grunt ) {
+
+"use strict";
+
+grunt.loadNpmTasks( "grunt-clean" );
+grunt.loadNpmTasks( "grunt-html" );
+grunt.loadNpmTasks( "grunt-wordpress" );
+grunt.loadNpmTasks( "grunt-jquery-content" );
+grunt.loadNpmTasks( "grunt-check-modules" );
+
+grunt.initConfig({
+ clean: {
+ wordpress: "dist/"
+ },
+ htmllint: {
+ resources: "resources/*.html"
+ },
+ jshint: {
+ options: {
+ undef: true,
+ node: true
+ }
+ },
+ lint: {
+ grunt: "grunt.js"
+ },
+ watch: {
+ pages: {
+ files: "page/**",
+ tasks: "deploy"
+ }
+ },
+ "build-pages": {
+ all: grunt.file.expandFiles( "page/**" )
+ },
+ "build-resources": {
+ all: grunt.file.expandFiles( "resources/**/*" )
+ },
+ wordpress: grunt.utils._.extend({
+ dir: "dist/wordpress",
+ order: "order.yml"
+ }, grunt.file.readJSON( "config.json" ) )
+});
+
+grunt.registerTask( "default", "wordpress-deploy" );
+grunt.registerTask( "build-wordpress", "check-modules clean lint build-pages build-resources");
+grunt.registerTask( "deploy", "wordpress-deploy" );
+
+};
+
+
+
View
@@ -0,0 +1,31 @@
+{
+ "name": "contribute.jquery.com",
+ "title": "jQuery Contributing Hub",
+ "description": "jQuery Foundation site for developer documentation",
+ "version": "0.0.0",
+ "homepage": "http://contribute.jquery.com",
+ "author": {
+ "name": "jQuery Foundation (http://jquery.org/)"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/jquery/contribute.jquery.com.git"
+ },
+ "bugs": {
+ "url": "https://github.com/jquery/contribute.jquery.com/issues"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://www.opensource.org/licenses/MIT"
+ }
+ ],
+ "dependencies": {
+ "grunt": "0.3.17",
+ "grunt-clean": "0.3.0",
+ "grunt-html": "0.1.1",
+ "grunt-wordpress": "1.0.5",
+ "grunt-jquery-content": "0.7.1",
+ "grunt-check-modules": "0.1.0"
+ }
+}
View
@@ -0,0 +1,29 @@
+<script>{
+ "title": "jQuery Foundation Contributor License Agreement"
+}</script>
+
+<p>The document below clarifies the terms under which You, the person listed below, may make "Contributions" (software, bug fixes, configuration changes, documentation, or any other materials) to the project. This license protects You, the jQuery Foundation and licensees; it does not change your rights to use your own Contributions for any other purpose.<p>
+
+<p>Please complete the following information about You and the Contributions. If you have questions about these terms, please contact us at legal@jquery.com.</p>
+
+<h3>You and the jQuery Foundation agree:</h3>
+
+<p><b>You grant to the jQuery Foundation a non-exclusive, irrevocable, worldwide, royalty-free, sublicenseable, transferable license</b> under all of Your relevant intellectual property rights (including copyright, patent, and any other rights), to use, copy, prepare derivative works of, distribute and publicly perform and display the Contributions on any licensing terms, including without limitation: (a) open source licenses like the MIT license; and (b) binary, proprietary, or commercial licenses. Except for the licenses granted herein, You reserve all right, title, and interest in and to the Contribution.</p>
+
+<p><b>You are able to grant us these rights.</b> You represent that You are legally entitled to grant the above license. <em>If Your employer has rights to intellectual property that You create</em>, You represent that You have received permission to make the Contributions on behalf of that employer, or that Your employer has waived such rights for the Contributions.</p>
+
+<p><b>The Contributions are your original work.</b> You represent that the Contributions are Your original works of authorship, and to Your knowledge, no other person claims, or has the right to claim, any right in any invention or patent related to the Contributions. You also represent that You are not legally obligated, whether by entering into an agreement or otherwise, in any way that conflicts with the terms of this license. For example, if you have signed an agreement requiring you to assign the intellectual property rights in the Contributions to an employer or customer, that would conflict with the terms of this license.<p>
+
+<p><b>We determine the code that is in our project.</b> You understand that the decision to include the Contribution in
+any project or source repository is entirely that of the jQuery Foundation, and this agreement does not guarantee that the Contributions will be included in any product.</p>
+
+<p><b>No Implied Warranties.</b> The jQuery Foundation acknowledges that, except as explicitly described in this Agreement, the Contribution is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.</p>
+
+<p>Please complete the following information and press Submit below to indicate your agreement.</p>
+
+<h2 id="signelectronically">Sign Electronically</h2>
+
+<iframe
+ src="http://spreadsheets.google.com/embeddedform?formkey=dFJucXdGZXlRdVh2SUVUb2hsb0FBYkE6MQ"
+ width="760" height="1000" frameborder="0" marginheight="0"
+ marginwidth="0">Loading...</iframe>
@@ -0,0 +1,88 @@
+<script>{
+ "title": "HTML Style Guide"
+}</script>
+
+<p>This page outlines the style guide for HTML pages in all jQuery projects.
+ These rules apply to web sites, demo pages, inline examples, test pages, etc.
+ Exceptions are allowed for pages that must violate the rules by their very
+ nature, e.g., a page that tests XHTML.</p>
+
+<h2>Doctype</h2>
+<p>Always use the minimal, versionless doctype.</p>
+
+<pre><code>
+&lt;!doctype html>
+</code></pre>
+
+<h2>Language</h2>
+<p>Always define which language the page is written in.<p>
+
+<pre><code>
+&lt;head lang="en">
+</code></pre>
+
+<h2>Encoding</h2>
+<p>Always define the character encoding.
+ The encoding should be defined as early as possible.</p>
+
+<pre><code>
+&lt;meta charset="utf-8">
+</code></pre>
+
+<h2>Elements and Attributes</h2>
+<p>All element and attribute names should be lowercase.
+ Attribute values should be quoted.
+ Optional closing tags should be included.
+ Self-closing elements should not be closed.
+ Optional attributes should be omitted.
+ Always include <code>html</code>, <code>head</code>, and <code>body</code> tags.</p>
+
+<ul>
+ <li>No <code>type</code> or <code>language</code> attributes on <code>script</code> tags.</li>
+ <li>No <code>type</code> attribute on <code>link</code> or <code>style</code> tags.</li>
+</ul>
+
+<pre><code>
+&lt;script src="...">&lt;script>
+&lt;script>&lt;/script>
+&lt;link rel="stylesheet" href="...">
+&lt;style>&lt;style>
+</code></pre>
+
+<h2>Indentation</h2>
+<p>Don't indent inside <code>html</code>, <code>body</code>,
+ <code>script</code>, or <code>style</code>.
+ Indent inside <code>head</code> and all other elements.</p>
+
+<h2>Example</h2>
+<pre><code>
+&lt;!doctype html>
+&lt;html lang="en">
+&lt;head>
+ &lt;meta charset="utf-8">
+ &lt;title>Sample Page&lt;/title>
+
+ &lt;link rel="stylesheet" href="/style.css">
+ &lt;style>
+ body {
+ font-size: 100em;
+ }
+ &lt;/style>
+
+ &lt;script src="/jquery.js">&lt;/script>
+ &lt;script>
+ $(function() {
+ $( "p" ).text( $.fn.jquery );
+ });
+ &lt;/script>
+&lt;/head>
+&lt;body>
+
+&lt;p>jQuery is awesome!&lt;p>
+
+&lt;/body>
+&lt;/html>
+</code></pre>
+
+</body>
+</html>
View
@@ -0,0 +1,8 @@
+<script>{
+ "title": "Contribute to jQuery"
+}</script>
+
+<p>We're very busy working on the world's most popular JavaScript library.
+Please bear with us while we fill out the rest of this site. In the meantime,
+feel free to read our <a href="/cla">Contributor License Agreement</a> and
+our <a href="/html-style-guide">HTML style guide</a>.</p>

0 comments on commit 615eb1f

Please sign in to comment.