Skip to content

Commit

Permalink
Install js/css dependencies with bower
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamrick committed Mar 25, 2015
1 parent f2b3555 commit d8fc0ad
Show file tree
Hide file tree
Showing 65 changed files with 2,015 additions and 945 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "nbgrader/html/static/components"
}
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,13 @@ docs/user_guide/grade_example/autograded
docs/user_guide/grade_example/feedback
docs/user_guide/release_example/student
docs/user_guide/nbgrader_example.db

# components stuff
node_modules
nbgrader/html/static/components/bootstrap/less
nbgrader/html/static/components/bootstrap/js/*
!nbgrader/html/static/components/bootstrap/js/bootstrap.js
!nbgrader/html/static/components/bootstrap/js/bootstrap.min.js
nbgrader/html/static/components/jquery/jquery-migrate.min.js
nbgrader/html/static/components/jquery/jquery-migrate.js

14 changes: 14 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "nbgrader-deps",
"version": "0.0.0",
"dependencies": {
"bootstrap": "components/bootstrap#~3.3",
"backbone": "components/backbone#~1.1.2",
"jquery": "components/jquery#~2.1.1",
"underscore": "components/underscore#~1.7"
},
"resolutions": {
"underscore": "~1.7",
"jquery": "~2.1.1"
}
}
34 changes: 34 additions & 0 deletions nbgrader/html/static/components/backbone/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "backbone",
"description": "Give your JS App some Backbone with Models, Views, Collections, and Events.",
"homepage": "http://backbonejs.org/",
"keywords": [
"model",
"view",
"controller",
"router",
"server",
"client",
"browser"
],
"author": "Jeremy Ashkenas <[email protected]>",
"repository": {
"type": "git",
"url": "git://github.com/components/backbone.git"
},
"dependencies": {
"jquery": "~2.0.3",
"underscore": "~1.5.0"
},
"version": "1.1.2",
"main": "backbone.js",
"_release": "1.1.2",
"_resolution": {
"type": "version",
"tag": "1.1.2",
"commit": "2c539b5e3c4026f6adc43aded941ede5aac8831f"
},
"_source": "git://github.com/components/backbone.git",
"_target": "~1.1.2",
"_originalSource": "components/backbone"
}
5 changes: 5 additions & 0 deletions nbgrader/html/static/components/backbone/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vendor
build
node_modules
components
composer.lock
22 changes: 22 additions & 0 deletions nbgrader/html/static/components/backbone/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2010-2013 Jeremy Ashkenas, DocumentCloud

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
36 changes: 36 additions & 0 deletions nbgrader/html/static/components/backbone/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
____ __ __
/\ _`\ /\ \ /\ \ __
\ \ \ \ \ __ ___\ \ \/'\\ \ \____ ___ ___ __ /\_\ ____
\ \ _ <' /'__`\ /'___\ \ , < \ \ '__`\ / __`\ /' _ `\ /'__`\ \/\ \ /',__\
\ \ \ \ \/\ \ \.\_/\ \__/\ \ \\`\\ \ \ \ \/\ \ \ \/\ \/\ \/\ __/ __ \ \ \/\__, `\
\ \____/\ \__/.\_\ \____\\ \_\ \_\ \_,__/\ \____/\ \_\ \_\ \____\/\_\_\ \ \/\____/
\/___/ \/__/\/_/\/____/ \/_/\/_/\/___/ \/___/ \/_/\/_/\/____/\/_/\ \_\ \/___/
\ \____/
\/___/
(_'_______________________________________________________________________________'_)
(_.———————————————————————————————————————————————————————————————————————————————._)

NOTE: When requiring Backbone, you should globally declare jQuery, like this:

Backbone.$ = require("jquery");

Otherwise, Backbone won't be able to find jQuery. (You'll need to specifiy jQuery as a dependency)

------------

Backbone supplies structure to JavaScript-heavy applications by providing models key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing application over a RESTful JSON interface.

For Docs, License, Tests, pre-packed downloads, and everything else, really, see:
http://backbonejs.org

To suggest a feature, report a bug, or general discussion:
http://github.com/jashkenas/backbone/issues

Backbone is an open-sourced component of DocumentCloud:
https://github.com/documentcloud

Many thanks to our contributors:
http://github.com/jashkenas/backbone/contributors

Special thanks to Robert Kieffer for the original philosophy behind Backbone.
http://github.com/broofa
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions nbgrader/html/static/components/backbone/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "backbone",
"description": "Give your JS App some Backbone with Models, Views, Collections, and Events.",
"homepage": "http://backbonejs.org/",
"keywords": ["model", "view", "controller", "router", "server", "client", "browser"],
"author": "Jeremy Ashkenas <[email protected]>",
"repository": {
"type": "git",
"url": "git://github.com/components/backbone.git"
},
"dependencies": {
"jquery": "~2.0.3",
"underscore": "~1.5.0"
},
"version": "1.1.2",
"main": "backbone.js"
}
21 changes: 21 additions & 0 deletions nbgrader/html/static/components/backbone/component.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "backbone",
"repo": "components/backbone",
"description": "Give your JS App some Backbone with Models, Views, Collections, and Events.",
"homepage": "http://backbonejs.org/",
"keywords": ["model", "view", "controller", "router", "server", "client", "browser"],
"author": "Jeremy Ashkenas <[email protected]>",
"repository": {
"type": "git",
"url": "git://github.com/components/backbone.git"
},
"dependencies": {
"components/jquery": "2.0.3",
"components/underscore": "1.4.4"
},
"version": "1.1.2",
"main": "backbone.js",
"scripts": [
"backbone.js"
]
}
37 changes: 37 additions & 0 deletions nbgrader/html/static/components/backbone/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "components/backbone",
"description": "Give your JS App some Backbone with Models, Views, Collections, and Events.",
"keywords": ["model", "view", "controller", "router", "server", "client", "browser"],
"type": "component",
"homepage": "http://backbonejs.org",
"license": "MIT",
"support": {
"issues": "https://github.com/documentcloud/backbone/issues",
"source": "https://github.com/documentcloud/backbone"
},
"authors": [
{
"name": "Jeremy Ashkenas",
"email": "[email protected]"
}
],
"require": {
"components/underscore": ">=1.4.3"
},
"extra": {
"component": {
"scripts": [
"backbone.js"
],
"files": [
"backbone-min.js"
],
"shim": {
"deps": [
"underscore"
],
"exports": "Backbone"
}
}
}
}
24 changes: 24 additions & 0 deletions nbgrader/html/static/components/backbone/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "components-backbone",
"description": "Give your JS App some Backbone with Models, Views, Collections, and Events. Shim repository.",
"homepage": "http://backbonejs.org",
"keywords": [
"model",
"view",
"controller",
"router",
"server",
"client",
"browser"
],
"dependencies": {
"underscore": ">=1.4.3"
},
"author": "Jeremy Ashkenas <[email protected]>",
"repository": {
"type": "git",
"url": "git://github.com/components/backbone.git"
},
"main": "backbone.js",
"version": "1.1.2"
}
34 changes: 34 additions & 0 deletions nbgrader/html/static/components/bootstrap/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "components-bootstrap",
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
"homepage": "http://getbootstrap.com",
"version": "3.3.4",
"keywords": [
"css",
"less",
"mobile-first",
"responsive",
"front-end",
"framework",
"web"
],
"license": "MIT",
"dependencies": {
"jquery": ">=1.9.1"
},
"main": "js/bootstrap.js",
"ignore": [
"component.json",
"package.json",
"composer.json"
],
"_release": "3.3.4",
"_resolution": {
"type": "version",
"tag": "3.3.4",
"commit": "699ecb616573d899e4c26f8735b0df7245719f87"
},
"_source": "git://github.com/components/bootstrap.git",
"_target": "~3.3",
"_originalSource": "components/bootstrap"
}
6 changes: 6 additions & 0 deletions nbgrader/html/static/components/bootstrap/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build
vendor
components
jam
node_modules
composer.lock
18 changes: 18 additions & 0 deletions nbgrader/html/static/components/bootstrap/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Bootstrap
=========

Shim repository for [Bootstrap](http://getbootstrap.com).

This package just provides the basic Bootstrap JavaScript in the package. This
means that although the stylesheets are there, you will be required to provide
your own means of including the styles. If you aim to use the default Bootstrap
styles, then you could use the [components/bootstrap-default](http://github.com/components/bootstrap-default)
package for that.

Package Managers
----------------

* [npm](http://npmjs.org/package/components-bootstrap): `components-bootstrap`
* [Bower](http://twitter.github.com/bower/): `components-bootstrap`
* [Component](https://github.com/component/component): `components/bootstrap`
* [Composer](http://packagist.org/packages/components/bootstrap): `components/bootstrap`
25 changes: 25 additions & 0 deletions nbgrader/html/static/components/bootstrap/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "components-bootstrap",
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
"homepage": "http://getbootstrap.com",
"version": "3.3.4",
"keywords": [
"css",
"less",
"mobile-first",
"responsive",
"front-end",
"framework",
"web"
],
"license": "MIT",
"dependencies": {
"jquery": ">=1.9.1"
},
"main": "js/bootstrap.js",
"ignore": [
"component.json",
"package.json",
"composer.json"
]
}
Loading

0 comments on commit d8fc0ad

Please sign in to comment.