Sha256: 693faffd41849c3af17242bdb44199266961de8ee16f3de739c189fb94b08302

Contents?: true

Size: 1.21 KB

Versions: 205

Compression:

Stored size: 1.21 KB

Contents

/* jshint node:true */

'use strict';

var fs = require('fs');
var path = require('path');

module.exports = function() {
  var wiredep = require('wiredep');

  var bower_dependencies = wiredep({ cwd: __dirname });

  var js_dependencies = []
    .concat(bower_dependencies.packages['jquery'].main)
    .concat(bower_dependencies.packages['jquery-ui'].main)
    .map(function(p) {
      return p.replace(path.join(__dirname, '/'), '');
    });

  var css_dependencies = [
    'bower_components/jquery-ui/themes/smoothness/jquery-ui.css'
  ];

  function putThemInVendorDir (filepath) {
    return 'vendor/' + path.basename(filepath);
  }

  return {
    humaName : 'UI.Sortable',
    repoName : 'ui-sortable',
    inlineHTML : fs.readFileSync(__dirname + '/demo/demo.html'),
    inlineJS : fs.readFileSync(__dirname + '/demo/demo.js'),
    css: css_dependencies.map(putThemInVendorDir).concat(['demo/demo.css']),
    js : function(defaultJsFiles){
      // HACK TO LOAD JQUERY BEFORE ANGULAR
      return ['vendor/jquery.js'].concat(defaultJsFiles, js_dependencies.slice(1).map(putThemInVendorDir).concat(['dist/sortable.js']));
    },
    bowerData: { main : './sortable.js' },
    tocopy : css_dependencies.concat(js_dependencies)
  };
};

Version data entries

205 entries across 205 versions & 1 rubygems

Version Path
promethee-5.1.1 node_modules/angular-ui-sortable/publish.js
promethee-5.1.0 node_modules/angular-ui-sortable/publish.js
promethee-5.0.2 node_modules/angular-ui-sortable/publish.js
promethee-5.0.1 node_modules/angular-ui-sortable/publish.js
promethee-5.0.0 node_modules/angular-ui-sortable/publish.js
promethee-4.1.28 node_modules/angular-ui-sortable/publish.js
promethee-4.1.27 node_modules/angular-ui-sortable/publish.js
promethee-4.1.26 node_modules/angular-ui-sortable/publish.js
promethee-4.1.25 node_modules/angular-ui-sortable/publish.js
promethee-4.1.24 node_modules/angular-ui-sortable/publish.js
promethee-4.1.23 node_modules/angular-ui-sortable/publish.js
promethee-4.1.22 node_modules/angular-ui-sortable/publish.js
promethee-4.1.21 node_modules/angular-ui-sortable/publish.js
promethee-4.1.20 node_modules/angular-ui-sortable/publish.js
promethee-4.1.19 node_modules/angular-ui-sortable/publish.js
promethee-4.1.18 node_modules/angular-ui-sortable/publish.js
promethee-4.1.17 node_modules/angular-ui-sortable/publish.js
promethee-4.1.16 node_modules/angular-ui-sortable/publish.js
promethee-4.1.15 node_modules/angular-ui-sortable/publish.js
promethee-4.1.14 node_modules/angular-ui-sortable/publish.js