loleaflet/Jakefile.js | 111 ------------------------------- loleaflet/plugins/draw-0.2.4/Jakefile.js | 48 ------------- 2 files changed, 159 deletions(-)
New commits: commit 5c3ba5617ec24610119193a28faa1ed64d92277c Author: Henry Castro <[email protected]> Date: Sat May 26 22:02:33 2018 -0400 loleaflet: remove unused Jakefiles Change-Id: I530d625ab1dddbdc6bddd875c79f9b32d09541ea diff --git a/loleaflet/Jakefile.js b/loleaflet/Jakefile.js deleted file mode 100644 index a0a230567..000000000 --- a/loleaflet/Jakefile.js +++ /dev/null @@ -1,111 +0,0 @@ -/* -Leaflet building, testing and linting scripts. - -To use, install Node, then run the following commands in the project root: - - npm install -g jake - npm install - -To check the code for errors and build Leaflet from source, run "jake". -To run the tests, run "jake test". - -For a custom build, open build/build.html in the browser and follow the instructions. -*/ - -var build = require('./build/build.js'), - builddir = process.env.builddir ? process.env.builddir + '/' : '', - version = require('./src/Leaflet.js').version; - -function hint(msg, args) { - return function () { - console.log(msg); - jake.exec('node ' + builddir + 'node_modules/eslint/bin/eslint.js ' + args, - {printStdout: true}, function () { - console.log('\tCheck passed.\n'); - complete(); - }); - }; -} - -desc('Check Leaflet source for errors with ESLint'); -task('lint', {async: true}, hint('Checking for JS errors...', 'src dist --config .eslintrc')); - -desc('Check admin source for errors with ESLint'); -task('lintadmin', {async: true}, hint('Checking for admin JS errors...', 'src/admin --config .eslintrc')); - -desc('Check Leaflet specs source for errors with ESLint'); -task('lintspec', {async: true}, hint('Checking for specs JS errors...', 'spec/suites --config spec/.eslintrc')); - -desc('Create a combined leaflet file'); -file('dist/leaflet-src.js', build.getFiles(), {async: true}, function() { - var lint = jake.Task['lint']; - lint.addListener('complete', function(value) { - var v; - jake.exec('git log -1 --pretty=format:"%h"', {breakOnError: false}, function () { - console.log('Building leaflet-src.js ...'); - build.build(complete, v); - }).on('stdout', function (data) { - v = version + ' (' + data.toString() + ')'; - }).on('error', function () { - v = version; - }); - }); - lint.invoke(); -}); - -desc('Create a combined admin file'); -file(builddir +'dist/admin-src.js', build.getAdminFiles(), {async: true}, function() { - var lint = jake.Task['lintadmin']; - lint.addListener('complete', function(value) { - console.log('Building admin-src.js ...'); - build.buildadmin(complete); - }); - lint.invoke(); -}); - -desc('Create final bundled js file to be used by main lool editor'); -file('dist/bundle.js', build.getBundleFiles(), {async: true}, function() { - var debug = process.env.debug === 'true'; - var minify = process.env.minify === 'true'; - - console.log('Creating bundle.js (debug=' + debug +', minify=' + minify + ') ...'); - build.bundle(debug, minify, complete); -}); - -desc('Create final bundle js file to be used by admin console'); -file(builddir + 'dist/admin-bundle.js', build.getAdminBundleFiles(), {async: true}, function() { - var debug = process.env.debug === 'true'; - var minify = process.env.minify === 'true'; - - console.log('Creating admin-bundle.js (debug=' + debug +', minify=' + minify + ') ...'); - build.bundleAdmin(debug, minify, complete); -}); - -desc('Create final bundled JS files'); -task('build', {async: true}, function () { - // TODO: Build both admin-bundle and bundle parallely - var bundlejs = jake.Task['dist/bundle.js']; - bundlejs.addListener('complete', function(value) { - console.log('Finished building loleaflet'); - complete(); - }); - - var adminbundlejs = jake.Task['dist/admin-bundle.js']; - adminbundlejs.addListener('complete', function(value) { - console.log('Finished building admin'); - bundlejs.invoke(); - }); - - adminbundlejs.invoke(); -}); - -desc('Run PhantomJS tests'); -task('test', ['lint', 'lintspec'], {async: true}, function () { - build.test(complete); -}); - -task('default', ['test', 'build']); - -jake.addListener('complete', function () { - process.exit(); -}); diff --git a/loleaflet/plugins/draw-0.2.4/Jakefile.js b/loleaflet/plugins/draw-0.2.4/Jakefile.js deleted file mode 100644 index 596372db8..000000000 --- a/loleaflet/plugins/draw-0.2.4/Jakefile.js +++ /dev/null @@ -1,48 +0,0 @@ -/* -Leaflet.draw building and linting scripts. - -To use, install Node, then run the following commands in the project root: - - npm install -g jake - npm install - -To check the code for errors and build Leaflet from source, run "jake". -To run the tests, run "jake test". - -For a custom build, open build/build.html in the browser and follow the instructions. -*/ - -var build = require('./build/build.js'); - -function hint(msg, args) { - return function () { - console.log(msg); - jake.exec('node ../../node_modules/eslint/bin/eslint.js ' + args, - {printStdout: true}, function () { - console.log('\tCheck passed.\n'); - complete(); - }); - }; -} - -desc('Check Leaflet source for errors with ESLint'); -task('lint', {async: true}, hint('Checking for JS errors...', 'src --config .eslintrc')); - -desc('Check Leaflet specs source for errors with ESLint'); -task('lintspec', {async: true}, hint('Checking for specs JS errors...', 'spec/suites --config spec/.eslintrc')); - -desc('Combine and compress Leaflet.draw source files'); -task('build', {async: true}, function () { - build.build(complete); -}); - -desc('Run PhantomJS tests'); -task('test', ['lint', 'lintspec'], {async: true}, function () { - build.test(complete); -}); - -task('default', ['test', 'build']); - -jake.addListener('complete', function () { - process.exit(); -}); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
