Switched js-yaml to yaml.js
This commit is contained in:
parent
2908145c67
commit
56f13eb8f3
@ -24,12 +24,11 @@
|
|||||||
"crel": "git@github.com:KoryNunn/crel.git#8dbda04b129fc0aec01a2a080d1cab26816e11c1",
|
"crel": "git@github.com:KoryNunn/crel.git#8dbda04b129fc0aec01a2a080d1cab26816e11c1",
|
||||||
"waitForImages": "git@github.com:alexanderdickson/waitForImages.git#~1.4.2",
|
"waitForImages": "git@github.com:alexanderdickson/waitForImages.git#~1.4.2",
|
||||||
"to-markdown": "git@github.com:benweet/to-markdown.git#jquery",
|
"to-markdown": "git@github.com:benweet/to-markdown.git#jquery",
|
||||||
"js-yaml": "~2.1.0",
|
|
||||||
"Typo.js": "git@github.com:cfinke/Typo.js.git",
|
"Typo.js": "git@github.com:cfinke/Typo.js.git",
|
||||||
"xregexp": "d06eff50f87d81d2dd3afc1e854784c38b17bcc4"
|
"xregexp": "d06eff50f87d81d2dd3afc1e854784c38b17bcc4",
|
||||||
|
"yaml.js": "git@github.com:jeremyfa/yaml.js.git#~0.1.4"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"jquery": "2.0.3",
|
"jquery": "2.0.3"
|
||||||
"pagedown-extra": "cca554948c362affb1cbab3bacc3861e2d90d426"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
#Date Sun Oct 06 2013 23:25:00
|
#Date Mon Oct 07 2013 01:13:17
|
||||||
|
|
||||||
CACHE:
|
CACHE:
|
||||||
index.html
|
index.html
|
||||||
|
99474
public/res-min/main.js
99474
public/res-min/main.js
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
define([
|
define([
|
||||||
"classes/Extension",
|
"classes/Extension",
|
||||||
"js-yaml",
|
"yaml-js",
|
||||||
], function(Extension, yamlFrontMatterParserSettingsBlock) {
|
], function(Extension, YAML) {
|
||||||
|
|
||||||
var yamlFrontMatterParser = new Extension("yamlFrontMatterParser", "YAML front matter");
|
var yamlFrontMatterParser = new Extension("yamlFrontMatterParser", "YAML front matter");
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ define([
|
|||||||
if ((yaml = results[2]) && (!fileDesc.frontMatter || fileDesc.frontMatter._yaml != yaml)) {
|
if ((yaml = results[2]) && (!fileDesc.frontMatter || fileDesc.frontMatter._yaml != yaml)) {
|
||||||
fileDesc.frontMatter = undefined;
|
fileDesc.frontMatter = undefined;
|
||||||
try {
|
try {
|
||||||
fileDesc.frontMatter = jsyaml.load(yaml);
|
fileDesc.frontMatter = YAML.parse(yaml);
|
||||||
fileDesc.frontMatter._yaml = yaml;
|
fileDesc.frontMatter._yaml = yaml;
|
||||||
}
|
}
|
||||||
catch (e) {}
|
catch (e) {}
|
||||||
|
@ -51,12 +51,14 @@ requirejs.config({
|
|||||||
'pagedown-extra': 'bower-libs/pagedown-extra/Markdown.Extra',
|
'pagedown-extra': 'bower-libs/pagedown-extra/Markdown.Extra',
|
||||||
'ace/requirejs/text': 'libs/ace_text',
|
'ace/requirejs/text': 'libs/ace_text',
|
||||||
'ace/commands/default_commands': 'libs/ace_commands',
|
'ace/commands/default_commands': 'libs/ace_commands',
|
||||||
'js-yaml': 'bower-libs/js-yaml/js-yaml',
|
|
||||||
'require-css': 'bower-libs/require-css/css',
|
'require-css': 'bower-libs/require-css/css',
|
||||||
Typo: 'bower-libs/Typo.js',
|
Typo: 'bower-libs/Typo.js',
|
||||||
'typo-js': 'bower-libs/Typo.js/typo/typo',
|
'typo-js': 'bower-libs/Typo.js/typo/typo',
|
||||||
xregexp: 'bower-libs/xregexp/xregexp-all',
|
xregexp: 'bower-libs/xregexp/xregexp-all',
|
||||||
'Typo.js': 'bower-libs/Typo.js'
|
'Typo.js': 'bower-libs/Typo.js',
|
||||||
|
yaml: 'bower-libs/yaml.js',
|
||||||
|
'yaml.js': 'bower-libs/yaml.js',
|
||||||
|
'yaml-js': 'bower-libs/yaml.js/bin/yaml'
|
||||||
},
|
},
|
||||||
shim: {
|
shim: {
|
||||||
underscore: {
|
underscore: {
|
||||||
@ -77,6 +79,9 @@ requirejs.config({
|
|||||||
'typo-js': {
|
'typo-js': {
|
||||||
exports: 'Typo'
|
exports: 'Typo'
|
||||||
},
|
},
|
||||||
|
'yaml-js': {
|
||||||
|
exports: 'YAML'
|
||||||
|
},
|
||||||
'bootstrap-record': [
|
'bootstrap-record': [
|
||||||
'mousetrap'
|
'mousetrap'
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user