aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
AgeCommit message (Collapse)Author
2013-03-05chore(Grunt): switch from Rake to GruntDave Geddes
Migrates the Angular project from Rake to Grunt. Benefits: - Drops Ruby dependency - Lowers barrier to entry for contributions from JavaScript ninjas - Simplifies the Angular project setup and build process - Adopts industry-standard tools specific to JavaScript projects - Support building angular.js on Windows platform (really?!? why?!?) BREAKING CHANGE: Rake is completely replaced by Grunt. Below are the deprecated Rake tasks and their Grunt equivalents: rake --> grunt rake package --> grunt package rake init --> N/A rake clean --> grunt clean rake concat_scenario --> grunt build:scenario rake concat --> grunt build rake concat_scenario --> grunt build:scenario rake minify --> grunt minify rake version --> grunt write:version rake docs --> grunt docs rake webserver --> grunt webserver rake test --> grunt test rake test:unit --> grunt test:unit rake test:<jqlite|jquery|modules|e2e> --> grunt test:<jqlite|jquery|modules|end2end|e2e> rake test[Firefox+Safari] --> grunt test --browsers Firefox,Safari rake test[Safari] --> grunt test --browsers Safari rake autotest --> grunt autotest NOTES: * For convenience grunt test:e2e starts a webserver for you, while grunt test:end2end doesn't. Use grunt test:end2end if you already have the webserver running. * Removes duplicate entry for Describe.js in the angularScenario section of angularFiles.js * Updates docs/src/gen-docs.js to use #done intead of the deprecated #end * Uses grunt-contrib-connect instead of lib/nodeserver (removed) * Removes nodeserver.sh, travis now uses grunt webserver * Built and minified files are identical to Rake's output, with the exception of one less character for git revisions (using --short) and a couple minor whitespace differences Closes #199
2013-02-14chore(reakefile): auto install npm packagesTrotter Cashion
2013-02-14chore(Rakefile): parallelize the build on TravisIgor Minar
now that the forking issue is solved we can run regular build there https://github.com/travis-ci/travis-ci/issues/845
2013-01-21chore(Rakefile): skip build parallelization on TravisIgor Minar
Due to a infrastructure change on Travis starting JVMs in forked processes doesn't currently work. Since we don't really care that much about the build speed on Travis, I'm going to disable it there. Related issue: https://github.com/travis-ci/travis-ci/issues/845
2013-01-17chore(Rakefile): force 32bit JVM mode only when java supports itGergely Imreh
Some Java installs don't have '-d32' flag (e.g. OpenJDK which is standard for some Linux systems), and the closure_compile fails because of forcing that flag. Test, and only run in faster 32bit mode if supported, or else just run with no flag (default mode).
2013-01-16chore(Rakefile): generate version.jsonJames deBoer
Changes 'rake version' to output a version.json file which contains the structured version info which can be used in other tools.
2012-10-31chore(testacular): use local testacular versionSudhir Jonathan
Making testacular a dependency to avoid having to install it globally. (Causes npm issues on some machines)
2012-10-18chore(jstd-scenario-adapter): remove from our repoIgor Minar
since we don't need the adapter for JsTD (testacular contains its own), I'm removing this dead code.
2012-10-17chore(Rakefile): remove test_out dir when cleaningIgor Minar
2012-10-17chore(Rakefile): tune JVM for closure compilerIgor Minar
Using the client VM and forcing 32bit mode gives us huge perf boost. before: reali 0m8.173s user 0m39.984s sys 0m1.408s after: real 0m3.000s user 0m12.687s sys 0m0.852s
2012-10-17chore(Rakefile): paralelize closure compilationIgor Minar
this speeds up the build by paralelizing closure compilation (the slowest piece of the build process) before: real 0m14.372s user 0m31.649s sys 0m1.006s after: real 0m8.191s user 0m40.473s sys 0m1.378s
2012-10-17chore(Rakefile): misc_options should support + -> , conversionIgor Minar
2012-10-17chore(Rakefile): use exec for webserverIgor Minar
exec unlike system replaces the current process. this way when we kill the webserver process we don't get scary looking 'rake aborted' error
2012-09-17chore(Rakefile): fix test:jquery taskIgor Minar
2012-09-16chore(): remove unused filesIgor Minar
2012-09-15docs(contribute): update misc/contribute docs with Testacular infoIgor Minar
2012-09-13chore(testing): Testacular config files + rake tasksIgor Minar
- adds testacular config files for jqlite, jquery, modules and e2e tests - replaces obsolete JsTD Rake tasks with Testacular onces - rake tasks are parameterazied so that they can be used locally as well as on CI server usage: rake test # run all tests on Chrome rake test[Safari+Chrome+Opera] # run all tests on Safari, Chrome and Opera rake test[Safari] # run all tests on Safari rake test:jqlite # run unit tests using jqlite on Chrome rake test:jqlite[Safari,"--reporter=dots"] # run jqlite-based unit tests on Safari with dots reporter rake autotest:jquery # start testacular with jquery-based config and watch fs for changes rake test:e2e # run end to end tests
2012-09-04chore(Rakefile): add 'version' rake task to generate version.txtIgor Minar
2012-08-31chore(Rakefile): zip only the build dirIgor Minar
2012-08-29chore(Rakefile): fix the default taskIgor Minar
2012-08-29chore(Rakefile): remove bogus symlink from buildIgor Minar
2012-08-28chore(Rakefile): various build script changesIgor Minar
- restructure rake tasks this splits up the concatination and minification into two tasks so that we can just build angular.js quickly without wasting time with minification which is often not needed when just debugging some issue on 3rd party site. - use symlinks when creating final zip file - switch from btar to zip - get rid of version numbers from filenames - rewrite version numbers in all index files Closes #1226
2012-08-27chore(Rakefile): rewrite version numbers in all index filesIgor Minar
2012-08-24chore(docs): use GAE and Google CDN for docsIgor Minar
Short summary: if you use local node server everything should work as before, if you use GAE, everything should work now as well, but we pull assets from CDN. - GAE doesn't support ':' in filenames, so I had to replace it with '_' but only in the filename, all servers were reconfigured to rewrite the urls from : to _ when doing file lookup - We now pull angular assets from google CDN when deployed on GAE (locally or in production). When running on a non GAE server we pull assets from ../ directory as before - Since only certain versions of Angular are available on CDN and we want to be able to autodeploy docs, I had to pin down the Angular files to a "stable" version when running on GAE
2012-05-04chore(docs): re-skin main documentationMisko Hevery
2012-05-04feat(bootstrap): support code prettify and dropdown from bootstrapMisko Hevery
2012-04-11chore(ngSanitize): extract $sanitize, ngBindHtml, linkyFilter into a moduleVojta Jina
Create build for other modules as well (ngResource, ngCookies): - wrap into a function - add license - add version Breaks `$sanitize` service, `ngBindHtml` directive and `linky` filter were moved to the `ngSanitize` module. Apps that depend on any of these will need to load `angular-sanitize.js` and include `ngSanitize` in their dependency list: `var myApp = angular.module('myApp', ['ngSanitize']);`
2012-04-05chore(Rakefile): fix and improve file rewriting codeIgor Minar
2012-04-05fix(Rakefile): move 'use strict'; flag into the angular closureIgor Minar
closure compiler is stubborn and puts the flag to the top of the file, so we have to post-process the minified file to move the flag into the angular closure.
2012-03-28style(Rakefile): use snake_case in ruby codeIgor Minar
2012-03-28chore(ngCookies): moved to moduleMisko Hevery
2012-03-28chore(resource): moved to moduleMisko Hevery
2012-03-28chore(Rakefile): get ready for modulesMisko Hevery
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery
2012-03-13fix(Rakefile): version.dot extractor should ignore 'rc1'Igor Minar
2012-02-21chore(slim-jim) add configurationMisko Hevery
2012-01-17fix(Rakefile): rewrite version number for mocks.jsIgor Minar
2012-01-10feat(module): new module loaderMisko Hevery
2011-10-11feat(forms): new and improved formsMisko Hevery
2011-09-26fix(e2e): add index-nocache.html to run e2e tests without cacheIgor Minar
using appcache while running e2e tests was causing the following problems: - Safari would occasionally reload the app (as a result of the appcache refresh) during the angular.validator.asychronous test, which would result in test failure and false positivy. - Firefox6 would run the tests very slowly, disabling the cache resolved the latency issues - Sometimes tests would run with stale code pulled from cache, which would result in flaky tests.
2011-09-26feat(docs): use html5 history api for all routing in the docs appVojta Jina
- Configure our docs app to use new $location with html5 history api! - Update simple node web server to serve index.html for all links (rewritting). - Update .htaccess file to serve index.html for all links (rewritting). - At runtime determine the base href path and attach it to the DOM. We needed the absolute URL to get all browsers to work well. - Because of the above, we also need to dynamically determine all needed js/css resources and add them to the DOM. This was needed because FF6 would eagerly fetch resources with wrong URL since the base element is added to the dom at runtime. - All content html files were moved to the partials directory, because with the new html5 urls it was impossible to tell if request for http://domain/api/angular.filter.html was an html5 url for the html filter doc page, or an xhr/appcache request for the content html file for the html filter. f
2011-09-16feat (jquery): upgrade everything to jQuery 1.6.4Igor Minar
Closes #556
2011-09-13refactor(angular): externalize script load order into JSONDi Peng
- move all script load order into angularFiles.js - rakefile and angular-bootstrap.js use angularFiles.js to get script orders - gen_jstd_configs.js uses angularFiles.js to generate various jstd config files - run gen_jstd_configs.js whenever we run server.sh Closes #470
2011-09-08feat($sniffer): basic implementation of browser feature testingVojta Jina
This only extracts our 'hashchange' event and html5 history api detection from $browser. Closes #400
2011-08-31feat($route): add events before/after route changeMisko Hevery
BREAKING CHANGE * removing `onChange` FEATURE * adding three events: $beforeRouteChange, $afterRouteChange, $routeReload
2011-08-14feat(i18n): collect and convert locale info from closureDi Peng
- add i18n/closure directory with closure i18n files and update-closure.sh script to update them - generate.sh script runs node.js scripts that extract localization rules from the closure library, transform them to a more suitable format and dumps them into i18n/locale directory as angular's $locale services - update Rakefile to copy i18n files to build/ and pkg/ dirs - copy i18n stuff during rake build - e2e tests for several locales
2011-08-14feat($locale): add default locale service for en-USDi Peng
2011-08-12refactor(scope): remove $flush/$observe ng:eval/ng:eval-orderMisko Hevery
2011-07-29fix(Rakefile): index-jq.html needs to be rewritten like index.htmlIgor Minar
2011-07-26feat(docs): add full offline supportDi Peng