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
This commit is contained in:
Alexander Vakrilov
2019-10-03 14:50:59 +03:00
committed by GitHub
parent beffc5736a
commit 82f2ccbdfb
15 changed files with 93 additions and 629 deletions

View File

@@ -12,20 +12,9 @@
"@types/mocha": "^2.2.42",
"@types/node": "~10.12.18",
"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",
@@ -39,9 +28,7 @@
"reduce-css-calc": "^2.1.6",
"rimraf": "^2.5.0",
"shady-css-parser": "^0.1.0",
"shelljs": "^0.7.0",
"source-map-support": "^0.4.17",
"time-grunt": "1.3.0",
"tslib": "1.10.0",
"tslint": "^5.4.3",
"typedoc": "^0.13.0",
@@ -49,35 +36,20 @@
"typescript": "^3.1.6"
},
"scripts": {
"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",
"tsc": "node --max_old_space_size=4096 ./node_modules/typescript/bin/tsc",
"tsc-w": "npm run tsc -- --skipLibCheck -w",
"tslint": "tslint --project tsconfig.tslint.json --config build/tslint.json",
"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",
"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",
"unit-test": "tsc -p unit-tests/tsconfig.json && mocha --opts unit-tests/mocha.opts",
"unit-test-watch": "mocha-typescript-watch -p unit-tests/tsconfig.json --opts unit-tests/mocha.opts",
"setup-widgets": "(cd tns-core-modules-widgets && sh build.sh) && npm run dev-link-tns-core-modules-widgets",
"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": "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",
"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",
"tslint": "tslint --project tsconfig.tslint.json --config build/tslint.json",
"prepare-dist": "bash ./build/prepare-dist.sh",
"pack-dist": "bash ./build/pack-dist.sh"
}