From b54df0ddd0c6a0372327c5aa3668e5a6458fcd64 Mon Sep 17 00:00:00 2001 From: st782s Date: Thu, 4 May 2017 07:48:42 -0400 Subject: [PORTAL-7] Rebase This rebasing includes common libraries and common overlays projects abstraction of components Change-Id: I9a24a338665c7cd058978e8636bc412d9e2fdce8 Signed-off-by: st782s --- .../bower_components/lodash/lib/common/file.js | 71 ------- .../bower_components/lodash/lib/common/mapping.js | 9 - .../bower_components/lodash/lib/common/minify.js | 39 ---- .../lodash/lib/common/uglify.options.js | 23 --- .../bower_components/lodash/lib/common/util.js | 27 --- .../bower_components/lodash/lib/fp/build-dist.js | 55 ----- .../bower_components/lodash/lib/fp/build-doc.js | 65 ------ .../lodash/lib/fp/build-modules.js | 120 ----------- .../lodash/lib/fp/template/doc/wiki.jst | 227 --------------------- .../lib/fp/template/modules/_falseOptions.jst | 7 - .../lodash/lib/fp/template/modules/_util.jst | 14 -- .../lodash/lib/fp/template/modules/alias.jst | 1 - .../lodash/lib/fp/template/modules/category.jst | 2 - .../lodash/lib/fp/template/modules/convert.jst | 18 -- .../lodash/lib/fp/template/modules/fp.jst | 2 - .../lodash/lib/fp/template/modules/module.jst | 5 - .../lodash/lib/fp/template/modules/thru.jst | 5 - .../bower_components/lodash/lib/main/build-dist.js | 30 --- .../bower_components/lodash/lib/main/build-doc.js | 55 ----- .../lodash/lib/main/build-modules.js | 34 --- 20 files changed, 809 deletions(-) delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/common/file.js delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/common/mapping.js delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/common/minify.js delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/common/uglify.options.js delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/common/util.js delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-dist.js delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-doc.js delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-modules.js delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/doc/wiki.jst delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_falseOptions.jst delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_util.jst delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/alias.jst delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/category.jst delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/convert.jst delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/fp.jst delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/module.jst delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/thru.jst delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/main/build-doc.js delete mode 100644 ecomp-portal-FE/client/bower_components/lodash/lib/main/build-modules.js (limited to 'ecomp-portal-FE/client/bower_components/lodash/lib') diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/common/file.js b/ecomp-portal-FE/client/bower_components/lodash/lib/common/file.js deleted file mode 100644 index 9f9016fb..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/common/file.js +++ /dev/null @@ -1,71 +0,0 @@ -'use strict'; - -var _ = require('lodash'), - fs = require('fs-extra'), - glob = require('glob'), - path = require('path'); - -var minify = require('../common/minify.js'); - -/*----------------------------------------------------------------------------*/ - -/** - * Creates a [fs.copy](https://github.com/jprichardson/node-fs-extra#copy) - * function with `srcPath` and `destPath` partially applied. - * - * @memberOf file - * @param {string} srcPath The path of the file to copy. - * @param {string} destPath The path to copy the file to. - * @returns {Function} Returns the partially applied function. - */ -function copy(srcPath, destPath) { - return _.partial(fs.copy, srcPath, destPath); -} - -/** - * Creates an object of compiled template and base name pairs that match `pattern`. - * - * @memberOf file - * @param {string} pattern The glob pattern to be match. - * @returns {Object} Returns the object of compiled templates. - */ -function globTemplate(pattern) { - return _.transform(glob.sync(pattern), function(result, filePath) { - var key = path.basename(filePath, path.extname(filePath)); - result[key] = _.template(fs.readFileSync(filePath, 'utf8')); - }, {}); -} - -/** - * Creates a `minify` function with `srcPath` and `destPath` partially applied. - * - * @memberOf file - * @param {string} srcPath The path of the file to minify. - * @param {string} destPath The path to write the file to. - * @returns {Function} Returns the partially applied function. - */ -function min(srcPath, destPath) { - return _.partial(minify, srcPath, destPath); -} - -/** - * Creates a [fs.writeFile](https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback) - * function with `filePath` and `data` partially applied. - * - * @memberOf file - * @param {string} destPath The path to write the file to. - * @param {string} data The data to write to the file. - * @returns {Function} Returns the partially applied function. - */ -function write(destPath, data) { - return _.partial(fs.writeFile, destPath, data); -} - -/*----------------------------------------------------------------------------*/ - -module.exports = { - 'copy': copy, - 'globTemplate': globTemplate, - 'min': min, - 'write': write -}; diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/common/mapping.js b/ecomp-portal-FE/client/bower_components/lodash/lib/common/mapping.js deleted file mode 100644 index 332f5afd..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/common/mapping.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -var _mapping = require('../../fp/_mapping'), - util = require('./util'), - Hash = util.Hash; - -/*----------------------------------------------------------------------------*/ - -module.exports = new Hash(_mapping); diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/common/minify.js b/ecomp-portal-FE/client/bower_components/lodash/lib/common/minify.js deleted file mode 100644 index 7a0082d3..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/common/minify.js +++ /dev/null @@ -1,39 +0,0 @@ -'use strict'; - -var _ = require('lodash'), - fs = require('fs-extra'), - uglify = require('uglify-js'); - -var uglifyOptions = require('./uglify.options'); - -/*----------------------------------------------------------------------------*/ - -/** - * Asynchronously minifies the file at `srcPath`, writes it to `destPath`, and - * invokes `callback` upon completion. The callback is invoked with one argument: - * (error). - * - * If unspecified, `destPath` is `srcPath` with an extension of `.min.js`. For - * example, a `srcPath` of `path/to/foo.js` would have a `destPath` of `path/to/foo.min.js`. - * - * @param {string} srcPath The path of the file to minify. - * @param {string} [destPath] The path to write the file to. - * @param {Function} callback The function invoked upon completion. - * @param {Object} [option] The UglifyJS options object. - */ -function minify(srcPath, destPath, callback, options) { - if (_.isFunction(destPath)) { - if (_.isObject(callback)) { - options = callback; - } - callback = destPath; - destPath = undefined; - } - if (!destPath) { - destPath = srcPath.replace(/(?=\.js$)/, '.min'); - } - var output = uglify.minify(srcPath, _.defaults(options || {}, uglifyOptions)); - fs.writeFile(destPath, output.code, 'utf-8', callback); -} - -module.exports = minify; diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/common/uglify.options.js b/ecomp-portal-FE/client/bower_components/lodash/lib/common/uglify.options.js deleted file mode 100644 index af0ff436..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/common/uglify.options.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -/** - * The UglifyJS options object for - * [compress](https://github.com/mishoo/UglifyJS2#compressor-options), - * [mangle](https://github.com/mishoo/UglifyJS2#mangler-options), and - * [output](https://github.com/mishoo/UglifyJS2#beautifier-options) options. - */ -module.exports = { - 'compress': { - 'pure_getters': true, - 'unsafe': true, - 'warnings': false - }, - 'mangle': { - 'except': ['define'] - }, - 'output': { - 'ascii_only': true, - 'comments': /^!|@cc_on|@license|@preserve/i, - 'max_line_len': 500 - } -}; diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/common/util.js b/ecomp-portal-FE/client/bower_components/lodash/lib/common/util.js deleted file mode 100644 index 64451862..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/common/util.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; - -var _ = require('lodash'); - -/*----------------------------------------------------------------------------*/ - -/** - * Creates a hash object. If a `properties` object is provided, its own - * enumerable properties are assigned to the created object. - * - * @memberOf util - * @param {Object} [properties] The properties to assign to the object. - * @returns {Object} Returns the new hash object. - */ -function Hash(properties) { - return _.transform(properties, function(result, value, key) { - result[key] = (_.isPlainObject(value) && !(value instanceof Hash)) - ? new Hash(value) - : value; - }, this); -} - -Hash.prototype = Object.create(null); - -module.exports = { - 'Hash': Hash -}; diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-dist.js b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-dist.js deleted file mode 100644 index bad62d2e..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-dist.js +++ /dev/null @@ -1,55 +0,0 @@ -'use strict'; - -var _ = require('lodash'), - async = require('async'), - path = require('path'), - webpack = require('webpack'); - -var file = require('../common/file'); - -var basePath = path.join(__dirname, '..', '..'), - distPath = path.join(basePath, 'dist'), - fpPath = path.join(basePath, 'fp'), - filename = 'lodash.fp.js'; - -var fpConfig = { - 'entry': path.join(fpPath, '_convertBrowser.js'), - 'output': { - 'path': distPath, - 'filename': filename, - 'library': 'fp', - 'libraryTarget': 'umd' - }, - 'plugins': [ - new webpack.optimize.OccurenceOrderPlugin, - new webpack.optimize.DedupePlugin - ] -}; - -var mappingConfig = { - 'entry': path.join(fpPath, '_mapping.js'), - 'output': { - 'path': distPath, - 'filename': 'mapping.fp.js', - 'library': 'mapping', - 'libraryTarget': 'umd' - } -}; - -/*----------------------------------------------------------------------------*/ - -function onComplete(error) { - if (error) { - throw error; - } -} - -function build() { - async.series([ - _.partial(webpack, mappingConfig), - _.partial(webpack, fpConfig), - file.min(path.join(distPath, filename)) - ], onComplete); -} - -build(); diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-doc.js b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-doc.js deleted file mode 100644 index 02800bcf..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-doc.js +++ /dev/null @@ -1,65 +0,0 @@ -'use strict'; - -var _ = require('lodash'), - fs = require('fs-extra'), - path = require('path'); - -var file = require('../common/file'), - mapping = require('../common/mapping'); - -var templatePath = path.join(__dirname, 'template/doc'), - template = file.globTemplate(path.join(templatePath, '*.jst')); - -var argNames = ['a', 'b', 'c', 'd']; - -var templateData = { - 'mapping': mapping, - 'toArgOrder': toArgOrder, - 'toFuncList': toFuncList -}; - -function toArgOrder(array) { - var reordered = []; - _.each(array, function(newIndex, index) { - reordered[newIndex] = argNames[index]; - }); - return '`(' + reordered.join(', ') + ')`'; -} - -function toFuncList(array) { - var chunks = _.chunk(array.slice().sort(), 5), - lastChunk = _.last(chunks), - last = lastChunk ? lastChunk.pop() : undefined; - - chunks = _.reject(chunks, _.isEmpty); - lastChunk = _.last(chunks); - - var result = '`' + _.map(chunks, function(chunk) { - return chunk.join('`, `') + '`'; - }).join(',\n`'); - - if (last == null) { - return result; - } - if (_.size(chunks) > 1 || _.size(lastChunk) > 1) { - result += ','; - } - result += ' &'; - result += _.size(lastChunk) < 5 ? ' ' : '\n'; - return result + '`' + last + '`'; -} - -/*----------------------------------------------------------------------------*/ - -function onComplete(error) { - if (error) { - throw error; - } -} - -function build(target) { - target = path.resolve(target); - fs.writeFile(target, template.wiki(templateData), onComplete); -} - -build(_.last(process.argv)); diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-modules.js b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-modules.js deleted file mode 100644 index 43902e01..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/build-modules.js +++ /dev/null @@ -1,120 +0,0 @@ -'use strict'; - -var _ = require('lodash'), - async = require('async'), - glob = require('glob'), - path = require('path'); - -var file = require('../common/file'), - mapping = require('../common/mapping'); - -var templatePath = path.join(__dirname, 'template/modules'), - template = file.globTemplate(path.join(templatePath, '*.jst')); - -var aryMethods = _.union( - mapping.aryMethod[1], - mapping.aryMethod[2], - mapping.aryMethod[3], - mapping.aryMethod[4] -); - -var categories = [ - 'array', - 'collection', - 'date', - 'function', - 'lang', - 'math', - 'number', - 'object', - 'seq', - 'string', - 'util' -]; - -var ignored = [ - '_*.js', - 'core.js', - 'core.min.js', - 'fp.js', - 'index.js', - 'lodash.js', - 'lodash.min.js' -]; - -function isAlias(funcName) { - return _.has(mapping.aliasToReal, funcName); -} - -function isCategory(funcName) { - return _.includes(categories, funcName); -} - -function isThru(funcName) { - return !_.includes(aryMethods, funcName); -} - -function getTemplate(moduleName) { - var data = { - 'name': _.result(mapping.aliasToReal, moduleName, moduleName), - 'mapping': mapping - }; - - if (isAlias(moduleName)) { - return template.alias(data); - } - if (isCategory(moduleName)) { - return template.category(data); - } - if (isThru(moduleName)) { - return template.thru(data); - } - return template.module(data); -} - -/*----------------------------------------------------------------------------*/ - -function onComplete(error) { - if (error) { - throw error; - } -} - -function build(target) { - target = path.resolve(target); - - var fpPath = path.join(target, 'fp'); - - // Glob existing lodash module paths. - var modulePaths = glob.sync(path.join(target, '*.js'), { - 'nodir': true, - 'ignore': ignored.map(function(filename) { - return path.join(target, filename); - }) - }); - - // Add FP alias and remapped module paths. - _.each([mapping.aliasToReal, mapping.remap], function(data) { - _.forOwn(data, function(realName, alias) { - var modulePath = path.join(target, alias + '.js'); - if (!_.includes(modulePaths, modulePath)) { - modulePaths.push(modulePath); - } - }); - }); - - var actions = modulePaths.map(function(modulePath) { - var moduleName = path.basename(modulePath, '.js'); - return file.write(path.join(fpPath, moduleName + '.js'), getTemplate(moduleName)); - }); - - actions.unshift(file.copy(path.join(__dirname, '../../fp'), fpPath)); - actions.push(file.write(path.join(fpPath, '_falseOptions.js'), template._falseOptions())); - actions.push(file.write(path.join(fpPath, '_util.js'), template._util())); - actions.push(file.write(path.join(target, 'fp.js'), template.fp())); - actions.push(file.write(path.join(fpPath, 'convert.js'), template.convert())); - - async.series(actions, onComplete); -} - -build(_.last(process.argv)); diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/doc/wiki.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/doc/wiki.jst deleted file mode 100644 index 7a429ab1..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/doc/wiki.jst +++ /dev/null @@ -1,227 +0,0 @@ -## lodash/fp - -The `lodash/fp` module promotes a more -[functional programming](https://en.wikipedia.org/wiki/Functional_programming) -(FP) friendly style by exporting an instance of `lodash` with its methods wrapped -to produce immutable auto-curried iteratee-first data-last methods. - -## Installation - -In a browser: -```html - - - -``` - -In Node.js: -```js -// Load the fp build. -var fp = require('lodash/fp'); - -// Load a method category. -var object = require('lodash/fp/object'); - -// Load a single method for smaller builds with browserify/rollup/webpack. -var extend = require('lodash/fp/extend'); -``` - -## Mapping - -Immutable auto-curried iteratee-first data-last methods sound great, but what -does that really mean for each method? Below is a breakdown of the mapping used -to convert each method. - -#### Capped Iteratee Arguments - -Iteratee arguments are capped to avoid gotchas with variadic iteratees. -```js -// The `lodash/map` iteratee receives three arguments: -// (value, index|key, collection) -_.map(['6', '8', '10'], parseInt); -// → [6, NaN, 2] - -// The `lodash/fp/map` iteratee is capped at one argument: -// (value) -fp.map(parseInt)(['6', '8', '10']); -// → [6, 8, 10] -``` - -Methods that cap iteratees to one argument:
-<%= toFuncList(_.keys(_.pickBy(mapping.iterateeAry, _.partial(_.eq, _, 1)))) %> - -Methods that cap iteratees to two arguments:
-<%= toFuncList(_.keys(_.pickBy(mapping.iterateeAry, _.partial(_.eq, _, 2)))) %> - -The iteratee of `mapKeys` is invoked with one argument: (key) - -#### Fixed Arity - -Methods have fixed arities to support auto-currying. -```js -// `lodash/padStart` accepts an optional `chars` param. -_.padStart('a', 3, '-') -// → '--a' - -// `lodash/fp/padStart` does not. -fp.padStart(3)('a'); -// → ' a' -fp.padCharsStart('-')(3)('a'); -// → '--a' -``` - -Methods with a fixed arity of one:
-<%= toFuncList(_.difference(mapping.aryMethod[1], _.keys(mapping.skipFixed))) %> - -Methods with a fixed arity of two:
-<%= toFuncList(_.difference(mapping.aryMethod[2], _.keys(mapping.skipFixed))) %> - -Methods with a fixed arity of three:
-<%= toFuncList(_.difference(mapping.aryMethod[3], _.keys(mapping.skipFixed))) %> - -Methods with a fixed arity of four:
-<%= toFuncList(_.difference(mapping.aryMethod[4], _.keys(mapping.skipFixed))) %> - -#### Rearranged Arguments - -Method arguments are rearranged to make composition easier. -```js -// `lodash/filter` is data-first iteratee-last: -// (collection, iteratee) -var compact = _.partial(_.filter, _, Boolean); -compact(['a', null, 'c']); -// → ['a', 'c'] - -// `lodash/fp/filter` is iteratee-first data-last: -// (iteratee, collection) -var compact = fp.filter(Boolean); -compact(['a', null, 'c']); -// → ['a', 'c'] -``` - -##### Most methods follow these rules - -A fixed arity of two has an argument order of:
-<%= toArgOrder(mapping.aryRearg[2]) %> - -A fixed arity of three has an argument order of:
-<%= toArgOrder(mapping.aryRearg[3]) %> - -A fixed arity of four has an argument order of:
-<%= toArgOrder(mapping.aryRearg[4]) %> - -##### Exceptions to the rules - -Methods that accept an array of arguments as their second parameter:
-<%= toFuncList(_.keys(mapping.methodSpread)) %> - -Methods with unchanged argument orders:
-<%= toFuncList(_.keys(mapping.skipRearg)) %> - -Methods with custom argument orders:
-<%= _.map(_.keys(mapping.methodRearg), function(methodName) { - var orders = mapping.methodRearg[methodName]; - return ' * `_.' + methodName + '` has an order of ' + toArgOrder(orders); -}).join('\n') %> - -#### New Methods - -Not all variadic methods have corresponding new method variants. Feel free to -[request](https://github.com/lodash/lodash/blob/master/.github/CONTRIBUTING.md#feature-requests) -any additions. - -Methods created to accommodate Lodash’s variadic methods:
-<%= toFuncList(_.keys(mapping.remap)) %> - -#### Aliases - -There are <%= _.size(mapping.aliasToReal) %> method aliases:
-<%= _.map(_.keys(mapping.aliasToReal).sort(), function(alias) { - var realName = mapping.aliasToReal[alias]; - return ' * `_.' + alias + '` is an alias of `_.' + realName + '`'; -}).join('\n') %> - -## Placeholders - -The placeholder argument, which defaults to `_`, may be used to fill in method -arguments in a different order. Placeholders are filled by the first available -arguments of the curried returned function. -```js -// The equivalent of `2 > 5`. -_.gt(2)(5); -// → false - -// The equivalent of `_.gt(5, 2)` or `5 > 2`. -_.gt(_, 2)(5); -// → true -``` - -## Chaining - -The `lodash/fp` module **does not** convert chain sequence methods. See -[Izaak Schroeder’s article](https://medium.com/making-internets/why-using-chain-is-a-mistake-9bc1f80d51ba) -on using functional composition as an alternative to method chaining. - -## Convert - -Although `lodash/fp` & its method modules come pre-converted, there are times -when you may want to customize the conversion. That’s when the `convert` method -comes in handy. -```js -// Every option is `true` by default. -var _fp = fp.convert({ - // Specify capping iteratee arguments. - 'cap': true, - // Specify currying. - 'curry': true, - // Specify fixed arity. - 'fixed': true, - // Specify immutable operations. - 'immutable': true, - // Specify rearranging arguments. - 'rearg': true -}); - -// The `convert` method is available on each method too. -var mapValuesWithKey = fp.mapValues.convert({ 'cap': false }); - -// Here’s an example of disabling iteratee argument caps to access the `key` param. -mapValuesWithKey(function(value, key) { - return key == 'a' ? -1 : value; -})({ 'a': 1, 'b': 1 }); -// => { 'a': -1, 'b': 1 } -``` - -Manual conversions are also possible with the `convert` module. -```js -var convert = require('lodash/fp/convert'); - -// Convert by name. -var assign = convert('assign', require('lodash.assign')); - -// Convert by object. -var fp = convert({ - 'assign': require('lodash.assign'), - 'chunk': require('lodash.chunk') -}); - -// Convert by `lodash` instance. -var fp = convert(lodash.runInContext()); -``` - -## Tooling - -Use [eslint-plugin-lodash-fp](https://www.npmjs.com/package/eslint-plugin-lodash-fp) -to help use `lodash/fp` more efficiently. diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_falseOptions.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_falseOptions.jst deleted file mode 100644 index 773235e3..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_falseOptions.jst +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = { - 'cap': false, - 'curry': false, - 'fixed': false, - 'immutable': false, - 'rearg': false -}; diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_util.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_util.jst deleted file mode 100644 index d450396f..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/_util.jst +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = { - 'ary': require('../ary'), - 'assign': require('../_baseAssign'), - 'clone': require('../clone'), - 'curry': require('../curry'), - 'forEach': require('../_arrayEach'), - 'isArray': require('../isArray'), - 'isFunction': require('../isFunction'), - 'iteratee': require('../iteratee'), - 'keys': require('../_baseKeys'), - 'rearg': require('../rearg'), - 'spread': require('../spread'), - 'toPath': require('../toPath') -}; diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/alias.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/alias.jst deleted file mode 100644 index 6d72710a..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/alias.jst +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./<%= name %>'); diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/category.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/category.jst deleted file mode 100644 index 62c2db8a..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/category.jst +++ /dev/null @@ -1,2 +0,0 @@ -var convert = require('./convert'); -module.exports = convert(require('../<%= name %>')); diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/convert.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/convert.jst deleted file mode 100644 index 4795dc42..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/convert.jst +++ /dev/null @@ -1,18 +0,0 @@ -var baseConvert = require('./_baseConvert'), - util = require('./_util'); - -/** - * Converts `func` of `name` to an immutable auto-curried iteratee-first data-last - * version with conversion `options` applied. If `name` is an object its methods - * will be converted. - * - * @param {string} name The name of the function to wrap. - * @param {Function} [func] The function to wrap. - * @param {Object} [options] The options object. See `baseConvert` for more details. - * @returns {Function|Object} Returns the converted function or object. - */ -function convert(name, func, options) { - return baseConvert(util, name, func, options); -} - -module.exports = convert; diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/fp.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/fp.jst deleted file mode 100644 index e372dbbd..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/fp.jst +++ /dev/null @@ -1,2 +0,0 @@ -var _ = require('./lodash.min').runInContext(); -module.exports = require('./fp/_baseConvert')(_, _); diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/module.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/module.jst deleted file mode 100644 index 289bd2b6..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/module.jst +++ /dev/null @@ -1,5 +0,0 @@ -var convert = require('./convert'), - func = convert('<%= name %>', require('../<%= _.result(mapping.remap, name, name) %>')); - -func.placeholder = require('./placeholder'); -module.exports = func; diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/thru.jst b/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/thru.jst deleted file mode 100644 index 5bc1a7b0..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/fp/template/modules/thru.jst +++ /dev/null @@ -1,5 +0,0 @@ -var convert = require('./convert'), - func = convert('<%= name %>', require('../<%= _.result(mapping.remap, name, name) %>'), require('./_falseOptions')); - -func.placeholder = require('./placeholder'); -module.exports = func; diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js b/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js deleted file mode 100644 index 14b3fd3c..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-dist.js +++ /dev/null @@ -1,30 +0,0 @@ -'use strict'; - -var async = require('async'), - path = require('path'); - -var file = require('../common/file'); - -var basePath = path.join(__dirname, '..', '..'), - distPath = path.join(basePath, 'dist'), - filename = 'lodash.js'; - -var baseLodash = path.join(basePath, filename), - distLodash = path.join(distPath, filename); - -/*----------------------------------------------------------------------------*/ - -function onComplete(error) { - if (error) { - throw error; - } -} - -function build() { - async.series([ - file.copy(baseLodash, distLodash), - file.min(distLodash) - ], onComplete); -} - -build(); diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-doc.js b/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-doc.js deleted file mode 100644 index 6c5f22b5..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-doc.js +++ /dev/null @@ -1,55 +0,0 @@ -'use strict'; - -var _ = require('lodash'), - docdown = require('docdown'), - fs = require('fs-extra'), - path = require('path'); - -var basePath = path.join(__dirname, '..', '..'), - docPath = path.join(basePath, 'doc'), - readmePath = path.join(docPath, 'README.md'); - -var pkg = require('../../package.json'), - version = pkg.version; - -var config = { - 'base': { - 'entryLinks': [ - '<% if (name == "templateSettings" || !/^(?:methods|properties|seq)$/i.test(category)) {' + - 'print("[Ⓝ](https://www.npmjs.com/package/lodash." + name.toLowerCase() + " \\"See the npm package\\")")' + - '} %>' - ], - 'path': path.join(basePath, 'lodash.js'), - 'title': 'lodash v' + version + '', - 'toc': 'categories', - 'url': 'https://github.com/lodash/lodash/blob/' + version + '/lodash.js' - }, - 'github': { - 'hash': 'github' - }, - 'site': { - 'tocLink': '#docs' - } -}; - -function postprocess(string) { - // Wrap symbol property identifiers in brackets. - return string.replace(/\.(Symbol\.(?:[a-z]+[A-Z]?)+)/g, '[$1]'); -} - -/*----------------------------------------------------------------------------*/ - -function onComplete(error) { - if (error) { - throw error; - } -} - -function build(type) { - var options = _.defaults({}, config.base, config[type]), - markdown = docdown(options); - - fs.writeFile(readmePath, postprocess(markdown), onComplete); -} - -build(_.last(process.argv)); diff --git a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-modules.js b/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-modules.js deleted file mode 100644 index 5d89e0dc..00000000 --- a/ecomp-portal-FE/client/bower_components/lodash/lib/main/build-modules.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; - -var _ = require('lodash'), - async = require('async'), - path = require('path'); - -var file = require('../common/file'); - -var basePath = path.join(__dirname, '..', '..'), - distPath = path.join(basePath, 'dist'); - -var filePairs = [ - [path.join(distPath, 'lodash.core.js'), 'core.js'], - [path.join(distPath, 'lodash.core.min.js'), 'core.min.js'], - [path.join(distPath, 'lodash.min.js'), 'lodash.min.js'] -]; - -/*----------------------------------------------------------------------------*/ - -function onComplete(error) { - if (error) { - throw error; - } -} - -function build(target) { - var actions = _.map(filePairs, function(pair) { - return file.copy(pair[0], path.join(target, pair[1])); - }); - - async.series(actions, onComplete); -} - -build(_.last(process.argv)); -- cgit 1.2.3-korg