Alexander Vakrilov
82f2ccbdfb
chore: remove grunt and clean-up ( #7845 )
...
* chore: remove grunt files and deps
* chore: npm scripts cleanup
* chore: more deps clean-up
* chore: tsconfig clean-up
* chore: remove unneed file
* chore: move tsinfig.unit-tests
* chore: add dist/ exclude
2019-10-03 14:50:59 +03:00
SvetoslavTsenov
e6c7e0c1ac
Merge remote-tracking branch 'origin' into merge-release-in-master
2019-09-18 01:08:56 +03:00
Svetoslav
25046c7f94
chore: remove grunt and update build scripts ( #7838 )
...
* chore: prepare and pack scripts
* chore: update @types/node dep
* chore: remove prepare-dist command from pack-dist
2019-09-18 01:05:39 +03:00
Ryan Pendergast
570c17f41a
chore: dev-tsc-all target invalid in package.json ( #7746 )
2019-09-12 15:54:02 +03:00
Manol Donev
e0c4933337
chore: merge release to master ( #7809 )
...
* feat(android): fix tab resource icon size based on spec (#7737 )
* feat(ios): add icon rendering mode for bottom navigation (#7738 )
* fix(ios-tabs): crash when add tabstrip in loaded event (#7743 )
* fix(css): parse css selectors with escape sequences (#7689 ) (#7732 )
* fix(ios-tabs): handle nesting proxy view container (#7755 )
* fix-next(css): className to preserve root views classes (#7725 )
* docs: cut the 6.1.0 release (#7773 )
* fix(android-list-picker): NoSuchFieldException on api29 (#7790 )
* chore: hardcode tslib version to 1.10.0 (#7776 )
* fix(css-calc): reduce_css_calc_1.default is not a function (#7787 ) (#7801 )
2019-09-12 14:33:03 +03:00
Manol Donev
2d0737a92d
chore: hardcode tslib version to 1.10.0 ( #7776 )
2019-09-10 15:43:17 +03:00
Morten Sjøgren
673c8087e0
feat: implement css-variables and css-calc ( #7553 )
...
* feat: implement basic support for css-variables
* fix(test): test-watch-android and test-watch-ios was broken
* fix: processing css-variables belong in CssProperty-classes
Not in the StyleScope.
* fix(css-variables): set style attribute override value from css-classes
* feat: add css calc-support using 'reduce-css-calc'
* fix(tslint): missing semicolon and incorrect quotemark
* feat: move css-variable handling to Style-class
* chor: add comments explaining css-variable implmentation
* chor: set css-variables before other style properties
* chor(css-variables): cleaning up
* chor: code style fixes
* test(CSS-CALC): Add tests for nested css-calc statements
* fix(CSS-CALC): dip-unit not supported by reduce-css-calc
* fix(tslint): use double quotemarks
* test(css-calc): test _cssCalcConverter directly
* chor(css-variables): rename and clean up _cssVariableConverter to _evaluateCssVariable
* chor: rename varname to varName for consistency
* chor: support css-calc and variables for normal properties
* chor: use string.replace to evaluate css-variables
* fix: Missing blank line before return
* chor: rename css-calc functions
* fix: undefined css-variables treated as 'unset'
* fix(tslint): use double quotemarks
* feat(css-variable): handle fallback values
* chor(css-variables): handle unsetValue
* chor: process css-calc and css-variables in style-scope
* chore: clean-up css-calc/variable expressions
* fix(css-calc): handle invalid expressions
* chore(CSSState): update comments
* chore(Style): rename css-variable functions
* chore(css-variables): describe fallback logic
* chore: move reset scoped css-variables to Style-class
* chore(CssState): simplify check for css expressions
* chore: add reduce-css-calc to /package.json
2019-08-20 00:56:56 +03:00
Vasil Chimev
70f8d70f07
chore(e2e): update config files ( #7677 )
...
* chore(e2e): update config files
* chore: update .gitignore file
* chore: update references.d.ts file
* chore: remove npm scripts
* chore: update travis config
2019-08-18 23:16:35 +03:00
Manol Donev
b20e771552
chore: remove deprecated apis for ns 6.0 ( #7382 )
2019-06-25 16:52:01 +03:00
Vasil Trifonov
5f9eabdf17
feat: update android typings to include @deprecated attributes ( #7364 )
...
* feat: added tslint rule for deprecation turned off
* feat: updated android dts files to include @deprecated
2019-06-17 18:56:34 +03:00
Svetoslav
94629ce86c
chore: move typing for material design in tns-platform-declarations ( #7352 )
2019-06-17 13:49:52 +03:00
Martin Yankov
b97cf958ef
chore: return http server with npx ( #7254 )
2019-05-21 10:58:11 +03:00
Dimitar Topuzov
4b16363d0b
chore: remove http-server dependency ( #7199 )
...
`npm i` fails on non windows os because of `http-server` dev dependency.
Not sure we need it.
2019-05-02 23:58:58 -07:00
Svetoslav
5c165f527c
docs: update widgets build script, readme, travis ( #7099 )
...
* docs: update widgets build script, readme, travis
2019-04-03 15:10:21 +02:00
Martin Bektchiev
89870f7c91
chore(docs): Upgrade typedoc to version 0.13.0 ( #6717 )
...
Building with the current 0.5.10 now fails because it depends on typescript
before 2.4. This causes the following errors:
```
NativeScript@ typedoc /root/NativeScript
> typedoc --tsconfig tsconfig.typedoc.json --out bin/dist/apiref --includeDeclarations --name NativeScript --theme ./node_modules/nativescript-typedoc-theme --excludeExternals --externalPattern "**/+(tns-core-modules|module).d.ts"
Loaded plugin typedoc-plugin-external-module-name
Using TypeScript 2.2.2 from /root/NativeScript/node_modules/typedoc/node_modules/typescript/lib
Error: /root/NativeScript/tns-core-modules/module.d.ts(67)
In ambient enum declarations member initializer must be constant expression.
Error: /root/NativeScript/tns-core-modules/module.d.ts(68)
In ambient enum declarations member initializer must be constant expression.
Error: /root/NativeScript/tns-core-modules/module.d.ts(69)
In ambient enum declarations member initializer must be constant expression.
```
This fix is required to support typeodoc@0.8.0 and above:
01f94b4ae2
2018-12-17 17:05:09 +02:00
Alexander Vakrilov
5c03abefba
chore: update to TypeScript 3 ( #6556 )
2018-11-14 17:00:42 +00:00
Morten Sjøgren
1232d1edfd
feat(tslib): add tslib helpers to global ( #6351 )
...
* feat(tslib): add tslib helpers to global
* Adds tslib as a dependency to tns-core-modules
* Replaces globals/decorators with globals/tslib
* Adds support for async/await, rest and spread operators.
* refactor: rename tslib to ts-helpers to avoid confusion with npm package
2018-10-05 17:12:45 +03:00
Vasil Chimev
982acdc168
feat(iOS): Safe Area Support ( #6230 )
2018-09-28 18:21:50 +03:00
Manol Donev
2fc1d8a8d4
chore(tsc): enable noUnusedLocals compiler option for tns-core-modules ( #5755 )
2018-05-10 16:12:59 +03:00
Martin Yankov
dfa70dd384
feat(frame): rework frame retrieval api ( #5527 )
...
Rework the frame api to support working with multiple Frames.
* frameModule.topmost() - now returns the last navigated Frame or
the currently selected tab item's Frame if the tab item's view is a
Frame.
* frameModule.getFrameById(id: string) - returns a navigated Frame by id.
* args.object.page.frame - can be used in page elements event handlers.
Returns the Frame of the current element's page.
* chore: Update madge-android npm script path
2018-03-13 18:10:45 +02:00
Vasil Chimev
e1a1d643c8
test(e2e): add modal-navigation app tests ( #5445 )
...
* test(e2e): modal-navigation app webpack support
* test(e2e): add modal-navigation app smoke test
* chore(e2e): tslint disable next line
* chore(e2e): modal-navigation app compilation
* refactor(e2e): modal-nabivation app pages
* test(e2e): add app root modal frame tests
* test(e2e): add app root modal frame background tests
* refactor(e2e): app root modal frame tests
* test(e2e): add tab root modal frame tests
* refactor(e2e): modal frame tests
* test(e2e): add modal page tests
* docs(e2e): add scenarios
* refactor(e2e): modal-navigation app tests
* test(e2e): turn on/off "Don't keep activities"
* test(e2e): delete no background tests
* test(e2e): add modal tab tests
* refactor(e2e): quit driver after all tests
* refactor(e2e): config files
* fix(e2e): tab root tests
* refactor(e2e): skip tab root tests until fix app
* chore(e2e): config files
2018-03-13 09:06:12 +02:00
Manol Donev
e1eea8efe7
test(e2e): add modal-navigation app ( #5393 )
...
* chore(apps): add modal-navigation-app for ui testing
* test(e2e): add modal-navigation app
* test(apps): remove modal-navigation-app
The app has been moved to `e2e/modal-navigation`.
* chore: include e2e folder to npm scripts
* docs: include e2e folder to DevelopmentWorkflow.md
* chore(e2e): update .gitignore
* fix(e2e): relative paths
* chore(e2e): update package.json
* test(e2e): add change root view to modal-navigation
* test(e2e): set androidTabsPosition to botton
* chore(e2e): add VSCode launch.json config
* docs(e2e): delete LICENSE and README.md files
* refactor(e2e): rename modal-tab-page to modal-tab-root
* test(e2e): update iOS launch screen
2018-02-14 16:51:51 +02:00
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