chore: cleanup types

This commit is contained in:
Nathan Walker
2020-08-31 17:42:17 -07:00
parent 92d93fdf88
commit 57e646f512
23 changed files with 113 additions and 215 deletions

View File

@@ -11,9 +11,7 @@
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "tns debug ios --no-hmr --emulator --env.testing"
}
"ns debug ios --no-hmr --emulator --env.testing"
],
"cwd": "apps/automated",
"parallel": false
@@ -23,9 +21,7 @@
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "tns debug android --no-hmr --emulator --env.testing"
}
"ns debug android --no-hmr --emulator --env.testing"
],
"cwd": "apps/automated",
"parallel": false
@@ -35,15 +31,9 @@
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "npx rimraf -- hooks node_modules platforms package-lock.json webpack.config.js"
},
{
"command": "npm i"
},
{
"command": "npx rimraf -- package-lock.json"
}
"npx rimraf -- hooks node_modules platforms package-lock.json webpack.config.js",
"npm i",
"npx rimraf -- package-lock.json"
],
"cwd": "apps/automated",
"parallel": false
@@ -71,7 +61,7 @@
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
"tns debug android --no-hmr --emulator --env.testing"
"ns debug android --no-hmr --emulator --env.testing"
],
"cwd": "apps/toolbox",
"parallel": false
@@ -101,9 +91,7 @@
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "tns debug ios --no-hmr --emulator --env.testing"
}
"ns debug ios --no-hmr --emulator --env.testing"
],
"cwd": "apps/ui",
"parallel": false
@@ -113,9 +101,7 @@
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "tns debug android --no-hmr --emulator --env.testing"
}
"ns debug android --no-hmr --emulator --env.testing"
],
"cwd": "apps/ui",
"parallel": false
@@ -125,15 +111,9 @@
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "npx rimraf -- hooks node_modules platforms package-lock.json webpack.config.js"
},
{
"command": "npm i"
},
{
"command": "npx rimraf -- package-lock.json"
}
"npx rimraf -- hooks node_modules platforms package-lock.json webpack.config.js",
"npm i",
"npx rimraf -- package-lock.json"
],
"cwd": "apps/ui",
"parallel": false
@@ -174,14 +154,13 @@
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "nx run webpack:build"
}
"nx run webpack:build"
]
}
},
"build": {
"builder": "@nrwl/node:package",
"outputs": ["dist/packages"],
"options": {
"outputPath": "dist/packages/core",
"tsConfig": "packages/core/tsconfig.lib.json",
@@ -194,21 +173,22 @@
},
"build.npm": {
"builder": "@nrwl/workspace:run-commands",
"outputs": ["dist/packages"],
"options": {
"commands": [
{
"command": "nx run core:build && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/**/*.d.ts\" dist && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/js-libs/**/*\" dist && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/cli-hooks/**/*.js\" dist && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/platforms/**/*\" dist && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/fetch/**/*\" dist && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/css/**/*\" dist && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/css-value/**/*\" dist && cd dist/packages/core && npm pack && mv *.tgz .."
}
]
"nx run core:build && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/**/*.d.ts\" dist && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/js-libs/**/*\" dist && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/cli-hooks/**/*.js\" dist && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/platforms/**/*\" dist && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/fetch/**/*\" dist && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/css/**/*\" dist && ./node_modules/.bin/copyfiles -e \"packages/core/__tests__/**/*\" \"packages/core/css-value/**/*\" dist",
"cp LICENSE dist/packages/core",
"cd dist/packages/core && npm pack && mv *.tgz .."
],
"cwd": ".",
"parallel": false
}
},
"unit": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "../../../node_modules/.bin/tsc -p tsconfig.json && ../../../node_modules/.bin/mocha --config=.mocharc.yml"
}
"../../../node_modules/.bin/tsc -p tsconfig.json && ../../../node_modules/.bin/mocha --config=.mocharc.yml"
],
"cwd": "packages/core/__tests__",
"parallel": false
@@ -218,9 +198,7 @@
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "../../../node_modules/.bin/tsc -p tsconfig.json && ../../../node_modules/.bin/mocha --watch --config=.mocharc.yml"
}
"../../../node_modules/.bin/tsc -p tsconfig.json && ../../../node_modules/.bin/mocha --watch --config=.mocharc.yml"
],
"cwd": "packages/core/__tests__",
"parallel": false
@@ -239,18 +217,10 @@
"outputs": ["dist/packages"],
"options": {
"commands": [
{
"command": "npx rimraf -- node_modules package-lock.json"
},
{
"command": "npm i"
},
{
"command": "../../node_modules/.bin/tsc -p tsconfig.json"
},
{
"command": "mv \"$(npm pack | tail -n 1)\" ../../dist/packages/tns-core-modules.tgz"
}
"npx rimraf -- node_modules package-lock.json",
"npm i",
"../../node_modules/.bin/tsc -p tsconfig.json",
"mv \"$(npm pack | tail -n 1)\" ../../dist/packages/tns-core-modules.tgz"
],
"cwd": "packages/core-compat",
"parallel": false
@@ -258,45 +228,43 @@
}
}
},
"types": {
"root": "packages/types",
"sourceRoot": "packages/types",
"projectType": "library",
"schematics": {},
"architect": {
"build": {
"builder": "@nrwl/workspace:run-commands",
"outputs": ["dist/packages"],
"options": {
"commands": [
"mkdir -p ../../dist/packages/types",
"cp -R * ../../dist/packages/types"
],
"cwd": "packages/types",
"parallel": false
}
}
}
},
"types-ios": {
"root": "packages/types-ios",
"sourceRoot": "packages/types-ios/src",
"projectType": "library",
"schematics": {},
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"options": {
"linter": "eslint",
"config": "packages/types-ios/.eslintrc",
"tsConfig": [
"packages/types-ios/tsconfig.lib.json",
"packages/types-ios/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**",
"!packages/types-ios/**"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "packages/types-ios/jest.config.js",
"tsConfig": "packages/types-ios/tsconfig.spec.json",
"passWithNoTests": true
}
},
"build": {
"builder": "@nrwl/node:package",
"builder": "@nrwl/workspace:run-commands",
"outputs": ["dist/packages"],
"options": {
"outputPath": "dist/packages/types-ios",
"tsConfig": "packages/types-ios/tsconfig.lib.json",
"packageJson": "packages/types-ios/package.json",
"main": "packages/types-ios/src/index.ts",
"assets": [
"packages/types-ios/*.md"
]
"commands": [
"mkdir -p ../../dist/packages/types-ios",
"cp -R src/* ../../dist/packages/types-ios",
"cp package.json *.md ../../dist/packages/types-ios"
],
"cwd": "packages/types-ios",
"parallel": false
}
}
}
@@ -307,39 +275,17 @@
"projectType": "library",
"schematics": {},
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"options": {
"linter": "eslint",
"config": "packages/types-android/.eslintrc",
"tsConfig": [
"packages/types-android/tsconfig.lib.json",
"packages/types-android/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**",
"!packages/types-android/**"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "packages/types-android/jest.config.js",
"tsConfig": "packages/types-android/tsconfig.spec.json",
"passWithNoTests": true
}
},
"build": {
"builder": "@nrwl/node:package",
"builder": "@nrwl/workspace:run-commands",
"outputs": ["dist/packages"],
"options": {
"outputPath": "dist/packages/types-android",
"tsConfig": "packages/types-android/tsconfig.lib.json",
"packageJson": "packages/types-android/package.json",
"main": "packages/types-android/src/index.ts",
"assets": [
"packages/types-android/*.md"
]
"commands": [
"mkdir -p ../../dist/packages/types-android",
"cp -R src/* ../../dist/packages/types-android",
"cp package.json *.md ../../dist/packages/types-android"
],
"cwd": "packages/types-android",
"parallel": false
}
}
}