aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
AgeCommit message (Collapse)Author
2011-07-26feat(docs): add full offline supportDi Peng
2011-07-22chore(license): update license headers + add version numIgor Minar
- fixed copyright overnship - updated copyright years - added @license tag so that closure compiler preserves the header - added version number into headers (finally!)
2011-07-22feat(angular.version): add angular.versionDi Peng
- placeholders are replaced with actual angular versions when doing rake compile
2011-07-20refactor(gen-docs): use q, qq, q-fs (node modules) to write gen-docsDi Peng
- re-write gendocs.js, reader.js and writer.js - all calls are asynchronous
2011-07-18feat(strict mode): turn on ECMAScript 5 strict modeIgor Minar
- add 'use strict'; statement to the prefix file - configure closure compiler to use the ES5 strict mode - strip all file-specific strict mode flags after concatination Closes #223
2011-07-13fix(ie-compat): escape \ in regexpIgor Minar
2011-07-13style(ie-compat): improved generated ie compat codeIgor Minar
2011-06-30feat:build: better build/pkg/ dir structureIgor Minar
rake package now produced directory structure that can be uploaded to the ftp server as is without manual changes
2011-06-07add appcache for docs site - caches only css/js/img resourcesIgor Minar
2011-05-19JSTD adapter for running e2e testsVojta Jina
Couple of changes into angular.scenario runner: - add autotest config (runs tests when document ready) - update ObjectModel (forwards events) - use only one ObjectModel instance for all outputters - expose error msg and line number in ObjectModel.Spec and ObjectModel.Step - fix generating spec.ids - fix 'html' output so that it does not mutate ObjectModel Couple of changes into docs / generator: - rename copy -> copyTpl - move docs/static into docs/examples (to avoid conflict with jstd proxy) Running all docs e2e tests: ======================================================== 1/ compile angular-scenario, jstd-scenario-adapter >> rake compile 2/ build docs >> rake docs 3/ start jstd server >> ./server-scenario.sh 4/ capture some browser 5/ run node server to serve static content >> node ../lib/nodeserver/server.js 6/ run tests >> ./test-scenario.sh
2011-03-26renaming lib/compiler-closure to lib/closure-compilerIgor Minar
2011-03-22Require 'yaml' in Rakefile.Anthony Lieuallen
2011-03-11Stop using document write, so that we are compatible with async script loaderMisko Hevery
2011-02-15split up services into individual filesIgor Minar
- split up services into files under src/service - split up specs into files under test/service - rewrite all specs so that they don't depend on one global forEach - get rid of obsolete code and tests in ng:switch - rename mock $log spec from "$log" to "$log mock"
2011-01-26split mocks and create $log and $exceptionHandler mocksIgor Minar
- split mocks between angular-mocks.js and mocks.js - src/angular-mocks.js now contains only mocks that we want to ship - test/mocks.js contains mocks that we use internally for testing angular - created angular.mock namespace - created public $exceptionHandler mock rethrows errors - created public $log mock stores all logs messages in an array that can be accessed to make assertions - internally we now have factory to create $exceptionHandler that we can assert on - internally we also keep track of all messages logged and fail tests if messages were not expected and cleaned up (checked via global beforeEach and afterEach) - updated RakeFile and docs reader.js to point to the new angular-mocks.js location - made real $exceptionHandler and $log factories accessible from tests and simplified their specs - fixed typos in several spec descriptions - added log assertions throughout the test suite
2011-01-10removed unnedded files; switch rake to new doc build scriptMisko Hevery
2010-11-03jsdoc parser + generator + viewer + scenario runnerMisko Hevery
- parse jsdocs from source code - generate prerendered (markdown + mustache) partials - generate json - generate scenario runner for examples in docs - basic angular doc viewer
2010-10-27rename src/Parser.js to src/parser.jsIgor Minar
2010-10-26Lots of bug fixes in the scenario runner and a bunch of new features.Elliott Sprehn
- By default the runner now creates multiple output formats as it runs. Nodes are created in the DOM with ids: json, xml, and html. ex. $('#json').html() => json output of the runner ex. $('#xml').html() => json output of the runner $result is also an object tree result. The permitted formats are html,json,xml,object. If you don't want certain formats you can select specific ones with the new ng:scenario-output attribute on the script tag. <script src="angular-scenario.js" ng:scenario-output="xml,json"> - Added element(...).count() that returns the number of matching elements for the selector. - repeater(...).count() now returns 0 if no elements matched which can be used to check if a repeater is empty. - Added toBe() matcher that does strict equality with === - Implement iit and ddescribe. If iit() is used instead of it() then only that test will run. If ddescribe() is used instead of describe() them only it() statements inside of it will run. Several iit/ddescribe() blocks can be used to run isolated tests. - Implement new event based model for SpecRunner. You can now listen for events in the runner. This is useful for writing your own UI or connecting a remote process (ex. WebDriver). Event callbacks execute on the Runner instance. Events, if fired, will always be in the below order. All events always happen except for Failure and Error events which only happen in error conditions. Events: RunnerBegin SpecBegin(spec) StepBegin(spec, step) StepError(spec, step, error) StepFailure(spec, step, error) StepEnd(spec, step) SpecError(spec, step, error) SpecEnd(spec) RunnerEnd - Only allow the browser to repaint every 10 steps. Cuts 700ms off Firefox in benchmark, 200ms off Chrome. - Bug Fix: Manually navigate anchors on click since trigger wont work in Firefox.
2010-10-26create HTML sanitizer to allow inclusion of untrusted HTML in safe manner.Misko Hevery
Sanitization works in two phases: 1) We parse the HTML into sax-like events (start, end, chars). HTML parsing is very complex, and so it may very well be that what most browser consider valid HTML may not pares properly here, but we do best effort. We treat this parser as untrusted. 2) We have safe sanitizeWriter which treats its input (start, end, chars) as untrusted content and escapes everything. It only allows elements in the whitelist and only allows attributes which are whitelisted. Any attribute value must not start with 'javascript:'. This check is performed after escaping for entity (&xAB; etc..) and ignoring any whitespace. - Correct linky filter to use safeHtmlWriter - Correct html filter to use safeHtmlWriter Close #33; Close #34
2010-10-20Rakefile should create the build directory when it is needed and doesn't existIgor Minar
2010-10-20Add support for version numbers in the RakefileIgor Minar
* version number is stored in version.yaml - work in progress is marked with version number that ends with '-snapshot' * all compiled files are stored in the './build/' directory without version numbers * :package task creates a tarball in the build directory - if version number contains '-snapshot', this substring is replaced with sha of the head - tarball contains version number in the filename - all js files contain version number in the filename * .gitignore was updated to reflect all these changes * the .map file is not created by the closure compiler any more
2010-10-19Fix browser triggering in scenario to always do native events.Misko Hevery
- Also fixed angular.suffix for scenarios - refactored click() to browserTrigger() - Fixed Rakefile with CSS and jQuery
2010-10-18Remove externs target from the RakefileIgor Minar
We are not going to do advanced optimization in the forseeable future, so until then we don't need we should remove them from Rakefile.
2010-10-18inline all images into cssIgor Minar
* embedded images as data URIs * rake task to generate multipart js file with embeded images for IE * move images into a separate directory outside of src or css and keep them there for reference * clean up Rakefile and ruby code * .gitignore update * don't penalize IE 8+ with an extra request to the ie-compat.js file
2010-10-14New Angular Scenario runner and DSL system with redesigned HTML UI.Elliott Sprehn
Uses the Jasmine syntax for tests, ex: describe('widgets', function() { it('should verify that basic widgets work', function(){ navigateTo('widgets.html'); input('text.basic').enter('Carlos'); expect(binding('text.basic')).toEqual('Carlos'); input('text.basic').enter('Carlos Santana'); expect(binding('text.basic')).not().toEqual('Carlos Boozer'); input('text.password').enter('secret'); expect(binding('text.password')).toEqual('secret'); expect(binding('text.hidden')).toEqual('hiddenValue'); expect(binding('gender')).toEqual('male'); input('gender').select('female'); expect(binding('gender')).toEqual('female'); }); }); Note: To create new UI's implement the interface shown in angular.scenario.ui.Html.
2010-10-13fix Rakefile - add Injector.js to :compileIgor Minar
2010-10-13updating file list for the :package rake taskIgor Minar
- removing angular-scenario.css (it's already inlined in the js) - adding angular-mocks.js
2010-10-12Introduced injector and $new to scope, and injection into link methods and ↵Misko Hevery
controllers - added angular.injector(scope, services, instanceCache) which returns inject - inject method can return, instance, or call function which have $inject property - initialize services with $creation=[eager|eager-publish] this means that only some of the services are now globally accessible - upgraded $become on scope to use injector hence respect the $inject property for injection - $become should not be run multiple times and will most likely be removed in future version - added $new on scope to create a child scope - $inject is respected on constructor function - simplified scopes so that they no longer have separate __proto__ for parent, api, behavior and instance this should speed up execution since scope will now create one __proto__ chain per scope (not three). BACKWARD COMPATIBILITY WARNING: - services now need to have $inject instead of inject property for proper injection this breaks backward compatibility - not all services are now published into root scope (only: $location, $cookie, $window) - if you have widget/directive which uses services on scope (such as this.$xhr), you will now have to inject that service in (as it is not published on the root scope anymore)
2010-10-12adding :package task to the rake fileIgor Minar
2010-09-23cleanup underscore.js form rakefileMisko Hevery
2010-09-22Refactored the Browser:Misko Hevery
- change from using prototype to inner functions to help with better compression - removed watchers (url/cookie) and introduced a poller concept - moved the checking of URL and cookie into services which register with poolers Benefits: - Smaller minified file - can call $browser.poll() from tests to simulate polling - single place where setTimeout needs to be tested - More testable $browser
2010-08-14add ftp script to auto deploy to angularjs.orgMisko Hevery
2010-08-11removed google charts and few other filters, switched to simple optimization ↵Misko Hevery
for compiler
2010-08-05Added new files to Rakefile and consistently used .addFutureAndres Ornelas
2010-07-08fixed IE testsMisko Hevery
2010-05-28change order of initializationMisko Hevery
2010-05-27extracted switchRouteMatcher and added necessary libraries to angular-scenarioAndres Ornelas
2010-05-25added rake task to create a single file for scenario runnerMisko Hevery
2010-04-07clean up, fixes for appMisko Hevery
2010-03-29tests broken, but bootstrap worksMisko Hevery
2010-03-24mergeMisko Hevery
2010-03-24work in progressMisko Hevery
2010-03-24Fix rakefile to work with older versions of rakeShyam Seshadri
2010-03-16twitter using resourcesAdam Abrons
2010-01-28added formattersMisko Hevery
2010-01-26add default rake task (compile and test), send database name to loginAdam Abrons
2010-01-18checkpoint for integration with angularMisko Hevery
2010-01-10basic calculator works with minified.js, lots of references still brokenMisko Hevery
2010-01-09removed nglr namespaceMisko Hevery