Skip to content

Commit

Permalink
* Upgrade to js2coffee 2.2.0. Fix SCRIPT error.
Browse files Browse the repository at this point in the history
  Reported by: @lanfon72
  • Loading branch information
audreyt committed May 7, 2016
1 parent 60fab2b commit cdcfaed
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 5,761 deletions.
26 changes: 12 additions & 14 deletions package.json
Expand Up @@ -9,29 +9,27 @@
"url": "https://github.com/audreyt/js2ls.org" "url": "https://github.com/audreyt/js2ls.org"
}, },
"engines": { "engines": {
"node": "0.8.x", "node": "5.0.x"
"npm": "1.1.x"
}, },
"scripts": { "scripts": {
"prepublish": "lsc -cj package.ls || echo" "prepublish": "lsc -cj package.ls || echo"
}, },
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"brunch": ">= 1.4 < 1.5", "brunch": "*",
"javascript-brunch": ">= 1.0 < 1.5", "javascript-brunch": "*",
"LiveScript-brunch": ">= 1.4.1", "livescript-brunch": "*",
"css-brunch": ">= 1.0 < 1.5", "css-brunch": "*",
"sass-brunch": ">= 1.4 < 1.5", "sass-brunch": "*",
"jade-brunch": "1.3.x", "jade-brunch": "*",
"static-jade-brunch": "*", "static-jade-brunch": "*",
"auto-reload-brunch": "1.3.x", "auto-reload-brunch": "*",
"uglify-js-brunch": ">= 1.0 < 1.5", "uglify-js-brunch": "*",
"clean-css-brunch": ">= 1.0 < 1.5", "clean-css-brunch": "*",
"testacular": ">= 0.0.16", "karma": "*",
"mocha": "*", "mocha": "*",
"chai": "*", "chai": "*",
"sinon": "*", "sinon": "*",
"sinon-chai": "*", "sinon-chai": "*"
"zombie": "*"
} }
} }
24 changes: 11 additions & 13 deletions package.ls
Expand Up @@ -6,24 +6,22 @@ homepage: 'https://github.com/audreyt/js2ls.org'
repository: repository:
type: 'git' type: 'git'
url: 'https://github.com/audreyt/js2ls.org' url: 'https://github.com/audreyt/js2ls.org'
engines: engines: { node: '5.0.x' }
node: '0.8.x'
npm: '1.1.x'
scripts: scripts:
prepublish: 'lsc -cj package.ls || echo' prepublish: 'lsc -cj package.ls || echo'
dependencies: {} dependencies: {}
devDependencies: devDependencies:
brunch: '>= 1.4 < 1.5' brunch: '*'
'javascript-brunch': '>= 1.0 < 1.5' 'javascript-brunch': '*'
'LiveScript-brunch': '>= 1.4.1' 'livescript-brunch': '*'
'css-brunch': '>= 1.0 < 1.5' 'css-brunch': '*'
'sass-brunch': '>= 1.4 < 1.5' 'sass-brunch': '*'
'jade-brunch': '1.3.x' 'jade-brunch': '*'
'static-jade-brunch': '*' 'static-jade-brunch': '*'
'auto-reload-brunch': '1.3.x' 'auto-reload-brunch': '*'
'uglify-js-brunch': '>= 1.0 < 1.5' 'uglify-js-brunch': '*'
'clean-css-brunch': '>= 1.0 < 1.5' 'clean-css-brunch': '*'
testacular: '>= 0.0.16' karma: '*'
mocha: '*' mocha: '*'
chai: '*' chai: '*'
sinon: '*' sinon: '*'
Expand Down
4 changes: 2 additions & 2 deletions public/js/app.js
Expand Up @@ -141,15 +141,15 @@ window.require.define({"angular-ace": function(exports, require, module) {
break; break;
case 'js2lslefteditor': case 'js2lslefteditor':
try { try {
cs = Js2coffee.build(editor.getValue()); cs = Js2coffee.build(editor.getValue()).code;
} catch (e$) { } catch (e$) {
e = e$; e = e$;
$(err).html(e + "").show(); $(err).html(e + "").show();
} }
break; break;
case 'js2lsrighteditor': case 'js2lsrighteditor':
try { try {
cs = Js2coffee.build(scope.js2lslefteditor.getValue()); cs = Js2coffee.build(scope.js2lslefteditor.getValue()).code;
} catch (e$) { } catch (e$) {
e = e$; e = e$;
$(err).html(e + "").show(); $(err).html(e + "").show();
Expand Down
2,876 changes: 11 additions & 2,865 deletions public/js/vendor.js

Large diffs are not rendered by default.

1 comment on commit cdcfaed

@mike-czarnota
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, unfortunately still there is script error on the website :(
ReferenceError: Js2coffee is not defined

Please sign in to comment.