Commit e7153c94 authored by Jim Tittsler's avatar Jim Tittsler

Update jsdom and wordpress modules

- use ESLint
- upgrading wordpress module may address "Unknown XML-RPC tag 'TITLE'" (#16)
parent bd74529b
{
"env": {
"browser": false,
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"sourceType": "script"
},
"rules": {
"no-const-assign": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unused-vars": "off",
"constructor-super": "warn",
"valid-typeof": "warn"
}
}
\ No newline at end of file
......@@ -2,15 +2,14 @@
This is a simple demonstration of using
[jsdom](https://github.com/tmpvar/jsdom)
and [jQuery](http://jquery.com/) in io.js
and [jQuery](http://jquery.com/) in Node.js
to _snapshot_ a collection (outline) of pages stored in WikiEducator.
It modifies the pages as they are fetched, and writes a static tree
of them to the filesystem or to a WordPress instance.
## Installation
These sample scripts require [Node.js](https://nodejs.org/en/) 4.0.x or greater
(or the now deprecated [io.js](http://iojs.org/) 1.5.x or greater).
These sample scripts require [Node.js](https://nodejs.org/en/) 6.x.x or greater.
> If you don't already have Node.js installed, using
> [nvm](https://github.com/creationix/nvm) is an easy
......@@ -18,19 +17,19 @@ These sample scripts require [Node.js](https://nodejs.org/en/) 4.0.x or greater
>
> You can install nvm using cURL:
>
> `curl https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash`
> `curl https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash`
>
> *or* Wget:
>
> `wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash`
> `wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash`
>
> Then use nvm to install a recent version of [node.js](https://nodejs.org/en/):
>
> `nvm install v4.2.1`
> `nvm install v6.9.10`
>
> For future invocations now that Node.js is installed, you merely
> need to tell your shell which version to use with
> `nvm use v4.2.1`
> `nvm use v6.9.10`
1. git clone https://bitbucket.org/wikieducator/course.git
2. cd course
......@@ -89,4 +88,3 @@ of course-sized open educational resources stored in WikiEducator.
I expect that different institutions (and even different courses
within an institution) will have different needs, organizations, and
styling.
......@@ -2,7 +2,7 @@
/* jshint node: true, multistr: true, trailing: true, esnext: true */
"use strict";
const VERSION = '0.11.6',
const VERSION = '0.12.0',
JQUERY = 'http://code.jquery.com/jquery-2.1.1.min.js',
FILEPATH = '/home/www/www';
......
......@@ -12,18 +12,17 @@
"url": "https://git.gitorious.org/wikieducator/course.git"
},
"dependencies": {
"jsdom" : "4.0.5",
"jsdom" : "9.11.0",
"docopt": "0.6.2",
"mkdirp": "0.5.1",
"wordpress": "1.1.1"
"wordpress": "1.4.0"
},
"license": "MIT",
"bin": {
"course": "course.js"
},
"engines": {
"iojs": ">=1.5.1",
"node": ">=4.0.0"
"node": ">=6.0.0"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment