Package.describe({
  name: 'kriegslustig:altboiler',
  version: '1.3.1',
  summary: ' A non render-blocking alternative to the Meteor-core boilerplate-generator package',
  git: 'https://github.com/Kriegslustig/meteor-altboiler',
  documentation: 'README.md'
});

Package.onUse(function(api) {
  api.versionsFrom('1.1.0.2')
  api.use([
    'underscore',
    'webapp',
    'base64',
    'minifiers',
    'spacebars-compiler'
  ])

  /* Importing all libs */
  api.addFiles(
    [
      'lib/maniUtils.js',
      'lib/boilerUtils.js',
      'lib/staticUtils.js',
    ],
    'server'
  )
  api.addFiles(
    'lib/configUtils.js',
    ['client', 'server']
  )

  /* Importing the main files */
  api.addFiles( 'common.js', ['client', 'server'] )
  api.addFiles( 'client.js', 'client' )
  api.addFiles( 'server.js', 'server' )

  api.addFiles(
    [
      'assets/default.html',
      'assets/fader.js',
      'assets/styles.css',
      'assets/main.html',
      'assets/loader.js'
    ],
    'server',
    {isAsset: true}
  )

  api.export(
    ['altboiler', 'Altboiler', '_altboilerScope'],
    ['client', 'server']
  )
});

Package.onTest(function(api) {
  api.use(['tinytest', 'underscore', 'kriegslustig:altboiler'])
  /* A test-template to test the `Assets` stuff */
  api.addFiles(
    ['tests/assets/testTemplate.html'],
    'server',
    {isAsset: true}
  )
  api.addFiles(
    /* To test that script's scope, I need to manually add it */
    ['assets/loader.js'],
    'server'
  )
  api.addFiles(
    [
      'tests/altboiler.js',
      'tests/loader.js'
    ],
    'server'
  );
  api.export('Altboiler')
});

Package.describe({
  name: 'kriegslustig:altboiler',
  version: '1.3.1',
  summary: ' A non render-blocking alternative to the Meteor-core boilerplate-generator package',
  git: 'https://github.com/Kriegslustig/meteor-altboiler',
  documentation: 'README.md'
});

Package.onUse(function(api) {
  api.versionsFrom('1.1.0.3')
  api.use([
    'underscore',
    'webapp',
    'base64',
    'minifiers',
    'spacebars-compiler'
  ])

  /* Importing all libs */
  api.addFiles(
    [
      'lib/maniUtils.js',
      'lib/boilerUtils.js',
      'lib/staticUtils.js',
    ],
    'server'
  )
  api.addFiles(
    'lib/configUtils.js',
    ['client', 'server']
  )

  /* Importing the main files */
  api.addFiles( 'common.js', ['client', 'server'] )
  api.addFiles( 'client.js', 'client' )
  api.addFiles( 'server.js', 'server' )

  api.addFiles(
    [
      'assets/default.html',
      'assets/fader.js',
      'assets/styles.css',
      'assets/main.html',
      'assets/loader.js'
    ],
    'server',
    {isAsset: true}
  )

  api.export(
    ['altboiler', 'Altboiler', '_altboilerScope'],
    ['client', 'server']
  )
});

Package.onTest(function(api) {
  api.use(['tinytest', 'underscore', 'kriegslustig:altboiler'])
  /* A test-template to test the `Assets` stuff */
  api.addFiles(
    ['tests/assets/testTemplate.html'],
    'server',
    {isAsset: true}
  )
  api.addFiles(
    /* To test that script's scope, I need to manually add it */
    ['assets/loader.js'],
    'server'
  )
  api.addFiles(
    [
      'tests/altboiler.js',
      'tests/loader.js'
    ],
    'server'
  );
  api.export('Altboiler')
});

Update meteor versionsFrom