Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 136 lines (123 sloc) 6.019 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
module.exports =
  knockback_page_navigator_panes:
    join: 'knockback-page-navigator-panes.js'
    wrapper: 'src/knockback-page-navigator-panes/module-loader.js'
    compress: true
    files: [
      'src/component-imports.coffee'
      'src/knockback-page-navigator-panes/knockback-page-navigator-panes.coffee'
      'src/knockback-page-navigator-panes/knockout-bindings.coffee'

      # bundle with pane navigator
      'src/knockback-pane-navigator/knockback-pane-navigator.coffee'
      'src/knockback-pane-navigator/knockback-pane-navigator-helpers.coffee'
      'src/knockback-pane-navigator/knockout-bindings.coffee'
      'src/shared/knockback-page-navigator-helpers.coffee'
      'src/shared/knockback-pane.coffee'
    ]

  knockback_page_navigator_simple:
    join: 'knockback-page-navigator-simple.js'
    wrapper: 'src/knockback-page-navigator-simple/module-loader.js'
    compress: true
    files: [
      'src/component-imports.coffee'
      'src/knockback-page-navigator-simple/knockback-page-navigator-simple.coffee'
      'src/knockback-page-navigator-simple/knockout-bindings.coffee'
      'src/shared/knockback-page-navigator-helpers.coffee'
      'src/shared/knockback-pane.coffee'
    ]

  knockback_pane_navigator:
    join: 'knockback-pane-navigator.js'
    wrapper: 'src/knockback-pane-navigator/module-loader.js'
    compress: true
    files: [
      'src/component-imports.coffee'
      'src/knockback-pane-navigator/knockback-pane-navigator.coffee'
      'src/knockback-pane-navigator/knockback-pane-navigator-helpers.coffee'
      'src/knockback-pane-navigator/knockout-bindings.coffee'
      'src/shared/knockback-pane.coffee'
    ]

  knockback_transitions:
    join: 'knockback-transitions.js'
    wrapper: 'src/knockback-transitions/module-loader.js'
    compress: true
    files: [
      'src/knockback-transitions/component-imports.coffee'
      'src/knockback-transitions/transition-helpers.coffee'
      'src/knockback-transitions/transition-saved-state.coffee'
      'src/knockback-transitions/css-transition-slide-up.coffee'
      'src/knockback-transitions/css-transition-fade-in.coffee'
      'src/knockback-transitions/css-transition-slide.coffee'
      'src/knockback-transitions/fallback-transition-helpers.coffee'
      'src/knockback-transitions/fallback-transition-slide-up.coffee'
      'src/knockback-transitions/fallback-transition-fade-in.coffee'
      'src/knockback-transitions/fallback-transition-slide.coffee'
    ]

  knockback_navigators_css:
    commands: [
      'stylus --use nib --out . src/knockback-transitions/knockback-transitions.styl'
    ]

  publishing:
    _build:
      commands: [
        # create docs
        'codo src'

        # npm
        'cp README.md packages/npm/README.md'

        'cp knockback-navigators.css packages/npm/knockback-navigators.css'
        'cp knockback-page-navigator-panes.js packages/npm/knockback-page-navigator-panes.js'
        'cp knockback-page-navigator-panes.min.js packages/npm/knockback-page-navigator-panes.min.js'
        'cp knockback-page-navigator-simple.js packages/npm/knockback-page-navigator-simple.js'
        'cp knockback-page-navigator-simple.min.js packages/npm/knockback-page-navigator-simple.min.js'
        'cp knockback-pane-navigator.js packages/npm/knockback-pane-navigator.js'
        'cp knockback-pane-navigator.min.js packages/npm/knockback-pane-navigator.min.js'
        'cp knockback-transitions.js packages/npm/knockback-transitions.js'
        'cp knockback-transitions.min.js packages/npm/knockback-transitions.min.js'
        'cp knockback-transitions.css packages/npm/knockback-transitions.css'

        # nuget
        'cp knockback-navigators.css packages/nuget/Content/Scripts/knockback-navigators.css'
        'cp knockback-page-navigator-panes.js packages/nuget/Content/Scripts/knockback-page-navigator-panes.js'
        'cp knockback-page-navigator-panes.min.js packages/nuget/Content/Scripts/knockback-page-navigator-panes.min.js'
        'cp knockback-page-navigator-simple.js packages/nuget/Content/Scripts/knockback-page-navigator-simple.js'
        'cp knockback-page-navigator-simple.min.js packages/nuget/Content/Scripts/knockback-page-navigator-simple.min.js'
        'cp knockback-pane-navigator.js packages/nuget/Content/Scripts/knockback-pane-navigator.js'
        'cp knockback-pane-navigator.min.js packages/nuget/Content/Scripts/knockback-pane-navigator.min.js'
        'cp knockback-transitions.js packages/nuget/Content/Scripts/knockback-transitions.js'
        'cp knockback-transitions.min.js packages/nuget/Content/Scripts/knockback-transitions.min.js'
        'cp knockback-transitions.css packages/nuget/Content/Scripts/knockback-transitions.css'
      ]

  tests:
    _build:
      output: 'build'
      directories: [
        'test/knockback-page-navigator-panes'
        'test/knockback-page-navigator-simple'
        'test/knockback-pane-navigator'
      ]
      commands: [
        'mbundle test/packaging/bundle-config.coffee'
      ]
    _test:
      command: 'phantomjs'
      runner: 'phantomjs-qunit-runner.js'
      files: '**/*.html'
      directories: [
        'test/knockback-page-navigator-panes'
        'test/knockback-page-navigator-simple'
        'test/knockback-pane-navigator'
        'test/packaging'
      ]

  _postinstall:
    commands: [
      # tests
      'cp -v knockback/knockback-core-stack.js vendor/knockback-core-stack.js'

      # examples
      'cp -v knockback/knockback-core-stack.js examples/vendor/knockback-core-stack.js'
      'cp -v knockout/build/output/knockout-latest.debug.js vendor/knockout.js'
      'cp -v backbone examples/vendor/backbone/backbone.js'
      'cp -v underscore examples/vendor/backbone/underscore.js'

      # amd tests
      'cp -v underscore vendor/test/underscore.js'
      'cp -v backbone vendor/test/backbone.js'
      'cp -v knockout/build/output/knockout-latest.debug.js vendor/test/knockout.js'
      'cp -v knockback/knockback-core.js vendor/test/knockback-core.js'
    ]
Something went wrong with that request. Please try again.