From 709686977dcebf3e29413e253934e142f55404fa Mon Sep 17 00:00:00 2001 From: Jatin Marwah Date: Sun, 23 Aug 2015 05:44:59 -0400 Subject: [PATCH] Clean up for downloads --- .bowerrc | 3 - .editorconfig | 21 -- .jshintrc | 16 -- .travis.yml | 9 - .yo-rc.json | 1 - Gruntfile.js | 464 --------------------------------- app/index.html | 11 - bower.json | 26 -- package.json | 33 --- test/.jshintrc | 18 -- test/karma.conf.js | 81 ------ test/spec/controllers/about.js | 23 -- test/spec/controllers/main.js | 23 -- 13 files changed, 729 deletions(-) delete mode 100644 .bowerrc delete mode 100644 .editorconfig delete mode 100644 .jshintrc delete mode 100644 .travis.yml delete mode 100644 .yo-rc.json delete mode 100644 Gruntfile.js delete mode 100644 bower.json delete mode 100644 package.json delete mode 100644 test/.jshintrc delete mode 100644 test/karma.conf.js delete mode 100644 test/spec/controllers/about.js delete mode 100644 test/spec/controllers/main.js diff --git a/.bowerrc b/.bowerrc deleted file mode 100644 index 69fad35..0000000 --- a/.bowerrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "directory": "bower_components" -} diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index c2cdfb8..0000000 --- a/.editorconfig +++ /dev/null @@ -1,21 +0,0 @@ -# EditorConfig helps developers define and maintain consistent -# coding styles between different editors and IDEs -# editorconfig.org - -root = true - - -[*] - -# Change these settings to your own preference -indent_style = space -indent_size = 2 - -# We recommend you to keep these unchanged -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 4572e5d..0000000 --- a/.jshintrc +++ /dev/null @@ -1,16 +0,0 @@ -{ - "bitwise": true, - "browser": true, - "curly": true, - "eqeqeq": true, - "esnext": true, - "latedef": true, - "noarg": true, - "node": true, - "strict": true, - "undef": true, - "unused": true, - "globals": { - "angular": false - } -} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6fb6850..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -sudo: false -language: node_js -node_js: - - 'iojs' - - '0.12' - - '0.10' -before_script: - - 'npm install -g bower grunt-cli' - - 'bower install' diff --git a/.yo-rc.json b/.yo-rc.json deleted file mode 100644 index 0967ef4..0000000 --- a/.yo-rc.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index a136875..0000000 --- a/Gruntfile.js +++ /dev/null @@ -1,464 +0,0 @@ -// Generated on 2015-08-23 using generator-angular 0.12.1 -'use strict'; - -// # Globbing -// for performance reasons we're only matching one level down: -// 'test/spec/{,*/}*.js' -// use this if you want to recursively match all subfolders: -// 'test/spec/**/*.js' - -module.exports = function (grunt) { - - // Time how long tasks take. Can help when optimizing build times - require('time-grunt')(grunt); - - // Automatically load required Grunt tasks - require('jit-grunt')(grunt, { - useminPrepare: 'grunt-usemin', - ngtemplates: 'grunt-angular-templates', - cdnify: 'grunt-google-cdn' - }); - - // Configurable paths for the application - var appConfig = { - app: require('./bower.json').appPath || 'app', - dist: 'dist' - }; - - // Define the configuration for all the tasks - grunt.initConfig({ - - // Project settings - yeoman: appConfig, - - // Watches files for changes and runs tasks based on the changed files - watch: { - bower: { - files: ['bower.json'], - tasks: ['wiredep'] - }, - js: { - files: ['<%= yeoman.app %>/scripts/{,*/}*.js'], - tasks: ['newer:jshint:all'], - options: { - livereload: '<%= connect.options.livereload %>' - } - }, - jsTest: { - files: ['test/spec/{,*/}*.js'], - tasks: ['newer:jshint:test', 'karma'] - }, - styles: { - files: ['<%= yeoman.app %>/styles/{,*/}*.css'], - tasks: ['newer:copy:styles', 'autoprefixer'] - }, - gruntfile: { - files: ['Gruntfile.js'] - }, - livereload: { - options: { - livereload: '<%= connect.options.livereload %>' - }, - files: [ - '<%= yeoman.app %>/{,*/}*.html', - '.tmp/styles/{,*/}*.css', - '<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}' - ] - } - }, - - // The actual grunt server settings - connect: { - options: { - port: 9000, - // Change this to '0.0.0.0' to access the server from outside. - hostname: 'localhost', - livereload: 35729 - }, - livereload: { - options: { - open: true, - middleware: function (connect) { - return [ - connect.static('.tmp'), - connect().use( - '/bower_components', - connect.static('./bower_components') - ), - connect().use( - '/app/styles', - connect.static('./app/styles') - ), - connect.static(appConfig.app) - ]; - } - } - }, - test: { - options: { - port: 9001, - middleware: function (connect) { - return [ - connect.static('.tmp'), - connect.static('test'), - connect().use( - '/bower_components', - connect.static('./bower_components') - ), - connect.static(appConfig.app) - ]; - } - } - }, - dist: { - options: { - open: true, - base: '<%= yeoman.dist %>' - } - } - }, - - // Make sure code styles are up to par and there are no obvious mistakes - jshint: { - options: { - jshintrc: '.jshintrc', - reporter: require('jshint-stylish') - }, - all: { - src: [ - 'Gruntfile.js', - '<%= yeoman.app %>/scripts/{,*/}*.js' - ] - }, - test: { - options: { - jshintrc: 'test/.jshintrc' - }, - src: ['test/spec/{,*/}*.js'] - } - }, - - // Empties folders to start fresh - clean: { - dist: { - files: [{ - dot: true, - src: [ - '.tmp', - '<%= yeoman.dist %>/{,*/}*', - '!<%= yeoman.dist %>/.git{,*/}*' - ] - }] - }, - server: '.tmp' - }, - - // Add vendor prefixed styles - autoprefixer: { - options: { - browsers: ['last 1 version'] - }, - server: { - options: { - map: true, - }, - files: [{ - expand: true, - cwd: '.tmp/styles/', - src: '{,*/}*.css', - dest: '.tmp/styles/' - }] - }, - dist: { - files: [{ - expand: true, - cwd: '.tmp/styles/', - src: '{,*/}*.css', - dest: '.tmp/styles/' - }] - } - }, - - // Automatically inject Bower components into the app - wiredep: { - app: { - src: ['<%= yeoman.app %>/index.html'], - ignorePath: /\.\.\// - }, - test: { - devDependencies: true, - src: '<%= karma.unit.configFile %>', - ignorePath: /\.\.\//, - fileTypes:{ - js: { - block: /(([\s\t]*)\/{2}\s*?bower:\s*?(\S*))(\n|\r|.)*?(\/{2}\s*endbower)/gi, - detect: { - js: /'(.*\.js)'/gi - }, - replace: { - js: '\'{{filePath}}\',' - } - } - } - } - }, - - // Renames files for browser caching purposes - filerev: { - dist: { - src: [ - '<%= yeoman.dist %>/scripts/{,*/}*.js', - '<%= yeoman.dist %>/styles/{,*/}*.css', - '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}', - '<%= yeoman.dist %>/styles/fonts/*' - ] - } - }, - - // Reads HTML for usemin blocks to enable smart builds that automatically - // concat, minify and revision files. Creates configurations in memory so - // additional tasks can operate on them - useminPrepare: { - html: '<%= yeoman.app %>/index.html', - options: { - dest: '<%= yeoman.dist %>', - flow: { - html: { - steps: { - js: ['concat', 'uglifyjs'], - css: ['cssmin'] - }, - post: {} - } - } - } - }, - - // Performs rewrites based on filerev and the useminPrepare configuration - usemin: { - html: ['<%= yeoman.dist %>/{,*/}*.html'], - css: ['<%= yeoman.dist %>/styles/{,*/}*.css'], - js: ['<%= yeoman.dist %>/scripts/{,*/}*.js'], - options: { - assetsDirs: [ - '<%= yeoman.dist %>', - '<%= yeoman.dist %>/images', - '<%= yeoman.dist %>/styles' - ], - patterns: { - js: [[/(images\/[^''""]*\.(png|jpg|jpeg|gif|webp|svg))/g, 'Replacing references to images']] - } - } - }, - - // The following *-min tasks will produce minified files in the dist folder - // By default, your `index.html`'s will take care of - // minification. These next options are pre-configured if you do not wish - // to use the Usemin blocks. - // cssmin: { - // dist: { - // files: { - // '<%= yeoman.dist %>/styles/main.css': [ - // '.tmp/styles/{,*/}*.css' - // ] - // } - // } - // }, - // uglify: { - // dist: { - // files: { - // '<%= yeoman.dist %>/scripts/scripts.js': [ - // '<%= yeoman.dist %>/scripts/scripts.js' - // ] - // } - // } - // }, - // concat: { - // dist: {} - // }, - - imagemin: { - dist: { - files: [{ - expand: true, - cwd: '<%= yeoman.app %>/images', - src: '{,*/}*.{png,jpg,jpeg,gif}', - dest: '<%= yeoman.dist %>/images' - }] - } - }, - - svgmin: { - dist: { - files: [{ - expand: true, - cwd: '<%= yeoman.app %>/images', - src: '{,*/}*.svg', - dest: '<%= yeoman.dist %>/images' - }] - } - }, - - htmlmin: { - dist: { - options: { - collapseWhitespace: true, - conservativeCollapse: true, - collapseBooleanAttributes: true, - removeCommentsFromCDATA: true - }, - files: [{ - expand: true, - cwd: '<%= yeoman.dist %>', - src: ['*.html'], - dest: '<%= yeoman.dist %>' - }] - } - }, - - ngtemplates: { - dist: { - options: { - module: 'tablefreezepaneApp', - htmlmin: '<%= htmlmin.dist.options %>', - usemin: 'scripts/scripts.js' - }, - cwd: '<%= yeoman.app %>', - src: 'views/{,*/}*.html', - dest: '.tmp/templateCache.js' - } - }, - - // ng-annotate tries to make the code safe for minification automatically - // by using the Angular long form for dependency injection. - ngAnnotate: { - dist: { - files: [{ - expand: true, - cwd: '.tmp/concat/scripts', - src: '*.js', - dest: '.tmp/concat/scripts' - }] - } - }, - - // Replace Google CDN references - cdnify: { - dist: { - html: ['<%= yeoman.dist %>/*.html'] - } - }, - - // Copies remaining files to places other tasks can use - copy: { - dist: { - files: [{ - expand: true, - dot: true, - cwd: '<%= yeoman.app %>', - dest: '<%= yeoman.dist %>', - src: [ - '*.{ico,png,txt}', - '.htaccess', - '*.html', - 'images/{,*/}*.{webp}', - 'styles/fonts/{,*/}*.*' - ] - }, { - expand: true, - cwd: '.tmp/images', - dest: '<%= yeoman.dist %>/images', - src: ['generated/*'] - }, { - expand: true, - cwd: 'bower_components/bootstrap/dist', - src: 'fonts/*', - dest: '<%= yeoman.dist %>' - }] - }, - styles: { - expand: true, - cwd: '<%= yeoman.app %>/styles', - dest: '.tmp/styles/', - src: '{,*/}*.css' - } - }, - - // Run some tasks in parallel to speed up the build process - concurrent: { - server: [ - 'copy:styles' - ], - test: [ - 'copy:styles' - ], - dist: [ - 'copy:styles', - 'imagemin', - 'svgmin' - ] - }, - - // Test settings - karma: { - unit: { - configFile: 'test/karma.conf.js', - singleRun: true - } - } - }); - - - grunt.registerTask('serve', 'Compile then start a connect web server', function (target) { - if (target === 'dist') { - return grunt.task.run(['build', 'connect:dist:keepalive']); - } - - grunt.task.run([ - 'clean:server', - 'wiredep', - 'concurrent:server', - 'autoprefixer:server', - 'connect:livereload', - 'watch' - ]); - }); - - grunt.registerTask('server', 'DEPRECATED TASK. Use the "serve" task instead', function (target) { - grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.'); - grunt.task.run(['serve:' + target]); - }); - - grunt.registerTask('test', [ - 'clean:server', - 'wiredep', - 'concurrent:test', - 'autoprefixer', - 'connect:test', - 'karma' - ]); - - grunt.registerTask('build', [ - 'clean:dist', - 'wiredep', - 'useminPrepare', - 'concurrent:dist', - 'autoprefixer', - 'ngtemplates', - 'concat', - 'ngAnnotate', - 'copy:dist', - 'cdnify', - 'cssmin', - 'uglify', - 'filerev', - 'usemin', - 'htmlmin' - ]); - - grunt.registerTask('default', [ - 'newer:jshint', - 'test', - 'build' - ]); -}; diff --git a/app/index.html b/app/index.html index 6376571..c55b076 100644 --- a/app/index.html +++ b/app/index.html @@ -59,17 +59,6 @@ - - diff --git a/bower.json b/bower.json deleted file mode 100644 index 2a197ab..0000000 --- a/bower.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "tablefreezepane", - "version": "1.0.0", - "dependencies": { - "angular": "^1.3.0", - "bootstrap": "^3.2.0", - "angular-animate": "^1.3.0", - "angular-resource": "^1.3.0", - "angular-route": "^1.3.0", - "angular-touch": "^1.3.0" - }, - "devDependencies": { - "angular-mocks": "^1.3.0" - }, - "appPath": "app", - "moduleName": "tablefreezepaneApp", - "overrides": { - "bootstrap": { - "main": [ - "less/bootstrap.less", - "dist/css/bootstrap.css", - "dist/js/bootstrap.js" - ] - } - } -} diff --git a/package.json b/package.json deleted file mode 100644 index 7972114..0000000 --- a/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "tablefreezepane", - "private": true, - "devDependencies": { - "grunt": "^0.4.5", - "grunt-angular-templates": "^0.5.7", - "grunt-autoprefixer": "^2.0.0", - "grunt-concurrent": "^1.0.0", - "grunt-contrib-clean": "^0.6.0", - "grunt-contrib-concat": "^0.5.0", - "grunt-contrib-connect": "^0.9.0", - "grunt-contrib-copy": "^0.7.0", - "grunt-contrib-cssmin": "^0.12.0", - "grunt-contrib-htmlmin": "^0.4.0", - "grunt-contrib-imagemin": "^0.9.2", - "grunt-contrib-jshint": "^0.11.0", - "grunt-contrib-uglify": "^0.7.0", - "grunt-contrib-watch": "^0.6.1", - "grunt-filerev": "^2.1.2", - "grunt-google-cdn": "^0.4.3", - "grunt-newer": "^1.1.0", - "grunt-ng-annotate": "^0.9.2", - "grunt-svgmin": "^2.0.0", - "grunt-usemin": "^3.0.0", - "grunt-wiredep": "^2.0.0", - "jit-grunt": "^0.9.1", - "jshint-stylish": "^1.0.0", - "time-grunt": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } -} diff --git a/test/.jshintrc b/test/.jshintrc deleted file mode 100644 index b2ce4ef..0000000 --- a/test/.jshintrc +++ /dev/null @@ -1,18 +0,0 @@ -{ - "bitwise": true, - "browser": true, - "curly": true, - "eqeqeq": true, - "esnext": true, - "jasmine": true, - "latedef": true, - "noarg": true, - "node": true, - "strict": true, - "undef": true, - "unused": true, - "globals": { - "angular": false, - "inject": false - } -} diff --git a/test/karma.conf.js b/test/karma.conf.js deleted file mode 100644 index aa30633..0000000 --- a/test/karma.conf.js +++ /dev/null @@ -1,81 +0,0 @@ -// Karma configuration -// http://karma-runner.github.io/0.12/config/configuration-file.html -// Generated on 2015-08-23 using -// generator-karma 1.0.0 - -module.exports = function(config) { - 'use strict'; - - config.set({ - // enable / disable watching file and executing tests whenever any file changes - autoWatch: true, - - // base path, that will be used to resolve files and exclude - basePath: '../', - - // testing framework to use (jasmine/mocha/qunit/...) - // as well as any additional frameworks (requirejs/chai/sinon/...) - frameworks: [ - "jasmine" - ], - - // list of files / patterns to load in the browser - files: [ - // bower:js - 'bower_components/jquery/dist/jquery.js', - 'bower_components/angular/angular.js', - 'bower_components/bootstrap/dist/js/bootstrap.js', - 'bower_components/angular-animate/angular-animate.js', - 'bower_components/angular-resource/angular-resource.js', - 'bower_components/angular-route/angular-route.js', - 'bower_components/angular-touch/angular-touch.js', - 'bower_components/angular-mocks/angular-mocks.js', - // endbower - "app/scripts/**/*.js", - "test/mock/**/*.js", - "test/spec/**/*.js" - ], - - // list of files / patterns to exclude - exclude: [ - ], - - // web server port - port: 8080, - - // Start these browsers, currently available: - // - Chrome - // - ChromeCanary - // - Firefox - // - Opera - // - Safari (only Mac) - // - PhantomJS - // - IE (only Windows) - browsers: [ - "PhantomJS" - ], - - // Which plugins to enable - plugins: [ - "karma-phantomjs-launcher", - "karma-jasmine" - ], - - // Continuous Integration mode - // if true, it capture browsers, run tests and exit - singleRun: false, - - colors: true, - - // level of logging - // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG - logLevel: config.LOG_INFO, - - // Uncomment the following lines if you are using grunt's server to run the tests - // proxies: { - // '/': 'http://localhost:9000/' - // }, - // URL root prevent conflicts with the site root - // urlRoot: '_karma_' - }); -}; diff --git a/test/spec/controllers/about.js b/test/spec/controllers/about.js deleted file mode 100644 index d69f8aa..0000000 --- a/test/spec/controllers/about.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -describe('Controller: AboutCtrl', function () { - - // load the controller's module - beforeEach(module('tablefreezepaneApp')); - - var AboutCtrl, - scope; - - // Initialize the controller and a mock scope - beforeEach(inject(function ($controller, $rootScope) { - scope = $rootScope.$new(); - AboutCtrl = $controller('AboutCtrl', { - $scope: scope - // place here mocked dependencies - }); - })); - - it('should attach a list of awesomeThings to the scope', function () { - expect(AboutCtrl.awesomeThings.length).toBe(3); - }); -}); diff --git a/test/spec/controllers/main.js b/test/spec/controllers/main.js deleted file mode 100644 index f88f158..0000000 --- a/test/spec/controllers/main.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -describe('Controller: MainCtrl', function () { - - // load the controller's module - beforeEach(module('tablefreezepaneApp')); - - var MainCtrl, - scope; - - // Initialize the controller and a mock scope - beforeEach(inject(function ($controller, $rootScope) { - scope = $rootScope.$new(); - MainCtrl = $controller('MainCtrl', { - $scope: scope - // place here mocked dependencies - }); - })); - - it('should attach a list of awesomeThings to the scope', function () { - expect(MainCtrl.awesomeThings.length).toBe(3); - }); -});