Clean outdated config files and boilerplate examples.

Various example resources from the project boilerplate can be
removed, and configuration files for bower and eslint are no
longer needed. An outdated Karma config file is also removed,
as JavaScript tests are moved into the `test` subdirectory.

Change-Id: I2407c20f00f3346b8969d819db92a9fb70c429eb
This commit is contained in:
Tim Buckley 2015-09-28 14:57:02 -06:00
parent 488aeb8813
commit 1e09a951c9
12 changed files with 0 additions and 195 deletions

View File

@ -1 +0,0 @@
{ "directory": "stackviz/static/components/" }

View File

@ -1 +0,0 @@
stackviz/static/components/

View File

@ -1,21 +0,0 @@
# Set up globals
globals:
d3: false
extends: openstack
# Most environment options are not explicitly enabled or disabled, only
# included here for completeness' sake. They are commented out, because the
# global updates.py script would otherwise override them during a global
# requirements synchronization.
#
# Individual projects should choose which platforms they deploy to.
env:
# browser global variables.
browser: true
# Adds all of the Jasmine testing global variables for version 1.3 and 2.0.
jasmine: true
jquery: true

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
# Project-specific ignores
.idea
stackviz/static/components/*
node_modules
build
app/js/templates.js

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

View File

@ -1,18 +0,0 @@
'use strict';
var controllersModule = require('./_index');
/**
* @ngInject
*/
function ExampleCtrl() {
// ViewModel
var vm = this;
vm.title = 'AngularJS, Gulp, and Browserify!';
vm.number = 1234;
}
controllersModule.controller('ExampleCtrl', ExampleCtrl);

View File

@ -1,21 +0,0 @@
'use strict';
var directivesModule = require('./_index.js');
/**
* @ngInject
*/
function exampleDirective() {
return {
restrict: 'EA',
link: function(scope, element) {
element.on('click', function() {
console.log('element clicked');
});
}
};
}
directivesModule.directive('exampleDirective', exampleDirective);

View File

@ -1,28 +0,0 @@
'use strict';
var servicesModule = require('./_index.js');
/**
* @ngInject
*/
function ExampleService($q, $http) {
var service = {};
service.get = function() {
var deferred = $q.defer();
$http.get('apiPath').success(function(data) {
deferred.resolve(data);
}).error(function(err, status) {
deferred.reject(err, status);
});
return deferred.promise;
};
return service;
}
servicesModule.service('ExampleService', ExampleService);

View File

@ -1,34 +0,0 @@
{
"name": "stackviz",
"version": "0.0.0",
"authors": [
"Tim Buckley <timothy.jas.buckley@hp.com>",
"Austin Clark <austin.clark@hp.com>"
],
"description": "A performance visualization utility for DevStack and Tempest",
"license": "Apache 2.0",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"bootstrap": "~3.3.1",
"datatables": "~1.10.4",
"datatables-plugins": "~1.0.1",
"flot": "~0.8.3",
"font-awesome": "~4.2.0",
"holderjs": "~2.4.1",
"metisMenu": "~1.1.3",
"morrisjs": "~0.5.1",
"datatables-responsive": "~1.0.3",
"bootstrap-social": "~4.8.0",
"flot.tooltip": "~0.8.4",
"d3": "~3.5.6"
},
"devDependencies": {
"jquery-ui": "~1.11.4"
}
}

View File

@ -1,70 +0,0 @@
// Karma configuration
// Generated on Mon Aug 03 2015 11:39:58 GMT-0600 (MDT)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: 'stackviz/static/',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine'],
// list of files / patterns to load in the browser
files: [
'components/jquery/dist/jquery.js',
'components/datatables/media/js/jquery.dataTables.js',
'components/bootstrap/dist/js/bootstrap.js',
'components/metisMenu/dist/metisMenu.js',
'components/d3/d3.js',
'js/**/*.js',
'tests/**/*.js'
],
// list of files to exclude
exclude: [
],
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
},
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],
// web server port
port: 9876,
// enable / disable colors in the output (reporters and logs)
colors: true,
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['PhantomJS'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false
});
};