Neues Initialrelease mit IonicMaterial
This commit is contained in:
36
www/lib/ngCordova/config/build.config.js
Normal file
36
www/lib/ngCordova/config/build.config.js
Normal file
@@ -0,0 +1,36 @@
|
||||
var fs = require('fs');
|
||||
var pkg = require('../package.json');
|
||||
|
||||
module.exports = {
|
||||
banner: '/*!\n' +
|
||||
' * ngCordova\n' +
|
||||
' * v' + pkg.version +'\n' +
|
||||
' * Copyright 2015 Drifty Co. http://drifty.com/\n' +
|
||||
' * See LICENSE in this repository for license information\n' +
|
||||
' */\n',
|
||||
|
||||
closureStart: '(function(){\n',
|
||||
closureEnd: '\n})();',
|
||||
|
||||
dist: 'dist',
|
||||
demo : {
|
||||
ngCordova : 'demo/www/lib/ngCordova/dist',
|
||||
lib : 'demo/www/lib',
|
||||
www : 'demo/www'
|
||||
},
|
||||
|
||||
pluginFiles: [
|
||||
'src/module.js',
|
||||
'src/plugins/*.js',
|
||||
'src/plugins/oauth/src/*.js'
|
||||
],
|
||||
|
||||
mockFiles: [
|
||||
'src/module-mocks.js',
|
||||
'src/mocks/*.js'
|
||||
],
|
||||
|
||||
versionData: {
|
||||
version: pkg.version
|
||||
}
|
||||
};
|
||||
46
www/lib/ngCordova/config/karma.conf.js
Normal file
46
www/lib/ngCordova/config/karma.conf.js
Normal file
@@ -0,0 +1,46 @@
|
||||
var buildConfig = require('./build.config.js');
|
||||
|
||||
module.exports = {
|
||||
files: [
|
||||
// Include jQuery only for testing convience (lots of DOM checking for unit tests on directives)
|
||||
'bower_components/angular/angular.min.js',
|
||||
'bower_components/angular-mocks/angular-mocks.js',
|
||||
'bower_components/jquery/dist/jquery.js',
|
||||
]
|
||||
.concat(buildConfig.pluginFiles)
|
||||
.concat('test/plugins/*.js')
|
||||
|
||||
.concat(buildConfig.mockFiles)
|
||||
.concat('test/mocks/*.js')
|
||||
,
|
||||
|
||||
frameworks: ['jasmine'],
|
||||
reporters: ['progress', 'coverage'],
|
||||
preprocessors: {
|
||||
'src/plugins/*.js': ['coverage']
|
||||
},
|
||||
|
||||
coverageReporter: {
|
||||
type : 'html',
|
||||
dir : 'coverage/'
|
||||
},
|
||||
|
||||
port: 9876,
|
||||
colors: true,
|
||||
// possible values: 'OFF', 'ERROR', 'WARN', 'INFO', 'DEBUG'
|
||||
logLevel: 'INFO',
|
||||
autoWatch: true,
|
||||
captureTimeout: 60000,
|
||||
singleRun: false,
|
||||
|
||||
// Start these browsers, currently available:
|
||||
// - Chrome
|
||||
// - ChromeCanary
|
||||
// - Firefox
|
||||
// - Opera (has to be installed with `npm install karma-opera-launcher`)
|
||||
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
|
||||
// - PhantomJS
|
||||
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
|
||||
browsers: ['Chrome']
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user