Permalink
Browse files

Add node.js/Heroku server

Fix Quixe error
  • Loading branch information...
curiousdannii committed May 18, 2013
1 parent fa27316 commit a60cf3a3f8b0fe5ee549c9e1f066603a553a87b7
Showing with 29 additions and 7 deletions.
  1. +1 −0 Procfile
  2. +3 −3 lib/parchment.debug.js
  3. +1 −1 lib/parchment.min.js
  4. +3 −0 package.json
  5. +3 −3 src/parchment/intro.js
  6. +18 −0 tools/server.js
View
@@ -0,0 +1 @@
web: node tools/server.js
View
@@ -1206,7 +1206,7 @@ jQuery.ajaxPrefilter( 'script', function( options /*, originalOptions, jqXHR*/ )
});
// The home for Parchment to live in
var parchment = {
window.parchment = {
// The default parchment options
options: {
@@ -1238,10 +1238,10 @@ var parchment = {
// Classes etc
lib: {}
},
};
// Isolate the query string options we have
urloptions = (function( options ) {
var urloptions = (function( options ) {
var i = 0, result = {}, temp;
if ( options[0] == '' )
{
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -14,6 +14,9 @@
"bugs": {
"url": "https://code.google.com/p/parchment/issues/list"
},
"dependencies": {
"express": "~3.2.4"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-concat": "~0.2.0",
View
@@ -37,7 +37,7 @@ jQuery.ajaxPrefilter( 'script', function( options /*, originalOptions, jqXHR*/ )
});
// The home for Parchment to live in
var parchment = {
window.parchment = {
// The default parchment options
options: {
@@ -69,10 +69,10 @@ var parchment = {
// Classes etc
lib: {}
},
};
// Isolate the query string options we have
urloptions = (function( options ) {
var urloptions = (function( options ) {
var i = 0, result = {}, temp;
if ( options[0] == '' )
{
View
@@ -0,0 +1,18 @@
/*
Parchment server
================
Copyright (c) 2013 The Parchment Contributors
BSD licenced
https://github.com/curiousdannii/parchment
*/
var express = require( 'express' );
var app = express();
app.use( express.compress() );
app.use( express.static( __dirname + '/../' ) );
app.listen( process.env.PORT || 3000 );

0 comments on commit a60cf3a

Please sign in to comment.