diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 0000000..69fad35 --- /dev/null +++ b/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory": "bower_components" +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c2cdfb8 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# 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/.gitattributes b/.gitattributes new file mode 100644 index 0000000..2125666 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto \ No newline at end of file diff --git a/.gitignore b/.gitignore index 5d8650c..dc5576c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ -_site/ -.vagrant/ +/node_modules +/dist +/.tmp +/.sass-cache +/bower_components diff --git a/.jscsrc b/.jscsrc new file mode 100644 index 0000000..f8bf9ba --- /dev/null +++ b/.jscsrc @@ -0,0 +1,6 @@ +{ + "requireCamelCaseOrUpperCaseIdentifiers": true, + "requireCapitalizedConstructors": true, + "requireParenthesesAroundIIFE": true, + "validateQuoteMarks": "'" +} diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..4572e5d --- /dev/null +++ b/.jshintrc @@ -0,0 +1,16 @@ +{ + "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/.yo-rc.json b/.yo-rc.json new file mode 100644 index 0000000..6589676 --- /dev/null +++ b/.yo-rc.json @@ -0,0 +1,11 @@ +{ + "generator-karma": { + "base-path": "../", + "frameworks": "jasmine", + "browsers": "PhantomJS", + "app-files": "app/scripts/**/*.js", + "files-comments": "bower:js,endbower", + "bower-components-path": "bower_components", + "test-files": "test/mock/**/*.js,test/spec/**/*.js" + } +} \ No newline at end of file diff --git a/CNAME b/CNAME deleted file mode 100644 index 8003405..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -hackbrexit.org diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..50d1140 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,483 @@ +// Generated on 2016-08-24 using generator-angular 0.15.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', 'newer:jscs:all'], + options: { + livereload: '<%= connect.options.livereload %>' + } + }, + jsTest: { + files: ['test/spec/{,*/}*.js'], + tasks: ['newer:jshint:test', 'newer:jscs:test', 'karma'] + }, + styles: { + files: ['<%= yeoman.app %>/styles/{,*/}*.css'], + tasks: ['newer:copy:styles', 'postcss'] + }, + 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 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'] + } + }, + + // Make sure code styles are up to par + jscs: { + options: { + config: '.jscsrc', + verbose: true + }, + all: { + src: [ + 'Gruntfile.js', + '<%= yeoman.app %>/scripts/{,*/}*.js' + ] + }, + test: { + 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 + postcss: { + options: { + processors: [ + require('autoprefixer-core')({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: 'hackbrexitgithubioApp', + 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}', + '*.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', + 'postcss: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', + 'postcss', + 'connect:test', + 'karma' + ]); + + grunt.registerTask('build', [ + 'clean:dist', + 'wiredep', + 'useminPrepare', + 'concurrent:dist', + 'postcss', + 'ngtemplates', + 'concat', + 'ngAnnotate', + 'copy:dist', + 'cdnify', + 'cssmin', + 'uglify', + 'filerev', + 'usemin', + 'htmlmin' + ]); + + grunt.registerTask('default', [ + 'newer:jshint', + 'newer:jscs', + 'test', + 'build' + ]); +}; diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 7cdab62..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 HackBrexit - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index 561d746..5db075d 100644 --- a/README.md +++ b/README.md @@ -1,50 +1,12 @@ -# hackbrexit.github.io +# hackbrexitgithubio -List projects & team members from the July 2016 Hackathon +This project is generated with [yo angular generator](https://github.com/yeoman/generator-angular) +version 0.15.1. -Beyond Brexit: Creating dialogue and action for a country divided +## Build & development -![Logo](https://info.thoughtworks.com/rs/199-QDE-291/images/HackBrexit.png) +Run `grunt` for building and `grunt serve` for preview. -Brexit is one of the most controversial and seismic political events in the UK’s recent history. Yet throughout the pre-referendum campaigns and aftermath of Brexit many questions remain unanswered and the future unclear. +## Testing -Regardless of whether you voted in or out, this two day event is open to the tech and non-tech community to join forces to create dialogue and action beyond Brexit. - - -We invite you to hack three key themes: - -* Truth, fiction, & accountability -* Tolerance & prejudice -* Effective organising & campaigning - -## Dependencies - -* Jekyll -* Bootstrap -* FontAwesome -* GitHub Pages - -## Setup - -* `vagrant up` -* `vagrant ssh` -* `cd /vagrant` -* `jekyll serve --force_polling` -* Visit http://192.168.51.100:4000/ - -## Project List - -* Pop! Outside the eco-chamber -* Ministers Under the Influence -* Campaign.ninja -* The Other Voices -* Brex Lex -* Exit Gap -* I Streetwatch -* Brexit Net -* What The Fact? -* Fixit - -## Created by - -* Tanya Powell, Eddie Jaoude, Hyewon Kim +Running `grunt test` will run the unit tests with karma. diff --git a/Vagrantfile b/Vagrantfile deleted file mode 100644 index 435f81e..0000000 --- a/Vagrantfile +++ /dev/null @@ -1,59 +0,0 @@ -################################################## -# Generated by phansible.com -################################################## - -#If your Vagrant version is lower than 1.5, you can still use this provisioning -#by commenting or removing the line below and providing the config.vm.box_url parameter, -#if it's not already defined in this Vagrantfile. Keep in mind that you won't be able -#to use the Vagrant Cloud and other newer Vagrant features. -Vagrant.require_version ">= 1.5" - -# Check to determine whether we're on a windows or linux/os-x host, -# later on we use this to launch ansible in the supported way -# source: https://stackoverflow.com/questions/2108727/which-in-ruby-checking-if-program-exists-in-path-from-ruby -def which(cmd) - exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : [''] - ENV['PATH'].split(File::PATH_SEPARATOR).each do |path| - exts.each { |ext| - exe = File.join(path, "#{cmd}#{ext}") - return exe if File.executable? exe - } - end - return nil -end -Vagrant.configure("2") do |config| - - config.vm.provider :virtualbox do |v| - v.name = "hackbrexit" - v.customize [ - "modifyvm", :id, - "--name", "hackbrexit", - "--memory", 512, - "--natdnshostresolver1", "on", - "--cpus", 1, - ] - end - - config.vm.box = "ubuntu/wily64" - - config.vm.network :private_network, ip: "192.168.51.100" - config.ssh.forward_agent = true - - ############################################################# - # Ansible provisioning (you need to have ansible installed) - ############################################################# - - - if which('ansible-playbook') - config.vm.provision "ansible" do |ansible| - ansible.playbook = "ansible/playbook.yml" - ansible.inventory_path = "ansible/inventories/dev" - ansible.limit = 'all' - end - else - config.vm.provision :shell, path: "ansible/windows.sh", args: ["default"] - end - - - config.vm.synced_folder "./", "/vagrant", type: "nfs" -end diff --git a/_Open_source_accelerator/2016-07-24-HackBrexit.md b/_Open_source_accelerator/2016-07-24-HackBrexit.md deleted file mode 100644 index 64f75ff..0000000 --- a/_Open_source_accelerator/2016-07-24-HackBrexit.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -layout: default -name: HackBrexit Open source accelerator -description: Deatils on the Open source accelerator programme and projects supported -display_date: August 2016 -github_url: https://github.com/HackBrexit/hackbrexit.github.io -status: active ---- diff --git a/_Open_source_accelerator/2016-07-24-MinistersUndertheInfluence.md b/_Open_source_accelerator/2016-07-24-MinistersUndertheInfluence.md deleted file mode 100644 index 1e10825..0000000 --- a/_Open_source_accelerator/2016-07-24-MinistersUndertheInfluence.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -name: Ministers Under the Influence -description: One stop shop for all the publicly available data on money and politics -display_date: July 2016 -github_url: https://github.com/HackBrexit/MinistersUnderTheInfluence -presentation_url: https://drive.google.com/open?id=1-CsMiIhywwpsGFKeEBzOfc9a6BTBb8nk284ctJra77o -introduction_url: bVbTzTd2ZRs -status: active ---- diff --git a/_Open_source_accelerator/2016-07-24-WhatTheFact.md b/_Open_source_accelerator/2016-07-24-WhatTheFact.md deleted file mode 100644 index 937832f..0000000 --- a/_Open_source_accelerator/2016-07-24-WhatTheFact.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -name: What The Fact? -description: Browser plugin that gives you fact-checking information about what you're reading -display_date: July 2016 -github_url: https://github.com/HackBrexit/WhatTheFact -presentation_url: https://drive.google.com/open?id=1MfPLxDjFKbsOvzAj-_VtSSUmRh5AQr47SvQQeydYFJk -introduction_url: MrPCj9Qv3nE -status: active ---- diff --git a/_Open_source_accelerator/overview.md b/_Open_source_accelerator/overview.md deleted file mode 100644 index 1ec0b98..0000000 --- a/_Open_source_accelerator/overview.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -title: Hack Brexit open source accelerator overview ---- -# Introduction - Overview - -###  What is the accelerator all about? - -* A three month programme that takes 2 of the 10 projects created during Hack Brexit weekend - -* Run monthly meetings for the teams to present and discuss their projects progress, hosted by ThoughtWorks London - -* Help source additional volunteers to work with the teams on the projects - -* The organising committee will be on hand to provide planning and process assistance over the whole 3 months, and tap into expertise from ThoughtWorks and Code First: Girls community - -* The organising committee will manage external communications for the open source accelerator to help spread the word - -* At the end of 3 months we will run a final external presentation event with external attendees, we will analyse the progress and development of the project along with its future potential for continuing to grow - -* Connect the team members to the wider Hack Brexit meetup community - -### Why are we doing this? - -We want to continue from the success of the Hack Brexit hackathon on the 23-4 July to bring together technical and non-technical people to create tech solutions to drive dialog, unity and positive action beyond Brexit. We want to sustainably support and scale up projects that have a clear positive impact on society and respond to one of the three key themes we chose for the weekend: 1. Truth, fiction, & accountability; 2. Tolerance & prejudice; 3. Effective organising & campaigning. - -### T&Cs for accelerator - -* An open source project publicly available & accessible to all -* Projects are created in a repository under the Hack Brexit public repository with an MIT License -* Projects have an IP that is open to all & can be used by anyone -* Projects speak to one of the three key themes identified at the Hack (Truth, Fiction & Accountability; Tolerance & prejudice; Effective organising & campaigning) or a future theme as agreed by the community -* Commitment to work with a group of volunteers on the project for a duration of 3 months -* Work alongside your project team volunteers & the Hack Brexit organisers to plan the outcomes for at least 3 months -* Be a project that has scope to continue to be worked on by others in the future - - -We'll be updating this page with further information as the projects develop, so do watch this space! - -### Sign up to join our mailing list here! - -
- diff --git a/_config.yml b/_config.yml deleted file mode 100644 index 6513f38..0000000 --- a/_config.yml +++ /dev/null @@ -1,19 +0,0 @@ -# Welcome to Jekyll! -# -# This config file is meant for settings that affect your whole blog, values -# which you are expected to set up once and rarely need to edit after that. -# For technical reasons, this file is *NOT* reloaded automatically when you use -# 'jekyll serve'. If you change this file, please restart the server process. - -# Site settings -host: 0.0.0.0 -title: HackBrexit -email: eddie@jaoudestudios.com -description: -baseurl: "" # the subpath of your site, e.g. /blog -url: "https://hackbrexit.github.io" # the base hostname & protocol for your site -twitter_username: hackbrexit -github_username: hackbrexit - -# Build settings -markdown: kramdown diff --git a/_includes/foot.html b/_includes/foot.html deleted file mode 100644 index fcb5a6e..0000000 --- a/_includes/foot.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - diff --git a/_includes/footer.html b/_includes/footer.html deleted file mode 100644 index d56f14f..0000000 --- a/_includes/footer.html +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/_includes/head.html b/_includes/head.html deleted file mode 100644 index 5ff460c..0000000 --- a/_includes/head.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - HackBrexit - - - - - - diff --git a/_includes/header.html b/_includes/header.html deleted file mode 100644 index 07087e4..0000000 --- a/_includes/header.html +++ /dev/null @@ -1,59 +0,0 @@ - - - diff --git a/_layouts/default.html b/_layouts/default.html deleted file mode 100644 index 21546cc..0000000 --- a/_layouts/default.html +++ /dev/null @@ -1,49 +0,0 @@ -{% include head.html %} - -
- {% include header.html %} - - {% for post in site.posts %} -
-

- {{ post.name }} - {% if post.status == 'active' %} - Active - {% endif %} - {% if post.status == 'inactive' %} - Inactive - {% endif %} -

- -
-
-
- {% if post.introduction_url %} -
- -
- {% endif %} -
- -
-

{{ post.description }}

- - GitHub - - - Presentation - -
-
-
- -
- {% endfor %} -
-{% include footer.html %} - -{% include foot.html %} diff --git a/_layouts/gallery.html b/_layouts/gallery.html deleted file mode 100644 index 734b3ab..0000000 --- a/_layouts/gallery.html +++ /dev/null @@ -1,15 +0,0 @@ -{% include head.html %} - -
- {% include header.html %} - -

Photos taken by Felipe Sere

- {% for image in site.static_files %} - {% if image.path contains 'img/gallery' %} - HackBrexit 1st Hackathon Photo - {% endif %} - {% endfor %} -
-{% include footer.html %} - -{% include foot.html %} diff --git a/_posts/2016-07-24-BrexLex.md b/_posts/2016-07-24-BrexLex.md deleted file mode 100644 index 009828d..0000000 --- a/_posts/2016-07-24-BrexLex.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -name: BrexLex -description: Web app that allows campaigners to easily see which words/phrases are most resonant on Twitter, and which sides are using them. -display_date: July 2016 -github_url: https://github.com/HackBrexit/BrexLex -presentation_url: https://drive.google.com/open?id=1l0OWeE34QIPVd_gkPAuZq5afCRTeNqbgG5dL0zXVVqs -introduction_url: WEoXSfAtr8Q -status: active ---- diff --git a/_posts/2016-07-24-BrexitNet.md b/_posts/2016-07-24-BrexitNet.md deleted file mode 100644 index 409d398..0000000 --- a/_posts/2016-07-24-BrexitNet.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -name: Brexit Net -description: Mapping existing data to try and understand new correlations that can bridge the empathy gap -display_date: July 2016 -github_url: https://github.com/HackBrexit/BrexitNet -presentation_url: -introduction_url: -status: inactive ---- diff --git a/_posts/2016-07-24-CampaignNinja.md b/_posts/2016-07-24-CampaignNinja.md deleted file mode 100644 index 1a5df23..0000000 --- a/_posts/2016-07-24-CampaignNinja.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -name: Campaign. Ninja -description: Mobilise a mass leaflet or door to door campaign quickly and easily -display_date: July 2016 -github_url: https://github.com/HackBrexit/CampaigningNinja -presentation-url: https://drive.google.com/open?id=1j0XdlOtpvRWAekr3PDATntDzMaonIs39VzxitAPlqmE -introduction_url: GNRqcbHTT4M -status: active ---- diff --git a/_posts/2016-07-24-ExitGap.md b/_posts/2016-07-24-ExitGap.md deleted file mode 100644 index 36aab4a..0000000 --- a/_posts/2016-07-24-ExitGap.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -name: ExitGap -description: Web app to help people identify impacts of Brexit by mapping out where the EU impact the UK, in terms of funding, policy and trade -display_date: July 2016 -github_url: https://github.com/HackBrexit/ExitGap -presentation_url: https://drive.google.com/open?id=1VJ_aCrW8TsWwUUPsDmPis3B-2wVmUuIk86nTSfZqzlE -introduction_url: maUBGM0Pol4 -status: active ---- diff --git a/_posts/2016-07-24-Fixit.md b/_posts/2016-07-24-Fixit.md deleted file mode 100644 index 9cb6a65..0000000 --- a/_posts/2016-07-24-Fixit.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -name: Fixit -description: -display_date: July 2016 -github_url: -presentation_url: https://drive.google.com/open?id=1_DeN7X8uzBsyK9ePBe2je8ljvt_cTvPv9UtU36YpSts -introduction_url: opnlCMKfyLI -status: active ---- diff --git a/_posts/2016-07-24-HackBrexit.md b/_posts/2016-07-24-HackBrexit.md deleted file mode 100644 index 2763a6b..0000000 --- a/_posts/2016-07-24-HackBrexit.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -layout: default -name: HackBrexit -description: Hackathon project list -display_date: July 2016 -github_url: https://github.com/HackBrexit/hackbrexit.github.io -status: active ---- diff --git a/_posts/2016-07-24-IStreetwatch.md b/_posts/2016-07-24-IStreetwatch.md deleted file mode 100644 index 5fff6f6..0000000 --- a/_posts/2016-07-24-IStreetwatch.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -name: I Streetwatch -description: Looking into ways to expand I Streetwatch -display_date: July 2016 -github_url: https://github.com/HackBrexit/IStreetWatch -presentation_url: https://drive.google.com/open?id=1wiyu31ulcOoFEdgGSJO0kEGibAq-fzQQX3JQYkkg7Yk -introduction_url: JyzcKjWB8U4 -status: active ---- diff --git a/_posts/2016-07-24-MinistersUndertheInfluence.md b/_posts/2016-07-24-MinistersUndertheInfluence.md deleted file mode 100644 index 1e10825..0000000 --- a/_posts/2016-07-24-MinistersUndertheInfluence.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -name: Ministers Under the Influence -description: One stop shop for all the publicly available data on money and politics -display_date: July 2016 -github_url: https://github.com/HackBrexit/MinistersUnderTheInfluence -presentation_url: https://drive.google.com/open?id=1-CsMiIhywwpsGFKeEBzOfc9a6BTBb8nk284ctJra77o -introduction_url: bVbTzTd2ZRs -status: active ---- diff --git a/_posts/2016-07-24-PopOutsideTheEchoChamber.md b/_posts/2016-07-24-PopOutsideTheEchoChamber.md deleted file mode 100644 index 76b126f..0000000 --- a/_posts/2016-07-24-PopOutsideTheEchoChamber.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -name: Pop! Outside the echo-chamber -description: Help people to connect outside of their echo-chambers and creating safe space for conversations. Building bridges and building trust. -display_date: July 2016 -github_url: https://github.com/HackBrexit/hackbrexit.github.io -presentation_url: https://drive.google.com/open?id=1N3PFbBpczqFTsFtcHs3eRdbfW9UhnfVK_Lde5KQxJNw -introduction_url: ngXoltv5TEo -status: active ---- diff --git a/_posts/2016-07-24-TheOtherVoices.md b/_posts/2016-07-24-TheOtherVoices.md deleted file mode 100644 index 6210164..0000000 --- a/_posts/2016-07-24-TheOtherVoices.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -name: The Other Voices -description: Build a facility where people can share their personal stories to build a community to connect people and combat propaganda -display_date: July 2016 -github_url: https://github.com/HackBrexit/TheOtherVoices -presentation_url: https://drive.google.com/open?id=1L16bu-7t8LRAIztA6xnd-EdjnMH5HGoZ5bkuEwENUwE -introduction_url: -status: active ---- diff --git a/_posts/2016-07-24-WhatTheFact.md b/_posts/2016-07-24-WhatTheFact.md deleted file mode 100644 index 937832f..0000000 --- a/_posts/2016-07-24-WhatTheFact.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: default -name: What The Fact? -description: Browser plugin that gives you fact-checking information about what you're reading -display_date: July 2016 -github_url: https://github.com/HackBrexit/WhatTheFact -presentation_url: https://drive.google.com/open?id=1MfPLxDjFKbsOvzAj-_VtSSUmRh5AQr47SvQQeydYFJk -introduction_url: MrPCj9Qv3nE -status: active ---- diff --git a/ansible/inventories/dev b/ansible/inventories/dev deleted file mode 100644 index 87af9fc..0000000 --- a/ansible/inventories/dev +++ /dev/null @@ -1,2 +0,0 @@ -[phansible-web] -192.168.51.99 diff --git a/ansible/playbook.retry b/ansible/playbook.retry deleted file mode 100644 index 5a75d10..0000000 --- a/ansible/playbook.retry +++ /dev/null @@ -1 +0,0 @@ -192.168.33.99 diff --git a/ansible/playbook.yml b/ansible/playbook.yml deleted file mode 100644 index cf1748f..0000000 --- a/ansible/playbook.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -- hosts: all - sudo: true - vars_files: - - vars/all.yml - roles: - - app - - ruby - - server - - vagrant_local diff --git a/ansible/roles/app/tasks/main.yml b/ansible/roles/app/tasks/main.yml deleted file mode 100644 index c330e48..0000000 --- a/ansible/roles/app/tasks/main.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -# application tasks to be customized and to run after the main provision -- name: update file db - sudo: yes - shell: updatedb diff --git a/ansible/roles/ruby/tasks/jekyll.yml b/ansible/roles/ruby/tasks/jekyll.yml deleted file mode 100644 index 8dd37ff..0000000 --- a/ansible/roles/ruby/tasks/jekyll.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: jekyll - gem: - name: jekyll - user_install: no diff --git a/ansible/roles/ruby/tasks/main.yml b/ansible/roles/ruby/tasks/main.yml deleted file mode 100644 index 4582e37..0000000 --- a/ansible/roles/ruby/tasks/main.yml +++ /dev/null @@ -1,8 +0,0 @@ -- name: Install ruby development headers - sudo: yes - apt: pkg={{ item }} state=latest - with_items: - - ruby - - ruby-dev - -- include: jekyll.yml diff --git a/ansible/roles/server/tasks/main.yml b/ansible/roles/server/tasks/main.yml deleted file mode 100644 index be8153a..0000000 --- a/ansible/roles/server/tasks/main.yml +++ /dev/null @@ -1,30 +0,0 @@ ---- -- name: Update apt - sudo: yes - apt: update_cache=yes - -- name: Install System Packages - sudo: yes - apt: pkg={{ item }} state=latest - with_items: - - curl - - wget - - python-software-properties - -- name: Install Extra Packages - sudo: yes - apt: pkg={{ item }} state=latest - with_items: server.packages - when: server.packages is defined - -- name: Configure the timezone - sudo: yes - template: src=timezone.tpl dest=/etc/timezone - -- name: More Configure the timezone - sudo: yes - file: src=/usr/share/zoneinfo/{{server.timezone}} dest=/etc/localtime state=link force=yes backup=yes - -- name: Set default system language pack - shell: locale-gen {{server.locale}} - sudo: yes diff --git a/ansible/roles/server/templates/timezone.tpl b/ansible/roles/server/templates/timezone.tpl deleted file mode 100644 index cca2365..0000000 --- a/ansible/roles/server/templates/timezone.tpl +++ /dev/null @@ -1 +0,0 @@ -{{server.timezone}} diff --git a/ansible/roles/vagrant_local/tasks/main.yml b/ansible/roles/vagrant_local/tasks/main.yml deleted file mode 100644 index cd53609..0000000 --- a/ansible/roles/vagrant_local/tasks/main.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -- name: Set the hostname in /etc/hostname - shell: echo {{ vagrant_local.vm.hostname }} > /etc/hostname - when: vagrant_local.vm.hostname is defined - -- name: Set the hostname - shell: hostname {{ vagrant_local.vm.hostname }} - when: vagrant_local.vm.hostname is defined - -- name: Update /etc/hosts - lineinfile: dest=/etc/hosts regexp='^127\.0\.0\.1' line='127.0.0.1 localhost {{ vagrant_local.vm.hostname }}' owner=root group=root mode=0644 diff --git a/ansible/vars/all.yml b/ansible/vars/all.yml deleted file mode 100644 index 4163ddb..0000000 --- a/ansible/vars/all.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -server: - install: '1' - packages: [vim, htop, iotop] - timezone: UTC - locale: en_US.UTF-8 -vagrant_local: - install: '1' - vm: { base_box: trusty64, hostname: hackbrexit, ip: 192.168.51.100, memory: '512', sharedfolder: ./, enableWindows: '1', useVagrantCloud: '1', syncType: nfs } diff --git a/ansible/windows.sh b/ansible/windows.sh deleted file mode 100644 index eab5d9a..0000000 --- a/ansible/windows.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -# Update Repositories -sudo apt-get update - -# Determine Ubuntu Version -. /etc/lsb-release - -# Decide on package to install for `add-apt-repository` command -# -# USE_COMMON=1 when using a distribution over 12.04 -# USE_COMMON=0 when using a distribution at 12.04 or older -USE_COMMON=$(echo "$DISTRIB_RELEASE > 12.04" | bc) - -if [ "$USE_COMMON" -eq "1" ]; -then - sudo apt-get install -y software-properties-common -else - sudo apt-get install -y python-software-properties -fi - -# Add Ansible Repository & Install Ansible -sudo add-apt-repository -y ppa:ansible/ansible -sudo apt-get update -sudo apt-get install -y ansible - -# Setup Ansible for Local Use and Run -cp /vagrant/ansible/inventories/dev /etc/ansible/hosts -f -chmod 666 /etc/ansible/hosts -cat /vagrant/ansible/files/authorized_keys >> /home/vagrant/.ssh/authorized_keys -sudo ansible-playbook /vagrant/ansible/playbook.yml -e hostname=$1 --connection=local \ No newline at end of file diff --git a/app/404.html b/app/404.html new file mode 100644 index 0000000..899828a --- /dev/null +++ b/app/404.html @@ -0,0 +1,152 @@ + + + + + Page Not Found :( + + + +
+

Not found :(

+

Sorry, but the page you were trying to view does not exist.

+

It looks like this was the result of either:

+ + + +
+ + diff --git a/app/favicon.ico b/app/favicon.ico new file mode 100644 index 0000000..6527905 Binary files /dev/null and b/app/favicon.ico differ diff --git a/app/images/yeoman.png b/app/images/yeoman.png new file mode 100644 index 0000000..92497ad Binary files /dev/null and b/app/images/yeoman.png differ diff --git a/app/index.html b/app/index.html new file mode 100644 index 0000000..5806e1e --- /dev/null +++ b/app/index.html @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/robots.txt b/app/robots.txt new file mode 100644 index 0000000..4d521f9 --- /dev/null +++ b/app/robots.txt @@ -0,0 +1,4 @@ +# robotstxt.org + +User-agent: * +Disallow: diff --git a/app/scripts/app.js b/app/scripts/app.js new file mode 100644 index 0000000..19f0312 --- /dev/null +++ b/app/scripts/app.js @@ -0,0 +1,37 @@ +'use strict'; + +/** + * @ngdoc overview + * @name hackbrexitgithubioApp + * @description + * # hackbrexitgithubioApp + * + * Main module of the application. + */ +angular + .module('hackbrexitgithubioApp', [ + 'ngAnimate', + 'ngAria', + 'ngCookies', + 'ngMessages', + 'ngResource', + 'ngRoute', + 'ngSanitize', + 'ngTouch' + ]) + .config(function ($routeProvider) { + $routeProvider + .when('/', { + templateUrl: 'views/main.html', + controller: 'MainCtrl', + controllerAs: 'main' + }) + .when('/about', { + templateUrl: 'views/about.html', + controller: 'AboutCtrl', + controllerAs: 'about' + }) + .otherwise({ + redirectTo: '/' + }); + }); diff --git a/app/scripts/controllers/about.js b/app/scripts/controllers/about.js new file mode 100644 index 0000000..4b1b856 --- /dev/null +++ b/app/scripts/controllers/about.js @@ -0,0 +1,17 @@ +'use strict'; + +/** + * @ngdoc function + * @name hackbrexitgithubioApp.controller:AboutCtrl + * @description + * # AboutCtrl + * Controller of the hackbrexitgithubioApp + */ +angular.module('hackbrexitgithubioApp') + .controller('AboutCtrl', function () { + this.awesomeThings = [ + 'HTML5 Boilerplate', + 'AngularJS', + 'Karma' + ]; + }); diff --git a/app/scripts/controllers/main.js b/app/scripts/controllers/main.js new file mode 100644 index 0000000..f85786a --- /dev/null +++ b/app/scripts/controllers/main.js @@ -0,0 +1,17 @@ +'use strict'; + +/** + * @ngdoc function + * @name hackbrexitgithubioApp.controller:MainCtrl + * @description + * # MainCtrl + * Controller of the hackbrexitgithubioApp + */ +angular.module('hackbrexitgithubioApp') + .controller('MainCtrl', function () { + this.awesomeThings = [ + 'HTML5 Boilerplate', + 'AngularJS', + 'Karma' + ]; + }); diff --git a/app/styles/main.css b/app/styles/main.css new file mode 100644 index 0000000..b2e953f --- /dev/null +++ b/app/styles/main.css @@ -0,0 +1,83 @@ +.browsehappy { + margin: 0.2em 0; + background: #ccc; + color: #000; + padding: 0.2em 0; +} + +body { + padding: 0; +} + +/* Everything but the jumbotron gets side spacing for mobile first views */ +.header, +.marketing, +.footer { + padding-left: 15px; + padding-right: 15px; +} + +/* Custom page header */ +.header { + border-bottom: 1px solid #e5e5e5; + margin-bottom: 10px; +} +/* Make the masthead heading the same height as the navigation */ +.header h3 { + margin-top: 0; + margin-bottom: 0; + line-height: 40px; + padding-bottom: 19px; +} + +/* Custom page footer */ +.footer { + padding-top: 19px; + color: #777; + border-top: 1px solid #e5e5e5; +} + +.container-narrow > hr { + margin: 30px 0; +} + +/* Main marketing message and sign up button */ +.jumbotron { + text-align: center; + border-bottom: 1px solid #e5e5e5; +} +.jumbotron .btn { + font-size: 21px; + padding: 14px 24px; +} + +/* Supporting marketing content */ +.marketing { + margin: 40px 0; +} +.marketing p + h4 { + margin-top: 28px; +} + +/* Responsive: Portrait tablets and up */ +@media screen and (min-width: 768px) { + .container { + max-width: 730px; + } + + /* Remove the padding we set earlier */ + .header, + .marketing, + .footer { + padding-left: 0; + padding-right: 0; + } + /* Space out the masthead */ + .header { + margin-bottom: 30px; + } + /* Remove the bottom border on the jumbotron for visual effect */ + .jumbotron { + border-bottom: 0; + } +} diff --git a/app/views/about.html b/app/views/about.html new file mode 100644 index 0000000..d21bf89 --- /dev/null +++ b/app/views/about.html @@ -0,0 +1 @@ +

This is the about view.

diff --git a/app/views/main.html b/app/views/main.html new file mode 100644 index 0000000..787f33e --- /dev/null +++ b/app/views/main.html @@ -0,0 +1,23 @@ +
+

'Allo, 'Allo!

+

+ I'm Yeoman
+ Always a pleasure scaffolding your apps. +

+

Splendid!

+
+ +
+

HTML5 Boilerplate

+

+ HTML5 Boilerplate is a professional front-end template for building fast, robust, and adaptable web apps or sites. +

+ +

Angular

+

+ AngularJS is a toolset for building the framework most suited to your application development. +

+ +

Karma

+

Spectacular Test Runner for JavaScript.

+
diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..7c3c727 --- /dev/null +++ b/bower.json @@ -0,0 +1,30 @@ +{ + "name": "hackbrexitgithubio", + "version": "0.0.0", + "dependencies": { + "angular": "^1.4.0", + "bootstrap": "^3.2.0", + "angular-animate": "^1.4.0", + "angular-aria": "^1.4.0", + "angular-cookies": "^1.4.0", + "angular-messages": "^1.4.0", + "angular-resource": "^1.4.0", + "angular-route": "^1.4.0", + "angular-sanitize": "^1.4.0", + "angular-touch": "^1.4.0" + }, + "devDependencies": { + "angular-mocks": "^1.4.0" + }, + "appPath": "app", + "moduleName": "hackbrexitgithubioApp", + "overrides": { + "bootstrap": { + "main": [ + "less/bootstrap.less", + "dist/css/bootstrap.css", + "dist/js/bootstrap.js" + ] + } + } +} diff --git a/gallery.html b/gallery.html deleted file mode 100644 index ccbec05..0000000 --- a/gallery.html +++ /dev/null @@ -1,3 +0,0 @@ ---- -layout: gallery ---- diff --git a/img/gallery/hack-brexit-day-1-36.jpg b/img/gallery/hack-brexit-day-1-36.jpg deleted file mode 100644 index 32e59cf..0000000 Binary files a/img/gallery/hack-brexit-day-1-36.jpg and /dev/null differ diff --git a/img/gallery/hack-brexit-day-1-55.jpg b/img/gallery/hack-brexit-day-1-55.jpg deleted file mode 100644 index 37dc9fd..0000000 Binary files a/img/gallery/hack-brexit-day-1-55.jpg and /dev/null differ diff --git a/img/gallery/hack-brexit-day-1-60.jpg b/img/gallery/hack-brexit-day-1-60.jpg deleted file mode 100644 index 0682bd6..0000000 Binary files a/img/gallery/hack-brexit-day-1-60.jpg and /dev/null differ diff --git a/img/gallery/hack-brexit-day-1-67.jpg b/img/gallery/hack-brexit-day-1-67.jpg deleted file mode 100644 index 9ffb2d9..0000000 Binary files a/img/gallery/hack-brexit-day-1-67.jpg and /dev/null differ diff --git a/img/gallery/hackbrexitio.jpg b/img/gallery/hackbrexitio.jpg deleted file mode 100644 index 46907c6..0000000 Binary files a/img/gallery/hackbrexitio.jpg and /dev/null differ diff --git a/img/hackbrexit.png b/img/hackbrexit.png deleted file mode 100644 index 64569e1..0000000 Binary files a/img/hackbrexit.png and /dev/null differ diff --git a/img/panel-audience.jpg b/img/panel-audience.jpg deleted file mode 100644 index 8fb6c1c..0000000 Binary files a/img/panel-audience.jpg and /dev/null differ diff --git a/img/panel.jpg b/img/panel.jpg deleted file mode 100644 index 5e136c1..0000000 Binary files a/img/panel.jpg and /dev/null differ diff --git a/index.html b/index.html deleted file mode 100644 index 0d6905d..0000000 --- a/index.html +++ /dev/null @@ -1,3 +0,0 @@ ---- -layout: default ---- diff --git a/package.json b/package.json new file mode 100644 index 0000000..4b2e20d --- /dev/null +++ b/package.json @@ -0,0 +1,43 @@ +{ + "name": "hackbrexitgithubio", + "private": true, + "devDependencies": { + "autoprefixer-core": "^5.2.1", + "grunt": "^0.4.5", + "grunt-angular-templates": "^0.5.7", + "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": "^1.0.0", + "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-jscs": "^1.8.0", + "grunt-newer": "^1.1.0", + "grunt-ng-annotate": "^0.9.2", + "grunt-postcss": "^0.5.5", + "grunt-svgmin": "^2.0.0", + "grunt-usemin": "^3.0.0", + "grunt-wiredep": "^2.0.0", + "jasmine-core": "^2.4.1", + "jit-grunt": "^0.9.1", + "jshint-stylish": "^1.0.0", + "karma": "^1.2.0", + "karma-jasmine": "^1.0.2", + "karma-phantomjs-launcher": "^1.0.1", + "phantomjs-prebuilt": "^2.1.12", + "time-grunt": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "test": "karma start test/karma.conf.js" + } +} diff --git a/style.css b/style.css deleted file mode 100644 index 873cf20..0000000 --- a/style.css +++ /dev/null @@ -1,4 +0,0 @@ -#header, footer { - padding: 30px 30px; - text-align: center; -} diff --git a/test/.jshintrc b/test/.jshintrc new file mode 100644 index 0000000..b2ce4ef --- /dev/null +++ b/test/.jshintrc @@ -0,0 +1,18 @@ +{ + "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 new file mode 100644 index 0000000..ded3222 --- /dev/null +++ b/test/karma.conf.js @@ -0,0 +1,83 @@ +// Karma configuration +// Generated on 2016-08-24 + +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-aria/angular-aria.js', + 'bower_components/angular-cookies/angular-cookies.js', + 'bower_components/angular-messages/angular-messages.js', + 'bower_components/angular-resource/angular-resource.js', + 'bower_components/angular-route/angular-route.js', + 'bower_components/angular-sanitize/angular-sanitize.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 new file mode 100644 index 0000000..a21ba32 --- /dev/null +++ b/test/spec/controllers/about.js @@ -0,0 +1,23 @@ +'use strict'; + +describe('Controller: AboutCtrl', function () { + + // load the controller's module + beforeEach(module('hackbrexitgithubioApp')); + + 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 new file mode 100644 index 0000000..8969f8b --- /dev/null +++ b/test/spec/controllers/main.js @@ -0,0 +1,23 @@ +'use strict'; + +describe('Controller: MainCtrl', function () { + + // load the controller's module + beforeEach(module('hackbrexitgithubioApp')); + + 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); + }); +});