summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-07-18 14:12:29 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-07-18 14:12:29 -0400
commitdb14cdbd1ad52ba7197ced977e98ef1aedfaa743 (patch)
tree29f52d104f9eab4289bd1d29e05a349b75ee056d /bin
parent54a81d0f9b9903213c55d89ee87eeacbadd5486c (diff)
downloadqtlocation-mapboxgl-db14cdbd1ad52ba7197ced977e98ef1aedfaa743.tar.gz
purge fuzz fixture pipeline
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-fixtures.js22
-rwxr-xr-xbin/fuzz-colors.js26
-rwxr-xr-xbin/fuzz-functions.js27
-rwxr-xr-xbin/fuzz-layers.js23
-rwxr-xr-xbin/load-style.js15
-rwxr-xr-xbin/minify.js15
-rwxr-xr-xbin/mkdirp.js13
7 files changed, 0 insertions, 141 deletions
diff --git a/bin/build-fixtures.js b/bin/build-fixtures.js
deleted file mode 100755
index 142147ef88..0000000000
--- a/bin/build-fixtures.js
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var load = require('./load-style.js');
-var mkdirp = require('mkdirp');
-var path = require('path');
-var fs = require('fs');
-
-var transforms = {
- 'fuzz-colors.min.js': require('./fuzz-colors.js'),
- 'fuzz-functions.min.js': require('./fuzz-functions.js'),
- 'fuzz-layers.min.js': require('./fuzz-layers.js')
-};
-
-var source = load(process.argv[2]);
-var out = process.argv[3];
-mkdirp.sync(out);
-
-Object.keys(transforms).forEach(function(key) {
- source.pipe(transforms[key].call())
- .pipe(fs.createWriteStream(path.join(out, key)));
-});
diff --git a/bin/fuzz-colors.js b/bin/fuzz-colors.js
deleted file mode 100755
index c3a64f9acd..0000000000
--- a/bin/fuzz-colors.js
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var through = require('through2');
-var fuzzer = require('fuzzer');
-fuzzer.seed(0);
-
-module.exports = function() {
- return through.obj(function(chunk, env, callback) {
- var json = JSON.parse(chunk.toString());
-
- json.constants = Object.keys(json.constants).reduce(function(obj, key, index) {
- var value = json.constants[key];
- if (typeof value === 'string') {
- obj[key] = fuzzer.mutate.string(value);
- }
- return obj;
- }, {});
-
- var data = JSON.stringify(json);
- this.push(data);
- callback();
- });
-};
-
-if (!module.parent) process.stdin.pipe(module.exports()).pipe(process.stdout);
diff --git a/bin/fuzz-functions.js b/bin/fuzz-functions.js
deleted file mode 100755
index 68f57a35d4..0000000000
--- a/bin/fuzz-functions.js
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var through = require('through2');
-var fuzzer = require('fuzzer');
-fuzzer.seed(0);
-
-module.exports = function() {
- return through.obj(function(chunk, env, callback) {
- var json = JSON.parse(chunk.toString());
-
- json.constants = Object.keys(json.constants).reduce(function(obj, key, index) {
- var value = json.constants[key];
- if (typeof value === 'object' && value.hasOwnProperty('stops')) {
- var mutator = fuzzer.mutate.object(value);
- obj[key] = mutator();
- }
- return obj;
- }, {});
-
- var data = JSON.stringify(json);
- this.push(data);
- callback();
- });
-};
-
-if (!module.parent) process.stdin.pipe(module.exports()).pipe(process.stdout);
diff --git a/bin/fuzz-layers.js b/bin/fuzz-layers.js
deleted file mode 100755
index 5477757994..0000000000
--- a/bin/fuzz-layers.js
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var through = require('through2');
-var fuzzer = require('fuzzer');
-fuzzer.seed(0);
-
-module.exports = function() {
- return through.obj(function(chunk, env, callback) {
- var json = JSON.parse(chunk.toString());
-
- json.layers.map(function(value) {
- var mutator = fuzzer.mutate.object(value);
- return mutator();
- });
-
- var data = JSON.stringify(json);
- this.push(data);
- callback();
- });
-};
-
-if (!module.parent) process.stdin.pipe(module.exports()).pipe(process.stdout);
diff --git a/bin/load-style.js b/bin/load-style.js
deleted file mode 100755
index 48aa6ecc47..0000000000
--- a/bin/load-style.js
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var fs = require('fs');
-var path = require('path');
-var brfs = require('brfs');
-
-module.exports = function(file) {
- var fromFile = file && file !== '-';
- var rs = fromFile ? fs.createReadStream(file) : process.stdin;
- var fpath = fromFile ? file : path.join(process.cwd(), '-');
- return rs.pipe(brfs(fpath));
-};
-
-if (!module.parent) module.exports(process.argv[2]).pipe(process.stdout);
diff --git a/bin/minify.js b/bin/minify.js
deleted file mode 100755
index 253b340019..0000000000
--- a/bin/minify.js
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var through = require('through2');
-
-module.exports = function() {
- return through.obj(function(chunk, env, callback) {
- var json = JSON.parse(chunk.toString());
- var data = JSON.stringify(json);
- this.push(data);
- callback();
- });
-};
-
-if (!module.parent) process.stdin.pipe(module.exports()).pipe(process.stdout);
diff --git a/bin/mkdirp.js b/bin/mkdirp.js
deleted file mode 100755
index 25b3234ef7..0000000000
--- a/bin/mkdirp.js
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/usr/bin/env node
-'use strict';
-
-var path = require('path');
-var mkdirp = require('mkdirp');
-var fs = require('fs');
-
-module.exports = function(out) {
- mkdirp.sync(path.dirname(out));
- return fs.createWriteStream(out);
-};
-
-if (!module.parent) process.stdin.pipe(module.exports(process.argv[2]));