Lots of updates

This commit is contained in:
baldo 2016-05-16 13:33:49 +02:00
parent e3cfff8310
commit 39e7af6238
454 changed files with 221168 additions and 36622 deletions

View file

@ -0,0 +1,54 @@
test:
- 'jshint'
- 'test-unit'
- 'test-e2e'
test-unit:
- 'karma:unit'
test-e2e:
- 'shell:protractor_update'
- 'connect:testserver'
- 'protractor:run'
test-e2e-firefox:
- 'shell:protractor_update'
- 'connect:testserver'
- 'protractor:firefox'
coverage:
- 'karma:unit_coverage'
- 'open:coverage'
- 'connect:coverage'
install:
- 'shell:npm_install'
- 'bower:install'
- 'shell:protractor_update'
default:
- 'build'
fast-build:
- 'clean:dist'
- 'jshint'
- 'jscs'
- 'concat:dist'
- 'ngAnnotate'
- 'uglify'
- 'concat:license'
- 'concat:license-minified'
build:
- 'fast-build'
- 'test-unit'
- 'clean:pre'
travis:
- 'fast-build'
- 'bower:install'
- 'test-unit'
examples:
- 'shell:examples'
- 'concat:examples'

View file

@ -0,0 +1,4 @@
{
"dist": ["dist"],
"pre": ["dist/*.pre.js"]
}

View file

@ -0,0 +1,36 @@
{
"dist": {
"options": {
"banner": "/*!\n* <%= pkg.name %> <%= pkg.version %> <%= grunt.template.today(\"yyyy-mm-dd\") %>\n* <%= pkg.description %>\n* <%= pkg.repository.type %>: <%= pkg.repository.url %>\n*/\n(function(angular){\n'use strict';\n",
"footer": "\n}(angular));"
},
"src": [
"src/directives/leaflet.js",
"src/services/*.js",
"src/**/*.js"
],
"dest": "dist/angular-leaflet-directive.pre.js"
},
"license": {
"src": [
"src/header-MIT-license.txt",
"dist/angular-leaflet-directive.no-header.js"
],
"dest": "dist/angular-leaflet-directive.js"
},
"license-minified": {
"src": [
"src/header-MIT-license.txt",
"dist/angular-leaflet-directive.min.no-header.js"
],
"dest": "dist/angular-leaflet-directive.min.js"
},
"examples": {
"options": {
"banner": "(function(angular){ \nvar app = angular.module('webapp');\n",
"footer": "}(angular));"
},
"src": ["examples/js/controllers/*.js"],
"dest": "examples/js/controllers.js"
}
}

View file

@ -0,0 +1,18 @@
{
"options": {
"base": ""
},
"testserver": {
"options": {
"port": 9999
}
},
"coverage": {
"options": {
"base": "coverage/",
"directory": "coverage/",
"port": 5555,
"keepalive": true
}
}
}

View file

@ -0,0 +1,7 @@
{
"src": ["src/directives/*.js", "src/services/**/*.js"],
"options": {
"config": ".jscsrc",
"fix": true
}
}

View file

@ -0,0 +1,14 @@
{
"options": {
"jshintrc": true
},
"source": {
"src": ["src/directives/*.js", "src/services/**/*.js"]
},
"tests": {
"src": ["test/unit/*.js", "test/e2e/*.js"]
},
"grunt": {
"src": ["Gruntfile.js"]
}
}

View file

@ -0,0 +1,7 @@
{
"unit": {
"configFile": "test/karma-unit.conf.js",
"autoWatch": false,
"singleRun": true
}
}

View file

@ -0,0 +1,8 @@
{
"options": {},
"dist": {
"files": {
"dist/angular-leaflet-directive.no-header.js": [ "dist/angular-leaflet-directive.pre.js" ]
}
}
}

View file

@ -0,0 +1,8 @@
{
"devserver": {
"path": "http://localhost:8888"
},
"coverage": {
"path": "http://localhost:5555"
}
}

View file

@ -0,0 +1,20 @@
{
"options": {
"keepAlive": false,
"configFile": "test/protractor.conf.js",
"nocolor": false,
"args": {
"specs": [ "test/e2e/*.js" ]
}
},
"run": {},
"saucelabs": {
"options": {
"args": {
"baseUrl": "http://tombatossals.github.io/angular-leaflet-directive/examples/",
"sauceUser": "<%= saucelabs.SAUCE_USERNAME %>",
"sauceKey": "<% saucelabs.SAUCE_ACCESS_KEY %>"
}
}
}
}

View file

@ -0,0 +1,21 @@
{
"options": {
"stdout": true
},
"selenium": {
"command": "node node_modules/protractor/bin/webdriver-manager start",
"options": {
"stdout": false,
"async": true
}
},
"protractor_update": {
"command": "node node_modules/protractor/bin/webdriver-manager update"
},
"npm_install": {
"command": "npm install"
},
"examples": {
"command": "node generate-examples.js"
}
}

View file

@ -0,0 +1,11 @@
{
"dist": {
"options": {
"banner": "/*!\n* <%= pkg.name %> <%= pkg.version %> <%= grunt.template.today(\"yyyy-mm-dd\") %>\n* <%= pkg.description %>\n* <%= pkg.repository.type %>: <%= pkg.repository.url %>\n*/\n(function(angular){\n'use strict';\n",
"footer": "\n}(angular));"
},
"files": {
"dist/<%= pkg.name %>.min.no-header.js": ["dist/<%= pkg.name %>.no-header.js"]
}
}
}

View file

@ -0,0 +1,9 @@
{
"options": {
"livereload": 7777
},
"fast": {
"files": [ "src/**/*.js", "test/unit/**.js", "test/unit/**.coffee", "test/e2e/**.js" ],
"tasks": [ "fast-build" ]
}
}