Sha256: 447e301412fb57f68350d390e3f5f73d680bf554867a9d6bd1da189907a0747b

Contents?: true

Size: 1.52 KB

Versions: 72

Compression:

Stored size: 1.52 KB

Contents

#!/usr/bin/env node

// This should probably be its own module but complaints about bower/etc.
// support keep coming up and I'd rather just enable the workflow here for now
// and figure out where this should live later. -- @beaugunderson

var fs = require('fs');
var _ = require('lodash');

var packageJson = require('../package.json');

var IGNORES = ['**/.*', 'node_modules', 'bower_components', 'test', 'tests'];
var INCLUDES = ['lib/async.js', 'README.md', 'LICENSE'];
var REPOSITORY_NAME = 'caolan/async';

packageJson.jam = {
  main: packageJson.main,
  include: INCLUDES,
  categories: ['Utilities']
};

packageJson.spm = {
  main: packageJson.main
};

packageJson.volo = {
  main: packageJson.main,
  ignore: IGNORES
};

var bowerSpecific = {
  moduleType: ['amd', 'globals', 'node'],
  ignore: IGNORES,
  authors: [packageJson.author]
};

var bowerInclude = ['name', 'description', 'version', 'main', 'keywords',
  'license', 'homepage', 'repository', 'devDependencies'];

var componentSpecific = {
  repository: REPOSITORY_NAME,
  scripts: [packageJson.main]
};

var componentInclude = ['name', 'description', 'version', 'keywords',
  'license'];

var bowerJson = _.merge({}, _.pick(packageJson, bowerInclude), bowerSpecific);
var componentJson = _.merge({}, _.pick(packageJson, componentInclude), componentSpecific);

fs.writeFileSync('./bower.json', JSON.stringify(bowerJson, null, 2));
fs.writeFileSync('./component.json', JSON.stringify(componentJson, null, 2));
fs.writeFileSync('./package.json', JSON.stringify(packageJson, null, 2));

Version data entries

72 entries across 69 versions & 3 rubygems

Version Path
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.6 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.5 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js
trusty-festivity-extension-2.5.4 node_modules/bower/node_modules/request/node_modules/form-data/node_modules/async/support/sync-package-managers.js