Sha256: a17629e70bccee31624f21a777c3eae71c38ee5602854c4f19dc364f410193c8

Contents?: true

Size: 1.52 KB

Versions: 61

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', 'main'];

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

61 entries across 61 versions & 3 rubygems

Version Path
passenger-6.0.23 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.20 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.19 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.18 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.17 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.16 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.15 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.14 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.13 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.12 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.11 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.10 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.9 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.8 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.7 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.6 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.5 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.4 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.3 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js
passenger-6.0.2 src/nodejs_supportlib/vendor-copy/winston/node_modules/async/support/sync-package-managers.js