Permalink
Browse files

chore: moved to eslint and started dropping gulp + e2e tests

  • Loading branch information...
mcasimir committed Aug 24, 2016
1 parent 7a4348a commit 9f7424c6c1e5103d8d3c5a195bdc0bd16fe66494
Showing with 2,831 additions and 2,696 deletions.
  1. +9 −0 .babelrc
  2. +12 −0 .depcheckrc
  3. +5 −0 .eslintignore
  4. +40 −0 .eslintrc
  5. +1 −0 .gitignore
  6. +0 −32 .jscsrc
  7. +0 −15 .jshintrc
  8. +1 −1 .travis.yml
  9. +0 −6 ci.sh
  10. +5 −3 config.js
  11. +0 −15 demo/angular-route.min.js
  12. +0 −298 demo/angular.min.js
  13. +30 −31 demo/demo.js
  14. +2 −12 demo/index.html
  15. +163 −9 dist/css/mobile-angular-ui-base.css
  16. +2 −2 dist/css/mobile-angular-ui-base.min.css
  17. BIN dist/fonts/fontawesome-webfont.eot
  18. +44 −14 dist/fonts/fontawesome-webfont.svg
  19. BIN dist/fonts/fontawesome-webfont.ttf
  20. BIN dist/fonts/fontawesome-webfont.woff
  21. BIN dist/fonts/fontawesome-webfont.woff2
  22. +335 −289 dist/js/mobile-angular-ui.core.js
  23. +1 −1 dist/js/mobile-angular-ui.core.min.js
  24. +1 −1 dist/js/mobile-angular-ui.core.min.js.map
  25. +264 −202 dist/js/mobile-angular-ui.gestures.js
  26. +1 −1 dist/js/mobile-angular-ui.gestures.min.js
  27. +1 −1 dist/js/mobile-angular-ui.gestures.min.js.map
  28. +477 −424 dist/js/mobile-angular-ui.js
  29. +1 −1 dist/js/mobile-angular-ui.min.js
  30. +1 −1 dist/js/mobile-angular-ui.min.js.map
  31. +176 −6 gulpfile.js
  32. +33 −19 package.json
  33. +22 −22 src/js/components/modals.js
  34. +36 −33 src/js/components/scrollable.js
  35. +8 −4 src/js/components/sidebars.js
  36. +71 −71 src/js/components/switch.js
  37. +10 −5 src/js/core/activeLinks.js
  38. +110 −101 src/js/core/capture.js
  39. +5 −3 src/js/core/fastclick.js
  40. +68 −68 src/js/core/outerClick.js
  41. +111 −83 src/js/core/sharedState.js
  42. +25 −23 src/js/core/touchmoveDefaults.js
  43. +128 −128 src/js/gestures/drag.js
  44. +1 −1 src/js/gestures/swipe.js
  45. +51 −25 src/js/gestures/touch.js
  46. +77 −45 src/js/gestures/transform.js
  47. +1 −1 src/js/mobile-angular-ui.components.js
  48. +1 −1 src/js/mobile-angular-ui.core.js
  49. +7 −3 src/js/mobile-angular-ui.gestures.js
  50. +1 −1 src/js/mobile-angular-ui.js
  51. +0 −131 tasks/build.js
  52. +0 −50 tasks/depcheck.js
  53. +0 −52 tasks/dev.js
  54. +0 −25 tasks/lint.js
  55. +0 −54 tasks/test.js
  56. +58 −0 test/e2e/.eslintrc
  57. +24 −0 test/e2e/demo/DemoPage.js
  58. +8 −0 test/e2e/demo/HomePage.js
  59. +17 −0 test/e2e/demo/homepage.spec.js
  60. +7 −5 test/{ → e2e}/protractor.conf.js
  61. +28 −28 test/e2e/scrollable.spec.js
  62. +0 −37 test/e2e/sidebar.spec.js
  63. +39 −0 test/unit/.eslintrc
  64. +9 −9 test/unit/components/modals.spec.js
  65. +7 −7 test/unit/components/navbars.spec.js
  66. +15 −15 test/unit/components/scrollable.spec.js
  67. +29 −29 test/unit/components/sidebars.spec.js
  68. +32 −32 test/unit/components/switch.spec.js
  69. +22 −22 test/unit/core/activeLinks.spec.js
  70. +7 −9 test/unit/core/capture/Capture.spec.js
  71. +7 −7 test/unit/core/capture/ui-content-for.spec.js
  72. +9 −9 test/unit/core/capture/ui-yield-to.spec.js
  73. +8 −8 test/unit/core/fastClick.spec.js
  74. +51 −51 test/unit/core/outerClick.spec.js
  75. +6 −6 test/unit/core/sharedState/SharedState.spec.js
  76. +11 −11 test/unit/core/sharedState/ui-class.js
  77. +8 −8 test/unit/core/sharedState/ui-hide.js
  78. +7 −7 test/unit/core/sharedState/ui-if.spec.js
  79. +13 −13 test/unit/core/sharedState/ui-scope-context.spec.js
  80. +10 −10 test/unit/core/sharedState/ui-show.spec.js
  81. +6 −6 test/unit/core/sharedState/ui-state.spec.js
  82. +15 −15 test/unit/core/sharedState/ui-toggle.spec.js
  83. +15 −15 test/unit/core/sharedState/ui-turn-off.spec.js
  84. +15 −15 test/unit/core/sharedState/ui-turn-on.spec.js
  85. +10 −8 test/{ → unit}/karma.conf.js
@@ -0,0 +1,9 @@
{
"presets": [
"es2015"
],
"plugins": [
"syntax-async-functions",
"transform-regenerator"
]
}
@@ -0,0 +1,12 @@
var config = require('./config');

module.exports = {
ignoreDirs: ['dist'],
ignore: config.globs.js.concat(config.globs.fonts)
.filter(function(path) {
return path.match(/^node_modules/);
}).map(function(path) {
return path.split('/')[1];
})
.concat(config.depcheck.ignore)
}
@@ -0,0 +1,5 @@
node_modules/*
lib/*
coverage/*
dist/*
demo/*.min.js
@@ -0,0 +1,40 @@
{
"extends": [
"eslint:recommended",
"google"
],
"plugins": [
"babel"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {}
},
"globals": {
"angular": false,
"FastClick": false,
"overthrow": false
},
"env": {
"browser": true,
"node": true
},
"rules": {
"new-cap": 0,
"no-console": [1, { "allow": ["info", "warn", "error"] }],
"quotes": [2, "single"],
"no-unused-vars": 2,
"eqeqeq": 2,
"complexity": [2, 10],
"max-len": [2, 160],
"comma-dangle": [2, "never"],
"no-mixed-spaces-and-tabs": 2,
"quote-props": [2, "as-needed"],
"padded-blocks": 0,
"require-jsdoc": 0,
"generator-star-spacing": 0,
"babel/generator-star-spacing": 1,
"valid-jsdoc": 1
}
}
@@ -150,3 +150,4 @@ xcuserdata/
sftp-config.json

travis.sh
nohup.out
32 .jscsrc

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -8,7 +8,7 @@ before_install:
services:
- docker
script:
- docker run --rm --privileged -w /usr/src/app -v $PWD:/usr/src/app mcasimir/dind-node-build-runner:6.2.1 bash ci.sh
- docker run --rm --privileged -w /usr/src/app -v $PWD:/usr/src/app mcasimir/dind-node-build-runner:6.2.1 xvfb-run npm test
- node_modules/.bin/codecov
deploy:
provider: npm
6 ci.sh

This file was deleted.

Oops, something went wrong.
@@ -1,8 +1,8 @@
'use strict';

var path = require('path');
let path = require('path');

var config = {
let config = {
globs: {
core: [
'node_modules/fastclick/lib/fastclick.js',
@@ -49,7 +49,9 @@ var config = {
'karma-selenium-webdriver-launcher',
'karma-coverage',
'karma-chrome-launcher',
'selenium-webdriver'
'selenium-webdriver',
'chromedriver',
'precommit'
]
},
lint: ['./src/**/*.js', './test/**/*.js', './*.js']

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 9f7424c

Please sign in to comment.