JavaScriptForFun
9 years agogulp-my-tasks: jscs rules and gulp plugin
gustavo [Sun, 15 Nov 2015 22:46:43 +0000 (23:46 +0100)]
gulp-my-tasks: jscs rules and gulp plugin

9 years agoupdate dependencies
gustavo [Wed, 11 Nov 2015 23:40:57 +0000 (00:40 +0100)]
update dependencies

9 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

9 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.

9 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.

9 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

9 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)

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

9 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

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

9 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

9 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

9 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

9 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.

9 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

9 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

9 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

9 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

9 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

9 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.

9 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

9 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

9 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.

9 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

9 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

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

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

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

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

9 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)

9 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

9 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)

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

9 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 :)

9 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

9 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

9 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

9 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

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

9 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

9 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

9 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)

9 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

9 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

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

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

9 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

9 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

9 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)

9 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

9 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

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

9 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

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

9 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

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

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

9 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

9 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)

9 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

9 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

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

9 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

9 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

9 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

9 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

9 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

9 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

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

9 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

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

9 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.

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

9 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

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

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

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

9 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

9 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

9 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

9 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)

9 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

9 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

9 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

9 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

9 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

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

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

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

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