Commit graph

5 commits

Author SHA1 Message Date
Hyzual
696c51a64c Adds a wiredep config to automatically add bower dependencies to karma.conf.js.
Remove jasmine as a dev-dependency, already included in karma-jasmine
2014-11-09 18:39:01 +01:00
Hyzual
a1d48bbd30 Reorganizes the entire app to follow Google's best practice recommendations for Angular App Structure.
see: https://docs.google.com/document/d/1XXMvReO8-Awi1EZXAXS4PzDzdNvV6pGcuaF4Q9821Es/pub

The files are now grouped by view / component.
Tests are located beside tested js files. The Grunt build will be responsible for only distributing actual files without the tests.
Each partial is at the same level as the js files related to it.
Ideally css files should be at the same level, maybe I'll refactor this later.

Moves all non-bower plugins to app/vendor.
Moves all images to app/images and styles to app/styles.
Merges the test and non-test jshintrc files.

Adds all the Jamstash contributors to the package.json file while I was refactoring.

Conflicts:
	app/app.js
	app/images/vgrabber.gif
	app/images/vgrabber2-active.gif
	app/images/vgrabber2-normal.gif
	app/index.html
2014-11-09 16:10:34 +01:00
Hyzual
2c6276cced Renames all tests according to angularseed's style convention.
Refactors subsonic service's getStarred method to use angular $http and to limit results on the client side since we can't do it with Subsonic's API.

Adds a working unit test for this new method.
2014-11-09 16:00:15 +01:00
Hyzual
fb8bf0ef24 Fixes the "serve" task to enable us to properly launch karma and run tests continuously.
Adds an override to enable wiredep to inject fancybox which doesn't have a "main" in its bower.json.

Tabs to spaces in Gruntfile.js.

Conflicts:
	index.html
2014-11-09 16:00:06 +01:00
Hyzual
dc6aa96d16 Adds a first Grunt file copied from the yeoman angular generator.
It enables us to :
- automatically inject our bower dependencies into index.html,
- run a webserver which will livereload whenever we change files
- run unit tests with karma on a real browser whenever we change files.

Renames the style dir into styles which is the convention.

I've removed a lot of the original gruntfile because I don't yet understand it. I'll add it back when I start working on how to distribute (minify, concat, etc.) the app.

Conflicts:
	index.html
2014-11-09 15:59:37 +01:00