Commit Graph

114 Commits

Author SHA1 Message Date
Hristo Hristov
43fbabb5e9 Fixed most module cyclic references. There is one left for ios and android: (#4978)
- http -> http-request -> image-source
that can't be fixed easily and will be removed once we delete image-source module because it is obsolete anyway.
There is one more for android:
- frame -> fragment that could be removed if we use global object.
Updated madge bersion
2017-11-10 15:47:02 +02:00
Stanimira Vlaeva
6e9a99a962 chore: update repo to be compiled with TS ^2.6.1 (#5020) 2017-11-01 14:18:52 +02:00
Panayot Cankov
f7a3a36b9c Housekeeping node tests, renamed to unit-tests (#4936)
Add parsers for the background css shorthand property, make ViewBase unit testable in node environment

Add background parser and linear-gradient parser

Use sticky regexes

Simplify some types, introduce generic Parsed<T> instead of & TokenRange

Apply each parser to return a { start, end, value } object

Move the css selector parser to the css/parser and unify types

Add the first steps toward building homegrown css parser

Add somewhat standards compliant tokenizer, add baseline, rework and shady css parsers

Enable all tests again, skip flaky perf test

Improve css parser tokenizer by converting some char token types to simple string

Implement 'parse a stylesheet'

Add gonzales css-parser

Add parseLib and css-tree perf

Add a thin parser layer that will convert CSS3 tokens to values, for now output is compatible with rework

Make root tsc green

Return the requires of tns-core-modules to use relative paths for webpack to work

Implement support for '@import 'url-string';

Fix function parser, function-token is no-longer neglected

Make the style-scope be able to load from "css" and "css-ast" modules

Add a loadAppCss event so theme can be added to snapshot separately from loaded
2017-10-20 10:42:07 +03:00
Panayot Cankov
3a16e72ebf Add 'npm run madge-ios' and 'npm run madge-android' to list circular dependencies (#4748) 2017-08-24 13:39:06 +03:00
Panayot Cankov
d978424f35 Add npm script to automate the tsc build for PRs on CI (#4599)
* Add npm run ci to automate some ci stuff

* Inlude node types for node_tests
2017-07-26 18:15:06 +03:00
Alexander Vakrilov
fadfa58937 Update tslint (#4495) 2017-07-03 17:04:50 +03:00
Panayot Cankov
8adb2fdfef Fix TypeScript 2.4 errors, introduced mainly due weak types and covariant checking for callbacks (#4476) 2017-07-03 11:57:00 +03:00
SvetoslavTsenov
96039d1a1a Update references in package.json to git reporsitories which are used as dependencies 2017-05-12 15:35:52 +03:00
Panayot Cankov
0cae034a64 Changing module docs so they can appear in typedoc. 2017-05-10 11:55:47 +03:00
Panayot Cankov
d098ff43f5 Add module names for the typedoc, make it work
Mark members with @private for typedoc.
2017-04-20 16:58:30 +03:00
Hristo Deshev
331c1185f0 Add docs build script. 2017-04-03 17:18:29 +03:00
Hristo Deshev
629eb6e683 Use relative imports in tns-core-modules.
Use tns-core-modules/* imports in outside code (apps, tests, etc)
2017-03-13 14:37:59 +02:00
Hristo Deshev
5f8a0aea45 Fix tsc invocation on Windows. 2017-03-08 15:16:32 +02:00
Hristo Deshev
7bb457ef2b Upgrade to TypeScript 2.2
Fix typings, remove Request, etc clashes with the new lib.dom.d.ts
2017-02-24 17:28:18 +02:00
Hristo Hristov
a582adc561 Hhristov/fix (#3653)
* Fix action-bar systemIcon
Fix CSS applying

* refactoring

* fix console

* remove StyleScope import - it is private and cannot be imported in public .d.ts
2017-02-17 17:21:57 +02:00
Hristo Deshev
232692cacd Increase Node heap size for TypeScript compiler runs. 2017-02-17 14:10:55 +02:00
Hristo Deshev
503e5bf9ff Upgrade to typedoc@0.5.6 2017-02-17 13:25:17 +02:00
Hristo Deshev
dc6d89d9bf Use typedoc theme from GitHub master branch.
Until we get the NPM release back in check.
2017-02-17 13:24:49 +02:00
Hristo Deshev
3056ce51c2 Upgrade to TypeScript 2.1, and latest grunt-ts.
Conflicts:
	package.json
	tests/app/ui/animation/animation-tests.ts
	tns-core-modules/lib.core.d.ts
	tns-core-modules/ui/animation/animation-common.ts
2017-02-13 14:13:33 +02:00
Hristo Deshev
65c3ad59a7 Remove grunt-tslint. Use an npm script for that. 2017-02-13 14:13:33 +02:00
Hristo Deshev
cdf08378b0 Remove grunt-ts dependency.
Compile code using tsconfig.json files and plain tsc invocations.
Call those using grunt-shell.
2017-02-13 14:13:33 +02:00
Hristo Deshev
aae8f1cbb1 Upgrade grunt, fix missing grunt-contrib-copy dependency. 2017-02-07 10:37:34 +02:00
PanayotCankov
d10ca1da03 Fix the last several errors 2016-12-20 13:36:10 +02:00
Rossen Hristov
75dba8fab2 Include apps and tests in tsconfig.json 2016-12-20 09:36:23 +02:00
Hristo Hristov
c71b4d4bf1 Hhristov/modules30 fixes (#3321)
* Fixed bindings, several css properties, attached properties

* Fix valueChanged handlers
Fix double registration of width/height property handlers

* fix broken merge
2016-12-19 17:52:18 +02:00
Rossen Hristov
2f9fa6f6a3 Lock all Typescript versions to ~2.0.10 2016-12-15 10:51:45 +02:00
PanayotCankov
2bf7b07bf6 Add validation/parsing for the FlexboxLayout properties
Make FlexboxLayout work with CSS properties, shorhands are not yet supported

Make shorthand properties

Remove redundant logging
2016-11-10 11:16:24 +02:00
Panayot Cankov
05cd636fc8 npm scripts for typechecking public .d.ts-es and running tslint (#2934)
* npm scripts for typechecking public .d.ts-es and running tslint

* Update test.ts
2016-10-27 15:18:54 +03:00
Panayot Cankov
43ceefdc03 Added npm run typedoc and npm run dev-typedoc scripts, read the DevelopmentWorkflow.mk 2016-10-06 17:52:14 +03:00
Hristo Hristov
98deeccb21 Change image.android to use the new image.Cache class from widgets. (#2832)
* Change image.android to use the new image.Cahce class from widgets.

* fix npm scripts

* npm tsc will compile all so no need for npm run dev-tsc-tests

* fix tslint error

* image-tests use memory only cache.

* fix exception in image.android

* Change image-tests so that Image won't be GC immediately.

* Change cacheMode to enum
2016-10-05 13:09:08 +03:00
Panayot Cankov
a528ae7f85 symlinking tns-platform-declarations inside tns-core-modules causes the apps and tests to fail on some dev machines 2016-09-29 17:55:59 +03:00
Rossen Hristov
f8a0cc1907 Update typescript to 2.0.3 2016-09-28 16:46:47 +03:00
Panayot Cankov
1777ed5f13 Fix === 2016-09-26 13:19:34 +03:00
Panayot Cankov
0e23f47a04 Update the .travis.yml to npm pack the tns-platform-declarations, add lib: [] config in the tsconfig.json 2016-09-26 11:53:40 +03:00
Panayot Cankov
299203901e Move platform .d.ts-es to separate plugin folder
Add dev-setup to figure out links

Update development workflow

Update package.json and dts-ios

Update the iOS declarations

grunt is now fine
2016-09-26 11:53:39 +03:00
Rossen Hristov
a05f842a84 Non-uniform borders 2016-09-17 09:27:36 +03:00
Panayot Cankov
1236f66f44 Add npm script that generates ios .d.ts-es from the tests app
Less than 30 erros left, let's hope it still works

Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills

Roll back some changes involved in separating UIEvent for dom and ios

Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
2016-08-29 09:58:17 +03:00
Hristo Hristov
30c998a954 Fix unit-tests checks. (#2538)
* Fix unit-tests checks.
LetterSpacing handlers are added for iOS and Android API 21+

* Removed unneded check for android

* Used parseInt instead of new Number due to TSLint error
2016-08-01 16:21:32 +03:00
Erjan Gavalji
190e57bba8 Use a Api-Ref theme with embedded Roboto-Light font 2016-07-29 10:40:41 +03:00
Erjan Gavalji
0666fd07b9 Use an improved API-Ref theme 2016-07-28 10:57:46 +03:00
Erjan Gavalji
97870f33a7 Use a further improved styling for the Api-Reference 2016-07-26 17:49:18 +03:00
Erjan Gavalji
8dbfe1c3b1 Use an improved docs header 2016-07-26 15:13:38 +03:00
Erjan Gavalji
cf7c71f37e Update grunt-typedoc to make it get new TS features 2016-07-25 11:18:36 +03:00
Rossen Hristov
8061a609ae Add grunt dev dependenices back since they are needed by the Travis grunt scripts 2016-07-12 12:59:40 +03:00
Rossen Hristov
a18d5e7622 Create a single NS app for cuteness.io, gallery-app and ui-tests-app in apps/
Move all other apps to https://github.com/NativeScript/tns-apps-graveyard
2016-07-11 15:34:28 +03:00
Rossen Hristov
8454ca9429 Separate Android and iOS tests 2016-06-08 11:20:05 +03:00
tzraikov
8a3b59a5db Merge pull request #2241 from NativeScript/raikov/fixbuild
Added a missing file in tsconfig.json. Fixed build scripts.
2016-06-03 16:05:39 +03:00
Tsvetan Raikov
bdbaa8968c Added a missing file in tsconfig.json. Fixed build scripts. 2016-06-03 15:25:10 +03:00
Erjan Gavalji
38b856184c Add a dependency to the theme package 2016-05-31 15:50:55 +03:00
Rossen Hristov
80a754d336 Switch Android and iOS test runs 2016-05-31 14:22:50 +03:00