Remove browserify tasks tasks/**/*--browserify.js
diff --git a/tasks/compile-browserify.js b/tasks/compile-browserify.js
deleted file mode 100644
index cfafff2..0000000
--- a/tasks/compile-browserify.js
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
-*/
-var fs = require('fs');
-var path = require('path');
-var pkgJson = require(process.cwd() + '/package.json');
-
-try {
- require('browserify');
-} catch (e) {
- console.error("\nbrowserify is not installed, you need to:\n\trun `npm install` from " + require('path').dirname(__dirname)+"\n");
- process.exit(1);
-}
-
-var generate = require('./lib/packager-browserify');
-
-module.exports = function(grunt) {
- grunt.registerMultiTask('compile-browserify', 'Packages cordova.js browserify style', function() {
- var done = this.async();
- var platformName = this.target;
- var useWindowsLineEndings = this.data.useWindowsLineEndings;
-
- //grabs --platformVersion flag
- var flags = grunt.option.flags();
- var platformVersion;
- flags.forEach(function(flag) {
- if (flag.indexOf('platformVersion') > -1) {
- var equalIndex = flag.indexOf('=');
- platformVersion = flag.slice(equalIndex + 1);
- }
- });
- if(!platformVersion){
- var platformPath = pkgJson['cordova-platforms']['cordova-'+platformName];
- if(platformPath && fs.existsSync(platformPath)) {
- var platformPkgJson = require('../' + platformPath +'/package.json');
- platformVersion = platformPkgJson.version;
- } else {
- console.log('platformVersion not supplied. Setting platformVersion to N/A');
- console.log('ex: grunt compile-browserify --platformVersion=3.6.0');
- platformVersion = 'N/A';
- }
- }
- generate(platformName, useWindowsLineEndings, platformVersion, platformPath, done);
- });
-}
diff --git a/tasks/lib/bundle-browserify.js b/tasks/lib/bundle-browserify.js
deleted file mode 100644
index 8eaecb8..0000000
--- a/tasks/lib/bundle-browserify.js
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF
- * or more contributor license agreements. See th
- * distributed with this work for additional infor
- * regarding copyright ownership. The ASF license
- * to you under the Apache License, Version 2.0 (t
- * "License"); you may not use this file except in
- * with the License. You may obtain a copy of the
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to
- * software distributed under the License is distr
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
- * KIND, either express or implied. See the Licen
- * specific language governing permissions and lim
- * under the License.
- */
-var fs = require('fs');
-var path = require('path');
-var browserify = require('browserify');
-var root = path.join(__dirname, '..', '..');
-var pkgJson = require('../../package.json');
-var collectFiles = require('./collect-files');
-var copyProps = require('./copy-props');
-
-module.exports = function bundle(platform, debug, commitId, platformVersion, platformPath) {
-
- if (fs.existsSync(platformPath) && fs.existsSync(path.join(platformPath, 'cordova-js-src'))) {
- platformPath = path.join(platformPath, 'cordova-js-src');
- } else {
- if(platform === 'test') {
- platformPath = path.resolve(root, 'src', 'legacy-exec', platform);
- } else {
- console.log('Your version of ' + platform + ' does not contain cordova-js-src. Update to a newer version of ' + platform + '.');
- }
- }
-
- var platformDirname = platform === 'amazon-fireos' ? 'android' : platform;
-
- var modules = {'cordova': path.resolve(root, 'src', 'cordova_b.js')};
- copyProps(modules, collectFiles(path.resolve(root, 'src', 'common'), 'cordova'));
- copyProps(modules, collectFiles(platformPath, 'cordova'));
-
- // Replace standart initialization script with browserify's one
- delete modules['cordova/init_b'];
- delete modules['cordova/modulemapper_b'];
- delete modules['cordova/pluginloader_b'];
- modules['cordova/init'] = path.resolve(root, 'src', 'common', 'init_b.js');
- modules['cordova/modulemapper'] = path.resolve(root, 'src', 'common', 'modulemapper_b.js');
- modules['cordova/pluginloader'] = path.resolve(root, 'src', 'common', 'pluginloader_b.js');
-
- // test doesn't support custom paths
- if (platform === 'test') {
- var androidPath = path.resolve(pkgJson['cordova-platforms']['cordova-android']);
- var iosPath = path.resolve(pkgJson['cordova-platforms']['cordova-ios']);
- var testFilesPath = path.resolve(androidPath, 'cordova-js-src', 'android');
- // Add android platform-specific modules that have tests to the test bundle.
- if(fs.existsSync(androidPath)) {
-
- modules['cordova/android/exec'] = path.resolve(androidPath, 'cordova-js-src', 'exec.js');
- } else {
- //testFilesPath = path.resolve('src', 'legacy-exec', 'android', 'android');
- //modules['cordova/android/exec'] = path.resolve(root, 'src', 'legacy-exec', 'android', 'exec.js');
- console.log('Couldn\'t add android test files.');
- throw 'Stopped process';
- }
- copyProps(modules, collectFiles(testFilesPath, 'cordova/android'));
-
- //Add iOS platform-specific modules that have tests for the test bundle.
- if(fs.existsSync(iosPath)) {
- modules['cordova/ios/exec'] = path.join(iosPath, 'cordova-js-src', 'exec.js');
- } else {
- //modules['cordova/ios/exec'] = path.resolve(root, 'src', 'legacy-exec', 'ios', 'exec.js');
- console.log('Couldn\'t add iOS test files.');
- throw 'Stopped process';
- }
- copyProps(modules, collectFiles(testFilesPath, 'cordova/ios'));
- }
-
- modules = Object.keys(modules)
- .map(function (moduleId) {
- return {
- file: modules[moduleId],
- expose: moduleId
- };
- });
-
- return browserify({debug: !!debug, detectGlobals: false})
- .require(modules)
- .exclude('cordova/plugin_list');
-};
diff --git a/tasks/lib/packager-browserify.js b/tasks/lib/packager-browserify.js
deleted file mode 100644
index e5c8d41..0000000
--- a/tasks/lib/packager-browserify.js
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF
- * or more contributor license agreements. See th
- * distributed with this work for additional infor
- * regarding copyright ownership. The ASF license
- * to you under the Apache License, Version 2.0 (t
- * "License"); you may not use this file except in
- * with the License. You may obtain a copy of the
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to
- * software distributed under the License is distr
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
- * KIND, either express or implied. See the Licen
- * specific language governing permissions and lim
- * under the License.
- */
-var fs = require('fs');
-var path = require('path');
-var util = require('util');
-var bundle = require('./bundle-browserify');
-var computeCommitId = require('./compute-commit-id');
-var writeLicenseHeader = require('./write-license-header');
-
-module.exports = function generate(platform, useWindowsLineEndings, platformVersion, platformPath, done) {
- computeCommitId(function(commitId) {
- var outReleaseFile, outReleaseFileStream,
- outDebugFile, outDebugFileStream,
- releaseBundle, debugBundle;
- var time = new Date().valueOf();
-
- if (!fs.existsSync('pkg')) {
- fs.mkdirSync('pkg');
- }
-
- outReleaseFile = path.join('pkg', 'cordova.' + platform + '.js');
- outReleaseFileStream = fs.createWriteStream(outReleaseFile);
-
- // write license header
- writeLicenseHeader(outReleaseFileStream, platform, commitId, platformVersion);
-
- bundle(platform, false, commitId, platformVersion, platformPath)
- .add(path.resolve(__dirname, '..', '..', 'src/scripts/bootstrap.js'))
- .bundle()
- .pipe(outReleaseFileStream);
-
- outReleaseFileStream.on('finish', function() {
- var newtime = new Date().valueOf() - time;
- console.log('generated cordova.' + platform + '.js @ ' + commitId + ' in ' + newtime + 'ms');
- done();
- });
- });
-};
diff --git a/tasks/lib/test-browser.js b/tasks/lib/test-browser.js
deleted file mode 100644
index 5933b9b..0000000
--- a/tasks/lib/test-browser.js
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-
-var fs = require('fs');
-var path = require('path');
-
-var express = require('express');
-
-var collect = require('./collect');
-
-var testLibName = path.join(__dirname, '..', '..', 'pkg', 'cordova.test.js');
-var testLib = fs.readFileSync(testLibName, 'utf8');
-
-var pathToTemplate = path.join(__dirname, '..', 'templates', 'suite.html');
-var pathToVendor = path.join(__dirname, '..', 'vendor');
-var pathToJasmine = path.join(__dirname, '..', '..', 'node_modules', 'jasmine-node', 'lib', 'jasmine-node');
-var pathToTests = path.join(__dirname, '..', '..', 'test');
-
-var template = fs.readFileSync(pathToTemplate, "utf-8");
-
-// middlewar for GET '/cordova.test.js'
-function cordovajs(req, res) {
- res.writeHead(200, {
- "Cache-Control": "no-cache",
- "Content-Type": "text/javascript"
- });
- res.end(testLib);
-}
-
-// middleware for GET '/'
-function root(req, res) {
- res.writeHead(200, {
- "Cache-Control": "no-cache",
- "Content-Type": "text/html"
- });
-
- //FIXME in place collect thing is atrocious
- //create the script tags to include
- var tests = [];
- collect(path.join(__dirname, '..', '..', 'test'), tests);
- var specs = tests.map(function (file, path) {
- return '<script src="' + file.replace(/\\/g, '/').replace(/^.*\/test\//, "/") +
- '" type="text/javascript" charset="utf-8"></script>';
- }).join('\n');
-
- template = template.replace(/<!-- ##TESTS## -->/g, specs);
-
- // write the document
- res.end(template);
-}
-
-// connect router defn
-function routes(app) {
- app.get('/cordova.test.js', cordovajs);
- app.get('/', root);
-}
-
-module.exports = function() {
- console.log('starting browser-based tests');
-
- var app = express();
-
- app.set('port', 3000);
-
- app.use(express.static(pathToVendor));
- app.use(express.static(pathToJasmine));
- app.use(express.static(pathToTests));
-
- routes(app);
-
- app.listen(3000, () => console.log('Test Server running on: http://localhost:3000'));
-};
-