JavaScriptForFun
8 years agoMerge branch 'master' of https://github.com/gumartinm/JavaScriptForFun
gustavo [Sun, 11 Oct 2015 18:47:20 +0000 (20:47 +0200)]
Merge branch 'master' of https://github.com/gumartinm/JavaScriptForFun

8 years agoshowcase: update dependencies versions. Also marked devDependency for gulp-ngdocs...
gustavo [Sun, 11 Oct 2015 18:39:30 +0000 (20:39 +0200)]
showcase: update dependencies versions. Also marked devDependency for gulp-ngdocs since npm v3 and its new flat dependencies.

8 years agoshowcase: update dependencies versions. Also marked devDependency for gulp-ngdocs...
gustavo [Sun, 11 Oct 2015 18:39:30 +0000 (20:39 +0200)]
showcase: update dependencies versions. Also marked devDependency for gulp-ngdocs since npm v3 and its new flat dependencies.

8 years agogulp-my-tasks: update dependencies versions
gustavo [Sun, 11 Oct 2015 18:37:58 +0000 (20:37 +0200)]
gulp-my-tasks: update dependencies versions

8 years agogulp-my-tasks: npm v3 flat dependencies (default gulp-ngdocs paths do not work anymore)
gustavo [Sun, 11 Oct 2015 18:36:32 +0000 (20:36 +0200)]
gulp-my-tasks: npm v3 flat dependencies (default gulp-ngdocs paths do not work anymore)

8 years agoshowcase: testing directive with bindToController
gustavo [Sat, 10 Oct 2015 15:11:22 +0000 (17:11 +0200)]
showcase: testing directive with bindToController

8 years agoshowcase: how to test REST service
gustavo [Sun, 27 Sep 2015 00:21:17 +0000 (02:21 +0200)]
showcase: how to test REST service

8 years agoshowcase: ngdoc improvements
gustavo [Fri, 25 Sep 2015 22:55:25 +0000 (00:55 +0200)]
showcase: ngdoc improvements

8 years agoshowcase: how to test REST service
gustavo [Fri, 25 Sep 2015 22:43:48 +0000 (00:43 +0200)]
showcase: how to test REST service

8 years agoshowcase: returning from success or error (legacy promises) doesn't resolve promise
Gustavo Martin Morcuende [Tue, 22 Sep 2015 23:28:43 +0000 (01:28 +0200)]
showcase: returning from success or error (legacy promises) doesn't resolve promise

8 years agoshowcase: some comments and opinions about spies and stubs in specs
Gustavo Martin Morcuende [Tue, 22 Sep 2015 01:16:23 +0000 (03:16 +0200)]
showcase: some comments and opinions about spies and stubs in specs

8 years agoshowcase: controller as, accessing to parent controller from child ones
Gustavo Martin Morcuende [Sat, 19 Sep 2015 15:14:53 +0000 (17:14 +0200)]
showcase: controller as, accessing to parent controller from child ones

It requires changing the names of controllers in HTML from something common (vm) to
something particular.

8 years agoshowcase: controllers same level and $scope.$on
Gustavo Martin Morcuende [Sat, 19 Sep 2015 13:37:40 +0000 (15:37 +0200)]
showcase: controllers same level and $scope.$on

8 years agoshowcase: using $q.resolve for returning promise from then
Gustavo Martin Morcuende [Thu, 17 Sep 2015 00:06:20 +0000 (02:06 +0200)]
showcase: using $q.resolve for returning promise from then

8 years agoshowcase: better way of testing thenable methods using $apply/$digest
Gustavo Martin Morcuende [Thu, 17 Sep 2015 00:04:22 +0000 (02:04 +0200)]
showcase: better way of testing thenable methods using $apply/$digest

8 years agoshowcase: broadcast, emit, on, rootScope, scope Unit Tests
Gustavo Martin Morcuende [Wed, 16 Sep 2015 00:58:58 +0000 (02:58 +0200)]
showcase: broadcast, emit, on, rootScope, scope Unit Tests

8 years agoshowcase: broadcast, emit, on, rootScope, scope
Gustavo Martin Morcuende [Sun, 13 Sep 2015 23:45:56 +0000 (01:45 +0200)]
showcase: broadcast, emit, on, rootScope, scope

8 years agoshowcase: renaming controllers to NameController and using always $scope and $rootSco...
Gustavo Martin Morcuende [Sun, 13 Sep 2015 23:44:53 +0000 (01:44 +0200)]
showcase: renaming controllers to NameController and using always $scope and $rootScope variables in specs.

8 years agoshowcase: compile/prelink/postlink/controller calling order
Gustavo Martin Morcuende [Sun, 13 Sep 2015 18:24:11 +0000 (20:24 +0200)]
showcase: compile/prelink/postlink/controller calling order

When having parent and child directives

8 years agoshowcase: change bower.json dependencies order
Gustavo Martin Morcuende [Sun, 13 Sep 2015 18:22:58 +0000 (20:22 +0200)]
showcase: change bower.json dependencies order

wiredep fills index.html following the dependencies order in bower.json and we
want jquery being declared before angular.js in index.html file

8 years agoshowcase: update bower.json for font-awesome
Gustavo Martin Morcuende [Sun, 13 Sep 2015 12:38:32 +0000 (14:38 +0200)]
showcase: update bower.json for font-awesome

New specification for main section in bower.json files doesn't work with wiredep as before.

8 years agoupdate to node v4.0.0
Gustavo Martin Morcuende [Sun, 13 Sep 2015 12:17:13 +0000 (14:17 +0200)]
update to node v4.0.0

8 years agoshowcase: having fun with promises and their states
Gustavo Martin Morcuende [Tue, 8 Sep 2015 23:38:30 +0000 (01:38 +0200)]
showcase: having fun with promises and their states

8 years agoshowcase: controller directive
Gustavo Martin Morcuende [Tue, 8 Sep 2015 22:03:49 +0000 (00:03 +0200)]
showcase: controller directive

8 years agoshowcase: directives, controllerAs
Gustavo Martin Morcuende [Mon, 7 Sep 2015 00:48:30 +0000 (02:48 +0200)]
showcase: directives, controllerAs

8 years agoshowcase: stubs
Gustavo Martin Morcuende [Sun, 30 Aug 2015 19:18:11 +0000 (21:18 +0200)]
showcase: stubs

8 years agoshowcase: renaming cars.route and welcome.route services
Gustavo Martin Morcuende [Sun, 30 Aug 2015 19:17:13 +0000 (21:17 +0200)]
showcase: renaming cars.route and welcome.route services

8 years agogulp-my-tasks: exclude stubs from ngdocs
Gustavo Martin Morcuende [Sun, 30 Aug 2015 19:16:16 +0000 (21:16 +0200)]
gulp-my-tasks: exclude stubs from ngdocs

8 years agoshowcase: testing Cars controller, mocking $modal and $modalInstance
Gustavo Martin Morcuende [Sun, 30 Aug 2015 17:46:30 +0000 (19:46 +0200)]
showcase: testing Cars controller, mocking $modal and $modalInstance

8 years agoshowcase: app.cars, testing $modal and promises
Gustavo Martin Morcuende [Sun, 30 Aug 2015 01:23:46 +0000 (03:23 +0200)]
showcase: app.cars, testing $modal and promises

8 years agoshowcase: cars-error-modal.controller.spec
Gustavo Martin Morcuende [Sat, 29 Aug 2015 23:20:30 +0000 (01:20 +0200)]
showcase: cars-error-modal.controller.spec

8 years agogulp-my-tasks: update jshintr, skip jasmine declaration
Gustavo Martin Morcuende [Sat, 29 Aug 2015 23:19:28 +0000 (01:19 +0200)]
gulp-my-tasks: update jshintr, skip jasmine declaration

8 years agoshowcase: cars.controller.spec creating spy without object
Gustavo Martin Morcuende [Sat, 29 Aug 2015 23:18:58 +0000 (01:18 +0200)]
showcase: cars.controller.spec creating spy without object

8 years agoshowcase: cars subapplication, ngdocs improvements
Gustavo Martin Morcuende [Sat, 29 Aug 2015 20:02:51 +0000 (22:02 +0200)]
showcase: cars subapplication, ngdocs improvements

8 years agoshowcase: renaming subapplication from rest to cars
Gustavo Martin Morcuende [Sat, 29 Aug 2015 19:57:50 +0000 (21:57 +0200)]
showcase: renaming subapplication from rest to cars

8 years agoshowcase: angularjs bootstrap modal
Gustavo Martin Morcuende [Sat, 29 Aug 2015 19:35:28 +0000 (21:35 +0200)]
showcase: angularjs bootstrap modal

8 years agogulp-my-tasks: retrieve project name form package.json
Gustavo Martin Morcuende [Sat, 29 Aug 2015 17:11:38 +0000 (19:11 +0200)]
gulp-my-tasks: retrieve project name form package.json

In this way, gulp-my-tasks can work with any project (if it follows my patterns)

8 years agoshowcase: rest.module.js ngdoc improvements
Gustavo Martin Morcuende [Fri, 28 Aug 2015 21:39:07 +0000 (23:39 +0200)]
showcase: rest.module.js ngdoc improvements

8 years agoshowcase: messing around with AngularJS $q (Promise)
Gustavo Martin Morcuende [Fri, 28 Aug 2015 18:09:25 +0000 (20:09 +0200)]
showcase: messing around with AngularJS $q (Promise)

8 years agoecma6: Promise
Gustavo Martin Morcuende [Thu, 27 Aug 2015 19:39:50 +0000 (21:39 +0200)]
ecma6: Promise

8 years agogulp-my-tasks: when injecting stubs into index.html we will also inject angular...
Gustavo Martin Morcuende [Thu, 27 Aug 2015 19:34:52 +0000 (21:34 +0200)]
gulp-my-tasks: when injecting stubs into index.html  we will also inject angular-mock

* angular-mock enables us to use ngMockE2E
* karma.conf.js requires $templateProvider. It is useful when templates in directives are located
      in html files instead of right in the code. We could also use karma-ng-html2js-preprocessor
      but in my case i don't need it because I am already generating my templates :)

8 years agogulp-my-tasks: print, show information about task running inject
Gustavo Martin Morcuende [Thu, 27 Aug 2015 01:22:31 +0000 (03:22 +0200)]
gulp-my-tasks: print, show information about task running inject

8 years agoshowcase: server directory is not required
Gustavo Martin Morcuende [Thu, 27 Aug 2015 01:08:59 +0000 (03:08 +0200)]
showcase: server directory is not required

8 years agogulp-my-tasks: wirdepoptions, show more informartion if verbose argument
Gustavo Martin Morcuende [Thu, 27 Aug 2015 00:53:06 +0000 (02:53 +0200)]
gulp-my-tasks: wirdepoptions, show more informartion if verbose argument

8 years agogulp-my-tasks: karma.conf.js in root directory of every project
Gustavo Martin Morcuende [Thu, 27 Aug 2015 00:36:18 +0000 (02:36 +0200)]
gulp-my-tasks: karma.conf.js in root directory of every project

Better integration with WebStorm

8 years agoshowcase: working with promises
Gustavo Martin Morcuende [Wed, 26 Aug 2015 20:12:13 +0000 (22:12 +0200)]
showcase: working with promises

8 years agoshowcase: REST service cars: get remote values
Gustavo Martin Morcuende [Wed, 26 Aug 2015 14:58:36 +0000 (16:58 +0200)]
showcase: REST service cars: get remote values

8 years agogulp-my-tasks: update karma.conf.js
Gustavo Martin Morcuende [Wed, 26 Aug 2015 14:57:47 +0000 (16:57 +0200)]
gulp-my-tasks: update karma.conf.js

8 years agogulp-my-tasks: using proxy for XHR requests (avoid CORS)
Gustavo Martin Morcuende [Wed, 26 Aug 2015 14:57:09 +0000 (16:57 +0200)]
gulp-my-tasks: using proxy for XHR requests (avoid CORS)

8 years agogulp-my-tasks: update .jshintrc, exclude afterEach and spyOn
Gustavo Martin Morcuende [Wed, 26 Aug 2015 14:56:23 +0000 (16:56 +0200)]
gulp-my-tasks: update .jshintrc, exclude afterEach and spyOn

8 years agoshowcase: AngularJS REST service, API CARS
Gustavo Martin Morcuende [Tue, 25 Aug 2015 19:19:28 +0000 (21:19 +0200)]
showcase: AngularJS REST service, API CARS

8 years agoshowcase: REST web services
Gustavo Martin Morcuende [Tue, 25 Aug 2015 06:31:14 +0000 (08:31 +0200)]
showcase: REST web services

8 years agoshowcase: update README.md
Gustavo Martin Morcuende [Tue, 25 Aug 2015 06:29:41 +0000 (08:29 +0200)]
showcase: update README.md

8 years agogulp-my-tasks: .jscsrc @methodOf validation
Gustavo Martin Morcuende [Tue, 25 Aug 2015 06:27:13 +0000 (08:27 +0200)]
gulp-my-tasks: .jscsrc @methodOf validation

8 years agoshowcase: using gulp-my-tasks npm package
Gustavo Martin Morcuende [Mon, 24 Aug 2015 20:34:57 +0000 (22:34 +0200)]
showcase: using gulp-my-tasks npm package

8 years agogulp: gulp-my-tasks, npm module for running my gulp tasks
Gustavo Martin Morcuende [Mon, 24 Aug 2015 20:25:02 +0000 (22:25 +0200)]
gulp: gulp-my-tasks, npm module for running my gulp tasks

In this way I should be able to use the same tasks in any AngularJS project
(if it follows my patterns)

8 years agoshowcase: fixing license field in package.json
Gustavo Martin Morcuende [Sun, 23 Aug 2015 16:58:24 +0000 (18:58 +0200)]
showcase: fixing license field in package.json

8 years agoshowcase: gulpfile.js missing readDelay value
Gustavo Martin Morcuende [Sat, 22 Aug 2015 03:15:09 +0000 (05:15 +0200)]
showcase: gulpfile.js missing readDelay value

8 years agoshowcase: generate ngdocs
Gustavo Martin Morcuende [Sat, 22 Aug 2015 03:13:17 +0000 (05:13 +0200)]
showcase: generate ngdocs

8 years agoshowcase: files synchronization, gulp function
Gustavo Martin Morcuende [Fri, 21 Aug 2015 20:23:11 +0000 (22:23 +0200)]
showcase: files synchronization, gulp function

8 years agoshowcase: ngdoc minor improvements
Gustavo Martin Morcuende [Fri, 21 Aug 2015 20:22:47 +0000 (22:22 +0200)]
showcase: ngdoc minor improvements

8 years ago.gitignore modification for temporary gulp folders
Gustavo Martin Morcuende [Fri, 21 Aug 2015 16:34:10 +0000 (18:34 +0200)]
.gitignore modification for temporary gulp folders

8 years agoshowcase: gulp-htmlhint
Gustavo Martin Morcuende [Fri, 21 Aug 2015 16:33:23 +0000 (18:33 +0200)]
showcase: gulp-htmlhint

8 years agoshowcase: ngdoc improvements
Gustavo Martin Morcuende [Fri, 21 Aug 2015 16:32:44 +0000 (18:32 +0200)]
showcase: ngdoc improvements

8 years agoshowcase: update documentation with @ngdoc
Gustavo Martin Morcuende [Fri, 21 Aug 2015 14:46:22 +0000 (16:46 +0200)]
showcase: update documentation with @ngdoc

8 years agoshowcase: welcome route (routing per module instead of a global routing)
Gustavo Martin Morcuende [Fri, 21 Aug 2015 14:45:36 +0000 (16:45 +0200)]
showcase: welcome route (routing per module instead of a global routing)

8 years agoshowcase: create $templateCache from html templates
Gustavo Martin Morcuende [Thu, 20 Aug 2015 20:45:43 +0000 (22:45 +0200)]
showcase: create $templateCache from html templates

8 years agoshowcase: karma.conf.js show coverage report as text in CLI
Gustavo Martin Morcuende [Thu, 20 Aug 2015 20:41:29 +0000 (22:41 +0200)]
showcase: karma.conf.js show coverage report as text in CLI

8 years agoshowcase: gulp-header improvements
Gustavo Martin Morcuende [Thu, 20 Aug 2015 13:50:59 +0000 (15:50 +0200)]
showcase: gulp-header improvements

8 years agoshowcase: gulp task for building production environment
Gustavo Martin Morcuende [Thu, 20 Aug 2015 13:32:53 +0000 (15:32 +0200)]
showcase: gulp task for building production environment

8 years agoshowcase: build application, gulp task
Gustavo Martin Morcuende [Thu, 20 Aug 2015 02:41:31 +0000 (04:41 +0200)]
showcase: build application, gulp task

8 years agoshowcase: wiredep in karma.conf.js file
Gustavo Martin Morcuende [Thu, 20 Aug 2015 00:40:42 +0000 (02:40 +0200)]
showcase: wiredep in karma.conf.js file

8 years agoshowcase: Manually Identify Dependencies with ng-strict-di vs @ngInject
Gustavo Martin Morcuende [Thu, 20 Aug 2015 00:19:18 +0000 (02:19 +0200)]
showcase: Manually Identify Dependencies with ng-strict-di vs @ngInject

8 years agoshowcase: karma using report directory for JUnit reports
Gustavo Martin Morcuende [Wed, 19 Aug 2015 20:34:00 +0000 (22:34 +0200)]
showcase: karma using report directory for JUnit reports

8 years agoshowcase: update jshintrc for Jasmine statements
Gustavo Martin Morcuende [Wed, 19 Aug 2015 20:33:23 +0000 (22:33 +0200)]
showcase: update jshintrc for Jasmine statements

8 years agoshowcase: welcome controller
Gustavo Martin Morcuende [Wed, 19 Aug 2015 20:32:55 +0000 (22:32 +0200)]
showcase: welcome controller

8 years agoshowcase: using gulp instead of nmp scripts for running HTTP server
Gustavo Martin Morcuende [Wed, 19 Aug 2015 19:26:42 +0000 (21:26 +0200)]
showcase: using gulp instead of nmp scripts for running HTTP server

8 years agoshowcase: gulp task test
Gustavo Martin Morcuende [Wed, 19 Aug 2015 19:17:22 +0000 (21:17 +0200)]
showcase: gulp task test

8 years agoshowcase: run HTTP server from gulp task.
Gustavo Martin Morcuende [Tue, 18 Aug 2015 17:37:14 +0000 (19:37 +0200)]
showcase: run HTTP server from gulp task.

8 years agoshowcase: gulp wiredep task
Gustavo Martin Morcuende [Tue, 18 Aug 2015 00:54:52 +0000 (02:54 +0200)]
showcase: gulp wiredep task

8 years agoshowcase: jscsrc, update maximumLineLength to 120
Gustavo Martin Morcuende [Tue, 18 Aug 2015 00:49:32 +0000 (02:49 +0200)]
showcase: jscsrc, update maximumLineLength to 120

8 years agoshowcase: new gulp tasks
Gustavo Martin Morcuende [Mon, 17 Aug 2015 17:13:01 +0000 (19:13 +0200)]
showcase: new gulp tasks

8 years agoshowcase: new directories hierarchy
Gustavo Martin Morcuende [Mon, 17 Aug 2015 16:53:54 +0000 (18:53 +0200)]
showcase: new directories hierarchy

8 years agoshowcase: jshintrc improvement
Gustavo Martin Morcuende [Mon, 17 Aug 2015 16:53:15 +0000 (18:53 +0200)]
showcase: jshintrc improvement

8 years agoshowcase: enable reporters and preprocessors for coverage reports
Gustavo Martin Morcuende [Sun, 16 Aug 2015 21:21:00 +0000 (23:21 +0200)]
showcase: enable reporters and preprocessors for coverage reports

8 years agoshowcase: karma.conf.js code coverages reports
Gustavo Martin Morcuende [Sun, 16 Aug 2015 21:03:23 +0000 (23:03 +0200)]
showcase: karma.conf.js code coverages reports

8 years agoshowcase: ng-app vs angular.bootstrap, in my case using ng-app
Gustavo Martin Morcuende [Sun, 16 Aug 2015 20:48:51 +0000 (22:48 +0200)]
showcase: ng-app vs angular.bootstrap, in my case using ng-app

8 years agoshowcase: using karma.conf.js (started from npm)
Gustavo Martin Morcuende [Sun, 16 Aug 2015 20:48:05 +0000 (22:48 +0200)]
showcase: using karma.conf.js (started from npm)

8 years agoshowcase: bower.json and package.json declare version numbers
Gustavo Martin Morcuende [Sun, 16 Aug 2015 20:47:30 +0000 (22:47 +0200)]
showcase: bower.json and package.json declare version numbers

8 years agoupdate jscsrc: indent 2 jshintrc: unilimited errors
Gustavo Martin Morcuende [Sun, 16 Aug 2015 20:43:27 +0000 (22:43 +0200)]
update jscsrc: indent 2  jshintrc: unilimited errors

8 years agoUpdate gitignore for karma tests: coverage and unit test results directories
Gustavo Martin Morcuende [Sun, 16 Aug 2015 20:42:14 +0000 (22:42 +0200)]
Update gitignore for karma tests: coverage and unit test results directories

8 years agojshint and jscs taken from https://github.com/johnpapa/angular-styleguide
Gustavo Martin Morcuende [Sat, 15 Aug 2015 22:27:46 +0000 (00:27 +0200)]
jshint and jscs taken from https://github.com/johnpapa/angular-styleguide

8 years agoshowcase, welcome page without $templateCache
Gustavo Martin Morcuende [Sat, 15 Aug 2015 22:27:23 +0000 (00:27 +0200)]
showcase, welcome page without $templateCache

8 years agoAngularJS: showcase
Gustavo Martin Morcuende [Mon, 20 Jul 2015 00:48:15 +0000 (02:48 +0200)]
AngularJS: showcase

8 years agoGames: Tetris
Gustavo Martin Morcuende [Sun, 19 Jul 2015 18:40:48 +0000 (20:40 +0200)]
Games: Tetris

8 years agoUpdate gitignore file
Gustavo Martin Morcuende [Sun, 19 Jul 2015 18:24:43 +0000 (20:24 +0200)]
Update gitignore file

8 years agoCreate README.md
Gustavo Martin Morcuende [Sun, 19 Jul 2015 18:01:05 +0000 (20:01 +0200)]
Create README.md