Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit ea39f79

Browse files
committed
fix(angular annotations): added automatic annotation via gulp-ng-annotate
1 parent b5b4640 commit ea39f79

File tree

5 files changed

+3901
-71
lines changed

5 files changed

+3901
-71
lines changed

dist/ui-leaflet-draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @version: 0.0.3
55
* @author: Nicholas McCready
6-
* @date: Sat Mar 18 2017 10:03:35 GMT-0400 (EDT)
6+
* @date: Sat Mar 18 2017 13:32:12 GMT-0400 (EDT)
77
* @license: MIT
88
*/
99

gulp/tasks/spec.coffee

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
gulp = require 'gulp'
2-
Karma = require('karma').Server
3-
open = require 'open'
42
{log} = require 'gulp-util'
3+
assign = require 'object-assign'
4+
karmaKick = require 'karma-kickoff'
5+
argv = require('yargs').argv
56

6-
karmaRunner = (done, karmaConf = require.resolve('../../karma.conf.coffee')) ->
7-
log '-- Karma Setup --'
8-
try
9-
server = new Karma
10-
configFile: karmaConf
11-
singleRun: true, (code) ->
12-
log "Karma Callback Code: #{code}"
13-
done(code)
14-
server.start()
15-
catch e
16-
log "KARMA ERROR: #{e}"
17-
done(e)
7+
opts =
8+
configFile: '../../karma.conf.coffee'
9+
logFn: log
1810

1911
gulp.task 'karma', (done) ->
20-
karmaRunner(done)
12+
karmaKick done, assign {}, opts,
13+
reporters:['dots', 'coverage']
14+
singleRun: true
2115

22-
gulp.task 'spec', ['karma']
16+
gulp.task 'karmaMocha', (done) ->
17+
karmaKick(done, opts)
2318

24-
doOpen = (name = '') -> (done)->
25-
open "dist/coverage/lib#{name}/index.html", 'Google Chrome', done
19+
gulp.task 'karmaFiles', (done) ->
20+
karmaKick done, assign {}, opts,
21+
appendFiles: argv.files
22+
lengthToPop: 1
23+
singleRun: true
2624

27-
gulp.task 'coverage', doOpen()
25+
gulp.task 'spec', ['karma']

karma.conf.coffee

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@
22
module.exports = (config) ->
33
config.set
44

5-
# plugins: [
6-
# 'karma-phantomjs-launcher'
7-
# "karma-chai"
8-
# "karma-chrome-launcher"
9-
# "karma-coffee-preprocessor"
10-
# "karma-coverage"
11-
# "karma-mocha"
12-
# "karma-mocha-reporter"
13-
# ]
145
# base path that will be used to resolve all patterns (eg. files, exclude)
156
basePath: './'
167

@@ -41,10 +32,10 @@ module.exports = (config) ->
4132
'bower_components/angular-simple-logger/dist/angular-simple-logger.js'
4233
'bower_components/ui-leaflet/dist/ui-leaflet.js'
4334
'dist/ui-leaflet-draw.js'
44-
'spec/*.spec.coffee'
4535
#do not include those specs for jasmine html runner by karma kama_jasmine_runner.html
4636
{pattern:'src/*.coffee', included: false}
4737
{pattern:'spec/*.coffee', included: false}
38+
'spec/*.spec.coffee'
4839
]
4940

5041
# list of files to exclude

package.json

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -11,50 +11,51 @@
1111
"author": "Nicholas McCready",
1212
"license": "MIT",
1313
"dependencies": {
14-
"angular": "1.X",
15-
"leaflet": "0.7.X",
14+
"angular": "1",
15+
"leaflet": "0.7",
1616
"leaflet-draw": "git://github.com/michaelguild13/Leaflet.draw.git#master",
17-
"ui-leaflet": "1.X"
17+
"ui-leaflet": "1"
1818
},
1919
"devDependencies": {
20-
"angular-mocks": "1.X",
21-
"chai": "3.X",
22-
"coffee-script": "1.9.X",
23-
"del": "2.X",
24-
"globby": "3.X",
25-
"gulp": "3.X",
26-
"gulp-bump": "1.X",
27-
"gulp-coffee": "2.X",
28-
"gulp-coffeelint": "0.5.X",
29-
"gulp-concat": "2.X",
30-
"gulp-debug": "2.X",
31-
"gulp-git": "1.X",
32-
"gulp-if": "2.X",
33-
"gulp-insert": "0.5.X",
34-
"gulp-ng-annotate": "2.X",
35-
"gulp-replace": "0.5.X",
36-
"gulp-sequence2": "0.1.6",
37-
"gulp-tag-version": "1.X",
38-
"gulp-task-listing": "1.X",
39-
"gulp-uglify": "1.X",
40-
"gulp-util": "3.0.X",
41-
"gulp-wrap": "0.11.X",
42-
"http-server": "^0.8.5",
43-
"jsonfile": "^2.2.2",
44-
"karma": "0.13.X",
45-
"karma-chai": "0.X.0",
46-
"karma-chrome-launcher": "0.X",
47-
"karma-coffee-preprocessor": "0.X",
48-
"karma-coverage": "0.X",
49-
"karma-mocha": "^0.2.0",
50-
"karma-mocha-reporter": "1.X",
51-
"karma-phantomjs-launcher": "0.2.3",
52-
"mocha": "2.X",
53-
"open": "0.0.X",
54-
"phantomjs-polyfill": "0.0.2",
55-
"phantomjs-prebuilt": "2.X",
56-
"pretty-hrtime": "1.X",
57-
"require-directory": "2.X"
20+
"angular-mocks": "1",
21+
"chai": "3",
22+
"coffee-script": "1.12",
23+
"del": "2",
24+
"gulp": "3",
25+
"gulp-bump": "1",
26+
"gulp-coffee": "2",
27+
"gulp-coffeelint": "0.6",
28+
"gulp-concat": "2",
29+
"gulp-debug": "3",
30+
"gulp-git": "1",
31+
"gulp-if": "2",
32+
"gulp-insert": "0.5",
33+
"gulp-ng-annotate": "2",
34+
"gulp-replace": "0.5",
35+
"gulp-sequence2": "0.1",
36+
"gulp-tag-version": "1",
37+
"gulp-task-listing": "1",
38+
"gulp-uglify": "2",
39+
"gulp-util": "3.0",
40+
"gulp-wrap": "0.13",
41+
"http-server": "0",
42+
"jsonfile": "2",
43+
"karma": "1",
44+
"karma-chai": "0",
45+
"karma-chrome-launcher": "2",
46+
"karma-coffee-preprocessor": "1",
47+
"karma-coverage": "1",
48+
"karma-kickoff": "0.0",
49+
"karma-mocha": "1",
50+
"karma-mocha-reporter": "2",
51+
"karma-phantomjs-launcher": "1",
52+
"mocha": "3",
53+
"object-assign": "^4.1.1",
54+
"open": "0",
55+
"phantomjs-polyfill": "0",
56+
"phantomjs-prebuilt": "2",
57+
"pretty-hrtime": "1",
58+
"require-directory": "2"
5859
},
5960
"scripts": {
6061
"start": "gulp",

0 commit comments

Comments
 (0)