Moved source folders

This commit is contained in:
josdejong 2013-05-03 23:26:09 +02:00
parent 0976f078a5
commit 9dda39df21
24 changed files with 23 additions and 21 deletions

View File

@ -37,23 +37,24 @@ task('clear', function () {
*/ */
desc('Build the library'); desc('Build the library');
task('build', ['clear'], function () { task('build', ['clear'], function () {
var jsoneditorSrc = './jsoneditor/';
// concatenate the javascript files // concatenate the javascript files
concat({ concat({
src: [ src: [
'./src/js/jsoneditor.js', jsoneditorSrc + 'js/jsoneditor.js',
'./src/js/treeeditor.js', jsoneditorSrc + 'js/treeeditor.js',
'./src/js/texteditor.js', jsoneditorSrc + 'js/texteditor.js',
'./src/js/node.js', jsoneditorSrc + 'js/node.js',
'./src/js/appendnode.js', jsoneditorSrc + 'js/appendnode.js',
'./src/js/contextmenu.js', jsoneditorSrc + 'js/contextmenu.js',
'./src/js/history.js', jsoneditorSrc + 'js/history.js',
'./src/js/searchbox.js', jsoneditorSrc + 'js/searchbox.js',
'./src/js/highlighter.js', jsoneditorSrc + 'js/highlighter.js',
'./src/js/util.js', jsoneditorSrc + 'js/util.js',
'./src/js/module.js' jsoneditorSrc + 'js/module.js'
], ],
dest: JSONEDITOR, dest: JSONEDITOR,
header: read('./src/js/header.js') + '\n' + header: read(jsoneditorSrc +'js/header.js') + '\n' +
'(function () {\n', '(function () {\n',
separator: '\n', separator: '\n',
footer: '\n})();\n' footer: '\n})();\n'
@ -66,10 +67,10 @@ task('build', ['clear'], function () {
// concatenate and stringify the css files // concatenate and stringify the css files
concat({ concat({
src: [ src: [
'./src/css/jsoneditor.css', jsoneditorSrc + 'css/jsoneditor.css',
'./src/css/contextmenu.css', jsoneditorSrc + 'css/contextmenu.css',
'./src/css/menu.css', jsoneditorSrc + 'css/menu.css',
'./src/css/searchbox.css' jsoneditorSrc + 'css/searchbox.css'
], ],
dest: JSONEDITOR_CSS, dest: JSONEDITOR_CSS,
separator: '\n' separator: '\n'
@ -81,7 +82,7 @@ task('build', ['clear'], function () {
// create a folder img and copy the icons // create a folder img and copy the icons
jake.mkdirP('./img'); jake.mkdirP('./img');
jake.cpR('./src/css/img/jsoneditor-icons.png', './img/'); jake.cpR(jsoneditorSrc + 'css/img/jsoneditor-icons.png', './img/');
console.log('Copied jsoneditor-icons.png to ./img/'); console.log('Copied jsoneditor-icons.png to ./img/');
}); });
@ -94,7 +95,7 @@ task('minify', ['build'], function () {
minify({ minify({
src: JSONEDITOR, src: JSONEDITOR,
dest: JSONEDITOR_MIN, dest: JSONEDITOR_MIN,
header: read('./src/js/header.js'), header: read('./jsoneditor/js/header.js'),
separator: '\n' separator: '\n'
}); });

View File

@ -173,7 +173,7 @@
• •
<a href="HISTORY.md" target="_blank" class="footer">History</a> <a href="HISTORY.md" target="_blank" class="footer">History</a>
&bull; &bull;
<a href="https://github.com/josdejong/jsoneditoronline" target="_blank" class="footer">Sourcecode</a> <a href="https://github.com/josdejong/jsoneditor/" target="_blank" class="footer">Sourcecode</a>
&bull; &bull;
<a href="datapolicy.txt" target="_blank" class="footer">Data policy</a> <a href="datapolicy.txt" target="_blank" class="footer">Data policy</a>
&bull; &bull;

View File

@ -208,7 +208,7 @@
&bull; &bull;
<a href="../../HISTORY.md" target="_blank" class="footer">History</a> <a href="../../HISTORY.md" target="_blank" class="footer">History</a>
&bull; &bull;
<a href="https://github.com/josdejong/jsoneditoronline" target="_blank" class="footer">Sourcecode</a> <a href="https://github.com/josdejong/jsoneditor/" target="_blank" class="footer">Sourcecode</a>
&bull; &bull;
<a href="datapolicy.txt" target="_blank" class="footer">Data policy</a> <a href="datapolicy.txt" target="_blank" class="footer">Data policy</a>
&bull; &bull;

3
jsoneditor-min.js vendored

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB