Skip to content

Commit abed72d

Browse files
committed
Merge branch 'master' of github.com:angular-ui/ui-router
2 parents e83cfe2 + ca49860 commit abed72d

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

Gruntfile.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = function (grunt) {
5858
},
5959
watch: {
6060
files: ['src/*.js', 'test/**/*.js'],
61-
tasks: ['build','karma:debug']
61+
tasks: ['build','karma:debug:run']
6262
},
6363
connect: {
6464
server: {}
@@ -74,16 +74,16 @@ module.exports = function (grunt) {
7474
debug: {
7575
configFile: 'test/test-config.js',
7676
runnerPort: 9999,
77-
singleRun: true,
78-
browsers: ['PhantomJS']
77+
background: true,
78+
browsers: ['Chrome']
7979
}
8080
}
8181
});
8282

8383
grunt.registerTask('default', ['build', 'jshint', 'karma:unit']);
8484
grunt.registerTask('build', 'Perform a normal build', ['concat', 'uglify']);
8585
grunt.registerTask('dist', 'Perform a clean build and generate documentation', ['clean', 'build', 'jsdoc']);
86-
grunt.registerTask('dev', 'Run dev server and watch for changes', ['build', 'connect', 'watch']);
86+
grunt.registerTask('dev', 'Run dev server and watch for changes', ['build', 'connect', 'karma:debug', 'watch']);
8787

8888
// grunt.registerTask('test-server', 'Start testacular server', function () {
8989
// //Mark the task as async but never call done, so the server stays up

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,19 @@ To evolve the concept of an Angular "Route" into a more general concept of a "St
2424
* [Generated Docs](http://angular-ui.github.com/ui-router/build/doc/)
2525
* Latest build: [angular-ui-states.min.js](http://angular-ui.github.com/ui-router/build/angular-ui-states.min.js)
2626
(uncompressed [angular-ui-states.js](http://angular-ui.github.com/ui-router/build/angular-ui-states.js))
27+
28+
# Developing
29+
30+
Dependencies for building the solution and running tests:
31+
32+
* [karma](http://karma-runner.github.com/) - run: `$ npm install -g karma`
33+
* [grunt-cli](https://github.com/gruntjs/grunt-cli) - run: `$ npm install -g grunt-cli`
34+
* Then install development dependencies with: `$ npm install`
35+
36+
There is a number of targets in the gruntfile that is used to building the solution, documents etc.
37+
38+
* `grunt`: Perform a normal build, runs jshint and karma tests
39+
* `grunt build`: Perform a normal build
40+
* `grunt dist`: Perform a clean build and generate documentation
41+
* `grunt dev`: Run dev server and watch for changes, builds and runs karma tests on changes.
42+

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"grunt-contrib-watch": "~0.3.1",
3737
"grunt-contrib-connect": "~0.2.0",
3838
"grunt-contrib-clean": "~0.4.0",
39-
"grunt-karma": "~0.3.0",
39+
"grunt-karma": "~0.4.3",
4040
"underscore": "~1.4.4"
4141
}
4242
}

0 commit comments

Comments
 (0)