98 Commits

Author SHA1 Message Date
0625ef93b0 chore: include readme.md in package 2019-02-20 19:08:19 +02:00
a37da87c08 fix(grunt): Add platforms folder to produced NPM package (#6015) 2018-07-03 12:08:19 +03:00
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
d098ff43f5 Add module names for the typedoc, make it work
Mark members with @private for typedoc.
2017-04-20 16:58:30 +03:00
b45cbe929b No more ambient modules for tns-core-modules/* subpackages.
- Use path mappings in tsconfig.json to resolve module typings
- Only use ambient mobules for global API's
- Move single-file modules to a subdir with the same name so that
we can provide a hand-written typing next to it (via package.json)
- Delete all mentions of tns-core-modules.d.ts
- Delete reference d.ts assembly build steps. Not needed anymore.
- HACK! Use a <reference> for global typings in application.d.ts
to avoid publishing a separate @types/tns-core-modules package.
- Rename declarations.d.ts to tns-core-modules.d.ts to preserve
JS project mappings in references.d.ts (the only place we use those)
2017-03-07 17:59:02 +02:00
9113fa9ed8 Use TypeScript 2.1 for the docs build
Until TypeDoc supports TS 2.2
2017-02-24 17:28:18 +02:00
7d7e48f759 Use a shared tsconfig.
Don't duplicate compiler options across projects.
2017-02-15 13:24:44 +02:00
86481cce4a Make typings compatible with @types/node.
Fixes name clashes and uses Node-compatible typings where possible.

Changes:
 - setTimout et al now return NodeJS.Timer instead of number
 - No "console" module anymore. Everyone uses it through global.console
 anyway.
 - We have a typed "global" instance with exposed properties now. Any
 "freeform" accesses must go through a `(<any>global).blah` cast.
 - remove tns-core-modules.{base,es6,es2015}.d.ts. Those were needed
 as workarounds for the ES6/DOM/Node type clashes.
2017-02-15 13:01:10 +02:00
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
65c3ad59a7 Remove grunt-tslint. Use an npm script for that. 2017-02-13 14:13:33 +02:00
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
1c2ab2adc9 Add typescript declarations for workers 2016-10-20 11:34:14 +03:00
d061bd8031 Make the Grunt work 2016-10-07 09:11:33 +03:00
a4916d7246 added tns-core-modules.es2016.d.ts for declarations references 2016-09-27 14:24:56 +03:00
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
bfbf94b472 Ignore iOS platform definitions in typedoc builds.
Fixes an OOM crash in docs build.
2016-08-31 12:25:49 +03:00
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
052f4617d5 Validate package.json files' "main" setting.
Don't use a filepath ending in .js, let the require implementation
resolve the js file. This makes it easier to require the correct
platform-specific file when bundling by switching the webpack
`resolve.extensions` setting.
2016-08-04 16:22:27 +03:00
c9e43aa7e7 Use the nativescript theme by default for api-ref 2016-06-14 10:37:11 +03:00
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
0ffac1ab9f Fix d.ts build check to not include android17/ios.dts 2016-06-16 13:08:10 +03:00
1a2e5a9870 Fix ts-lint error (#2314)
Fix grunt error
2016-06-14 18:04:44 +03:00
940174b208 Remove the files entry from the tsconfig.json 2016-06-13 14:04:42 +03:00
192171232e Fix android orientation exception. (#2278)
Fix android activity destroy/resume.
Fix tslint - skipped all from node_modules & platforms
2016-06-09 14:02:15 +03:00
4c9704dc2e Avoid the compilation errors by passing the experimentalDecorators flag 2016-05-31 16:37:19 +03:00
58b4a6eec6 Add 'npm test' for mac 2016-05-30 16:10:57 +03:00
2ebe9d681a Fix node-tests on OSX by explicitly requiring modules with relative paths. 2016-05-30 12:41:18 +03:00
2115227b0b Patch the modules package.json version 2016-05-26 14:30:25 +03:00
e135c20b14 Rename the files 2016-05-26 14:30:25 +03:00
135e713eff Merge pull request #2015 from NativeScript/ErjanGavalji/cleanup-of-buildfile
Remove redundant comments from the gruntfile
2016-05-09 09:49:46 +03:00
457d2bb963 Move single articles out parent dir 2016-05-02 11:30:59 +03:00
ed5dfc30b9 Remove redundant comments from the gruntfile 2016-04-22 15:24:17 +03:00
964aa77b92 Run node-tests as a part of the build. 2016-04-21 13:02:30 +03:00
7fe33054eb Fix broken node tests compilation. 2016-04-21 12:55:07 +03:00
945aec0a72 First commit 2016-04-15 16:27:52 +03:00
5ceeb7fddd Add the new snippet injector in grunt task 2016-04-13 14:32:56 +03:00
1485abaa8b Run tests in travis-CI
Add android definitions to check if they will get downloaded
Set the language to android
Attempt starting the app
Add a new redirection to the testapp-runner - a runOnly verb
Disable the install prompt
Enable the buildOnly- and runOnly- commands
Fix the version of the packages
Comment cleanup code. Workflow to be reworked
Install android 23 to make the app build
Build the test app with the @next android runtime
Add @next ability. Build with it
Specify oracle java version 8
Use switcher to switch to oraclejdk8
Switch to a single step so that build breaks on first failure
Reorder attempting to use higher nodejs
Attempt using node 5.10.1
Detect test failure
Add detection for test failures
Decrease verbosity
Extract the test checkers to a separate script
Unignore the build folder recursively. Add the fixed script
Remove the redundant node-version messages
Run the tests with Api level 21
2016-03-04 16:53:30 +02:00
d816592739 allowing custom typedoc output directory 2016-03-28 10:53:00 +03:00
d3849f2a9b added an option to specify custom typedoc theme 2016-03-28 10:44:52 +03:00
9b2f72267c The 'grunt inplace' build will generate source maps now 2016-03-24 17:12:31 +02:00
3126c6b363 Fix the leave comments option of the build
The grunt file respected the --leavecomments option, used when
generating the How-To articles of the API Reference. This was broken with
the passthrough option to grunt-ts.
2016-03-16 17:55:30 +02:00
872e90c53b Exclude generated d.ts files from initial file list generation. 2016-03-09 10:58:04 +02:00
acd4f0b358 Ignore .base.d.ts for referenc.d.ts-es, pass through no strict 2016-03-08 09:19:54 +02:00
6fdb999a94 Let TS compile in-place
Add 'grunt inplace' to tsc and build d.ts-es
2016-02-26 17:47:54 +02:00
e23e234f59 Don't emit "use strict" in compiled source. It breaks on iOS. 2016-02-24 11:06:14 +02:00
baefd3eb5f Generate segmented d.ts files
- tns-core-modules-base.d.ts containing modules definitions with as little
platform stuff as possible. Angular apps will reference this one.
- tns-core-modules.es6.d.ts adding some platform stuff to base. Intended to
be used in environments supporting ES6 (obviously)
- tns-core-modules.d.ts adding to the previous one definitions for our ES6
polyfills: promises, collections, weakmaps, etc. The usual reference point
for most apps.
2016-02-11 15:08:49 +02:00
a1e14dbae2 Merge pull request #1470 from NativeScript/cankov/time-grunt
Enable build times profiling
2016-02-04 12:35:19 +02:00
d02834a955 Enable build times profilin using 'grunt .... --profile' 2016-02-02 13:46:17 +02:00
c3b4d40d0b Run tslint only once :-)
Two grunt tasks had it as a dependency, and that triggered two runs.
2016-02-02 13:10:41 +02:00
e879bf50dd TS fail on type errors 2016-01-12 09:56:23 +02:00