Skip to content

Commit

Permalink
chore: update build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Mar 18, 2022
1 parent 4d87d63 commit 490ebda
Show file tree
Hide file tree
Showing 44 changed files with 1,427 additions and 1,089 deletions.
41 changes: 0 additions & 41 deletions .eslintrc

This file was deleted.

41 changes: 41 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier", "plugin:@nrwl/nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
},
{
"files": ["references.d.ts"],
"rules": {
"@typescript-eslint/triple-slash-reference": "off"
}
}
]
}
1 change: 1 addition & 0 deletions .nxignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apps/**/*_off
18 changes: 18 additions & 0 deletions apps/demo-angular/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*", "node_modules/**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
34 changes: 17 additions & 17 deletions apps/demo-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"main": "./src/main.ts",
"dependencies": {
"@nativescript/canvas": "file:../../dist/packages/canvas",
"@nativescript/canvas-babylon": "file:../../dist/packages/canvas-babylon",
"@nativescript/canvas-media": "file:../../dist/packages/canvas-media",
"@nativescript/canvas-phaser": "file:../../dist/packages/canvas-phaser",
"@nativescript/canvas-phaser-ce": "file:../../dist/packages/canvas-phaser-ce",
"@nativescript/canvas-pixi": "file:../../dist/packages/canvas-pixi",
"@nativescript/canvas-polyfill": "file:../../dist/packages/canvas-polyfill",
"@nativescript/canvas-three": "file:../../dist/packages/canvas-three",
"@nativescript/core": "file:../../node_modules/@nativescript/core",
"three": "file:../../node_modules/three"
},
"devDependencies": {
"@nativescript/android": "8.2.0-alpha.2",
"@nativescript/ios": "8.0.0"
}
"main": "./src/main.ts",
"dependencies": {
"@nativescript/canvas": "file:../../dist/packages/canvas",
"@nativescript/canvas-babylon": "file:../../dist/packages/canvas-babylon",
"@nativescript/canvas-media": "file:../../dist/packages/canvas-media",
"@nativescript/canvas-phaser": "file:../../dist/packages/canvas-phaser",
"@nativescript/canvas-phaser-ce": "file:../../dist/packages/canvas-phaser-ce",
"@nativescript/canvas-pixi": "file:../../dist/packages/canvas-pixi",
"@nativescript/canvas-polyfill": "file:../../dist/packages/canvas-polyfill",
"@nativescript/canvas-three": "file:../../dist/packages/canvas-three",
"@nativescript/core": "file:../../node_modules/@nativescript/core",
"three": "file:../../node_modules/three"
},
"devDependencies": {
"@nativescript/android": "~8.2.0",
"@nativescript/ios": "~8.2.0"
}
}
62 changes: 62 additions & 0 deletions apps/demo-angular/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"root": "apps/demo-angular/",
"sourceRoot": "apps/demo-angular/src",
"projectType": "application",
"prefix": "demo",
"targets": {
"build": {
"executor": "@nativescript/nx:build",
"options": {
"noHmr": true,
"production": true,
"uglify": true,
"release": true,
"forDevice": true
},
"dependsOn": [
{
"target": "build.all",
"projects": "dependencies"
}
]
},
"ios": {
"executor": "@nativescript/nx:build",
"options": {
"platform": "ios",
"noHmr": true
},
"dependsOn": [
{
"target": "build.all",
"projects": "dependencies"
}
]
},
"android": {
"executor": "@nativescript/nx:build",
"options": {
"platform": "android",
"noHmr": true
},
"dependsOn": [
{
"target": "build.all",
"projects": "dependencies"
}
]
},
"clean": {
"executor": "@nativescript/nx:build",
"options": {
"clean": true
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": ["apps/demo-angular/**/*.ts"]
}
}
}
}
44 changes: 19 additions & 25 deletions apps/demo-angular/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"rootDirs": [
".",
"../.."
],
"baseUrl": ".",
"paths": {
"~/*": [
"src/*"
],
"@nativescript/*": [
"../../dist/packages/*"
],
"@demo/shared": [
"../../tools/demo/index.ts"
]
}
},
"files": [
"./references.d.ts",
"./src/main.ts",
"./src/polyfills.ts"
]
}
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"paths": {
"~/*": ["src/*"],
"@demo/shared": ["tools/demo/index.ts"],
"@nativescript/canvas": ["packages/canvas/index.ts"],
"@nativescript/canvas/angular": ["packages/canvas/angular/index.ts"],
"@nativescript/canvas-babylon": ["packages/canvas-babylon/index.ts"],
"@nativescript/canvas-polyfill": ["packages/canvas-polyfill/index.ts"],
"@nativescript/canvas-phaser": ["packages/canvas-phaser/index.ts"],
"@nativescript/canvas-phaser-ce": ["packages/canvas-phaser-ce/index.ts"],
"@nativescript/canvas-pixi": ["packages/canvas-pixi/index.ts"],
"@nativescript/canvas-three": ["packages/canvas-three/index.ts"],
"@nativescript/canvas-media": ["packages/canvas-media/index.ts"]
}
},
"files": ["./references.d.ts", "./src/main.ts", "./src/polyfills.ts"],
"include": ["../../packages/**/references.d.ts"]
}
18 changes: 18 additions & 0 deletions apps/demo-vue/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*", "node_modules/**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
36 changes: 18 additions & 18 deletions apps/demo-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"main": "./app/app.ts",
"dependencies": {
"nativescript-vue": "file:../../node_modules/nativescript-vue",
"@nativescript/core": "file:../../node_modules/@nativescript/core",
"@nativescript/canvas-media": "file:../../packages/canvas-media",
"@nativescript/canvas": "file:../../packages/canvas",
"@nativescript/canvas-babylon": "file:../../packages/canvas-babylon",
"@nativescript/canvas-phaser": "file:../../packages/canvas-phaser",
"@nativescript/canvas-phaser-ce": "file:../../packages/canvas-phaser-ce",
"@nativescript/canvas-pixi": "file:../../packages/canvas-pixi",
"@nativescript/canvas-polyfill": "file:../../packages/canvas-polyfill",
"@nativescript/canvas-three": "file:../../packages/canvas-three"
},
"devDependencies": {
"@nativescript/android": "8.0.0",
"@nativescript/ios": "8.0.0"
}
}
"main": "./app/app.ts",
"dependencies": {
"nativescript-vue": "file:../../node_modules/nativescript-vue",
"@nativescript/core": "file:../../node_modules/@nativescript/core",
"@nativescript/canvas-media": "file:../../packages/canvas-media",
"@nativescript/canvas": "file:../../packages/canvas",
"@nativescript/canvas-babylon": "file:../../packages/canvas-babylon",
"@nativescript/canvas-phaser": "file:../../packages/canvas-phaser",
"@nativescript/canvas-phaser-ce": "file:../../packages/canvas-phaser-ce",
"@nativescript/canvas-pixi": "file:../../packages/canvas-pixi",
"@nativescript/canvas-polyfill": "file:../../packages/canvas-polyfill",
"@nativescript/canvas-three": "file:../../packages/canvas-three"
},
"devDependencies": {
"@nativescript/android": "~8.2.0",
"@nativescript/ios": "~8.2.0"
}
}
60 changes: 60 additions & 0 deletions apps/demo-vue/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"root": "apps/demo-vue/",
"sourceRoot": "apps/demo-vue/src",
"projectType": "application",
"prefix": "demo",
"targets": {
"build": {
"executor": "@nativescript/nx:build",
"options": {
"noHmr": true,
"production": true,
"uglify": true,
"release": true,
"forDevice": true
},
"dependsOn": [
{
"target": "build.all",
"projects": "dependencies"
}
]
},
"ios": {
"executor": "@nativescript/nx:build",
"options": {
"platform": "ios"
},
"dependsOn": [
{
"target": "build.all",
"projects": "dependencies"
}
]
},
"android": {
"executor": "@nativescript/nx:build",
"options": {
"platform": "android"
},
"dependsOn": [
{
"target": "build.all",
"projects": "dependencies"
}
]
},
"clean": {
"executor": "@nativescript/nx:build",
"options": {
"clean": true
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": ["apps/demo-vue/**/*.ts"]
}
}
}
}
18 changes: 18 additions & 0 deletions apps/demo/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*", "node_modules/**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
Loading

0 comments on commit 490ebda

Please sign in to comment.