mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* 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
87 lines
5.2 KiB
JSON
87 lines
5.2 KiB
JSON
{
|
|
"name": "NativeScript",
|
|
"description": "Telerik NativeScript Core Modules",
|
|
"homepage": "https://www.nativescript.org",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/NativeScript/NativeScript"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"devDependencies": {
|
|
"@types/chai": "^4.0.4",
|
|
"@types/mocha": "^2.2.42",
|
|
"@types/node": "^7.0.5",
|
|
"chai": "^4.1.2",
|
|
"concurrently": "^2.1.0",
|
|
"css": "^2.2.1",
|
|
"css-tree": "^1.0.0-alpha24",
|
|
"gonzales": "^1.0.7",
|
|
"grunt": "1.0.1",
|
|
"grunt-contrib-clean": "1.0.0",
|
|
"grunt-contrib-copy": "git://github.com/NativeScript/grunt-contrib-copy.git#master",
|
|
"grunt-env": "0.4.4",
|
|
"grunt-exec": "1.0.1",
|
|
"grunt-mkdir": "1.0.0",
|
|
"grunt-shell": "2.1.0",
|
|
"grunt-simple-mocha": "0.4.1",
|
|
"grunt-ts": "6.0.0-beta.11",
|
|
"grunt-typedoc": "0.2.4",
|
|
"madge": "^2.2.0",
|
|
"markdown-snippet-injector": "0.2.2",
|
|
"mocha": "^3.5.0",
|
|
"mocha-typescript": "^1.1.9",
|
|
"module-alias": "^2.0.1",
|
|
"nativescript-typedoc-theme": "git://github.com/NativeScript/nativescript-typedoc-theme.git#master",
|
|
"parse-css": "git+https://github.com/tabatkins/parse-css.git",
|
|
"parserlib": "^1.1.1",
|
|
"reduce-css-calc": "^2.1.6",
|
|
"shady-css-parser": "^0.1.0",
|
|
"shelljs": "^0.7.0",
|
|
"source-map-support": "^0.4.17",
|
|
"time-grunt": "1.3.0",
|
|
"tslib": "^1.9.3",
|
|
"tslint": "^5.4.3",
|
|
"typedoc": "^0.13.0",
|
|
"typedoc-plugin-external-module-name": "git://github.com/PanayotCankov/typedoc-plugin-external-module-name.git#with-js",
|
|
"typescript": "^3.1.6"
|
|
},
|
|
"scripts": {
|
|
"setup": "",
|
|
"setup-widgets": "( cd tns-core-modules-widgets && sh build.sh ) && npm run dev-link-tns-core-modules-widgets",
|
|
"tsc": "node --max_old_space_size=4096 ./node_modules/typescript/bin/tsc",
|
|
"ci": "tsc && npm run tslint && npm run ci-apps && npm run ci-e2e && npm run ci-tests",
|
|
"ci-apps": "cd apps && npm i ../tns-core-modules ../tns-platform-declarations --save",
|
|
"ci-e2e": "cd e2e && cd modal-navigation && npm i ../../tns-core-modules ../../tns-platform-declarations --save",
|
|
"ci-tests": "cd tests && npm i ../tns-core-modules ../tns-platform-declarations --save",
|
|
"unit-test": "tsc -p tsconfig.unit-tests.json && mocha --opts unit-tests/mocha.opts",
|
|
"unit-test-watch": "mocha-typescript-watch -p tsconfig.unit-tests.json --opts unit-tests/mocha.opts",
|
|
"compile-all": "npm run tsc -- -p tsconfig.json --outDir bin/dist",
|
|
"compile-modules": "npm run tsc -- -p tsconfig.modules.json --outDir bin/dist",
|
|
"compile-check-base-dts": "npm run tsc -- -p tsconfig.base-dts.json",
|
|
"compile-unit-tests": "npm run tsc -- -p tsconfig.unit-tests.json --outDir bin/dist/unit-tests",
|
|
"compile-check-combined-dts": "npm run tsc -- -p tsconfig.combined-dts.json",
|
|
"tsc-w": "npm run tsc -- --skipLibCheck -w",
|
|
"dev-tsc-tns-platform-declarations": "npm run tsc -- -p tns-platform-declarations",
|
|
"dev-tsc-tests": "npm run tsc -- -p tests",
|
|
"dev-tsc-apps": "npm run tsc -- -p apps",
|
|
"dev-tsc-e2e": "npm run tsc -- -p e2e",
|
|
"dev-tsc-all": "npm run dev-tsc-tns-platform-declarations && npm run tsc && npm run dev-tsc-tests && npm run dev-tsc-apps && && npm run dev-tsc-e2e",
|
|
"dev-link-tns-core-modules-widgets": "(cd tns-core-modules-widgets/dist/package && npm link) && (cd tns-core-modules && npm i ../tns-core-modules-widgets/dist/package --save)",
|
|
"dev-declarations": "npm run setup && rm -rf tns-platform-declarations/ios/objc* && TNS_TYPESCRIPT_DECLARATIONS_PATH=$PWD/tns-platform-declarations/ios/objc tns build ios --path tests",
|
|
"test": "npm run test-android && npm run test-ios",
|
|
"pretest": "npm run setup && npm run tsc",
|
|
"test-android": "tns run android --path tests --justlaunch --no-watch",
|
|
"test-ios": "tns run ios --path tests --justlaunch --no-watch",
|
|
"test-watch-android": "npm run pretest && concurrently --kill-others \"npm run tsc-w\" \"tns run android --path tests --watch\"",
|
|
"test-watch-ios": "npm run pretest && concurrently --kill-others \"npm run tsc-w\" \"tns run ios --path tests --watch\"",
|
|
"typedoc": "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\"",
|
|
"dev-typedoc": "npm run typedoc && cd bin/dist/apiref && npx http-server",
|
|
"test-tsc-es2016": "npm run tsc -- -p tsconfig.public.es2016.json",
|
|
"tslint": "tslint --project tsconfig.tslint.json --config build/tslint.json",
|
|
"madge-ios": "tsc --skipLibCheck && tns prepare ios --path tests && madge --circular tests/platforms/ios/tests/app/tns_modules/tns-core-modules",
|
|
"madge-ios-image": "tsc --skipLibCheck && tns prepare ios --path tests && madge --image graph-tests-ios.svg tests/platforms/ios/tests/app/tns_modules/tns-core-modules",
|
|
"madge-android": "tsc --skipLibCheck && tns prepare android --path tests && madge --circular tests/platforms/android/app/src/main/assets/app/tns_modules/tns-core-modules",
|
|
"madge-android-image": "tsc --skipLibCheck && tns prepare android --path tests && madge --image graph-tests-android.svg tests/platforms/android/app/src/main/assets/app/tns_modules/tns-core-modules"
|
|
}
|
|
}
|