Skip to content

Commit

Permalink
Rewrote the gh-pages demo site
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Sep 24, 2015
1 parent 60b4814 commit 0247bd9
Show file tree
Hide file tree
Showing 1,689 changed files with 560,855 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .bowerrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"directory": "tests/bower_components"
"directory": "www/bower_components"
}
6 changes: 5 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
"/index.html",
"/package.json"
],
"dependencies": {},
"dependencies": {
"ace-builds": "https://github.com/ajaxorg/ace-builds.git#~1.2.0",
"bootstrap-sass": "~3.3.5",
"jquery": "~2.1.4"
},
"devDependencies": {
"chai": "*",
"mocha": "*",
Expand Down
22 changes: 11 additions & 11 deletions dist/swagger-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -13601,7 +13601,7 @@ module.exports = new Type('tag:yaml.org,2002:timestamp', {

},{"../type":38}],55:[function(require,module,exports){
/**!
* JSON Schema $Ref Parser v1.1.0
* JSON Schema $Ref Parser v1.2.1
*
* @link https://github.com/BigstickCarpet/json-schema-ref-parser
* @license MIT
Expand Down Expand Up @@ -13757,7 +13757,7 @@ function crawl(obj, path, parents, $refs, options) {
// Check for circular references
var circular = pointer.circular || parents.indexOf(pointer.value) !== -1;
$refs.circular = $refs.circular || true;
if (!options.allow.circular) {
if (!options.$refs.circular) {
throw ono.reference('Circular $ref pointer found at %s', keyPath);
}

Expand Down Expand Up @@ -14121,14 +14121,7 @@ function $RefParserOptions(options) {
* If false, then an error will be thrown.
* @type {boolean}
*/
unknown: true,

/**
* Allow circular (recursive) JSON references?
* If false, then a {@link ReferenceError} will be thrown if a circular reference is found.
* @type {boolean}
*/
circular: true
unknown: true
};

/**
Expand All @@ -14145,7 +14138,14 @@ function $RefParserOptions(options) {
* Allow JSON references to external files/URLs?
* @type {boolean}
*/
external: true
external: true,

/**
* Allow circular (recursive) JSON references?
* If false, then a {@link ReferenceError} will be thrown if a circular reference is found.
* @type {boolean}
*/
circular: true
};

/**
Expand Down
6 changes: 3 additions & 3 deletions dist/swagger-parser.js.map

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions dist/swagger-parser.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/swagger-parser.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<html>
<head>
<meta http-equiv="refresh" content="0; url=tests/index.html">
<meta http-equiv="refresh" content="0; url=www/index.html">
</head>
<body>
<body bgcolor="#333333">
<script>
window.location = 'tests/index.html';
window.location = 'www/index.html';
</script>
</body>
</html>
4 changes: 2 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ var baseConfig = {
reporters: ['mocha'],
files: [
// Third-Party Libraries
'tests/bower_components/chai/chai.js',
'tests/bower_components/sinon-js/sinon.js',
'www/bower_components/chai/chai.js',
'www/bower_components/sinon-js/sinon.js',

// Swagger Parser
'dist/swagger-parser.min.js',
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
"main": "lib/index.js",
"scripts": {
"lint": "jshint . --verbose && jscs . --verbose",
"build": "npm run lint && npm run browserify",
"build": "npm run lint && npm run browserify && npm run build-www",
"build-www": "npm run sass && npm run browserify-www",
"browserify": "simplifyify lib/index.js --outfile dist/swagger-parser.js --standalone SwaggerParser --debug --minify",
"watch": "npm run browserify -- --watch",
"browserify-www": "simplifyify www/js/index.js --outfile www/js/bundle.js --debug --minify",
"watch": "npm run browserify -- --watch & npm run browserify-www -- --watch",
"sass": "node-sass --source-map true --output-style compressed www/css/style.scss www/css/style.min.css",
"mocha": "mocha --bail --recursive tests/fixtures tests/specs",
"istanbul": "istanbul cover _mocha --dir coverage/node -- --bail --recursive tests/fixtures tests/specs",
"karma": "karma start --single-run",
Expand Down Expand Up @@ -60,6 +63,7 @@
"karma-safari-launcher": "^0.1.1",
"karma-sauce-launcher": "^0.2.14",
"mocha": "^2.3.2",
"node-sass": "^3.3.3",
"npm-check-updates": "^2.2.3",
"phantomjs": "^1.9.18",
"simplifyify": "^1.4.1",
Expand Down
8 changes: 4 additions & 4 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

<title>Swagger Parser Tests</title>

<link rel="stylesheet" href="bower_components/mocha/mocha.css"/>
<link rel="stylesheet" href="../www/bower_components/mocha/mocha.css"/>
</head>
<body>
<div id="mocha"></div>

<!-- Third-Party Libraries -->
<script src="bower_components/mocha/mocha.js"></script>
<script src="bower_components/chai/chai.js"></script>
<script src="bower_components/sinon-js/sinon.js"></script>
<script src="../www/bower_components/mocha/mocha.js"></script>
<script src="../www/bower_components/chai/chai.js"></script>
<script src="../www/bower_components/sinon-js/sinon.js"></script>

<!-- Swagger Parser -->
<script src="../dist/swagger-parser.js"></script>
Expand Down
15 changes: 15 additions & 0 deletions www/bower_components/ace-builds/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "ace-builds",
"homepage": "https://github.com/ajaxorg/ace-builds",
"version": "1.2.0",
"_release": "1.2.0",
"_resolution": {
"type": "version",
"tag": "v1.2.0",
"commit": "0982db4853e3c967756b83b70638b9761d7f801d"
},
"_source": "https://github.com/ajaxorg/ace-builds.git",
"_target": "~1.2.0",
"_originalSource": "https://github.com/ajaxorg/ace-builds.git",
"_direct": true
}
Loading

0 comments on commit 0247bd9

Please sign in to comment.