build command working for all ts libs

pull/7/head
aniket-engg 5 years ago
parent 845b93a852
commit 7bae5a93d8
  1. 10
      libs/remix-analyzer/tsconfig.json
  2. 10
      libs/remix-analyzer/tsconfig.lib.json
  3. 8
      libs/remix-astwalker/tsconfig.json
  4. 10
      libs/remix-astwalker/tsconfig.lib.json
  5. 40
      libs/remix-solidity/tsconfig.json
  6. 10
      libs/remix-solidity/tsconfig.lib.json
  7. 15
      libs/remix-tests/tsconfig.json
  8. 10
      libs/remix-tests/tsconfig.lib.json
  9. 10
      libs/remix-url-resolver/tsconfig.json
  10. 10
      libs/remix-url-resolver/tsconfig.lib.json
  11. 1
      package.json
  12. 65
      workspace.json

@ -1,22 +1,24 @@
{ {
"extends": "../../tsconfig.json",
"include": ["src", "index.ts"], "include": ["src", "index.ts"],
"compilerOptions": { "compilerOptions": {
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"lib": ["dom", "es2018"], /* Specify library files to be included in the compilation. */ "lib": ["dom", "es2018"], /* Specify library files to be included in the compilation. */
"types": ["node"],
"declaration": true, /* Generates corresponding '.d.ts' file. */ "declaration": true, /* Generates corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */ "sourceMap": true, /* Generates corresponding '.map' file. */
"outDir": "./dist", /* Redirect output structure to the directory. */ "outDir": "./dist", /* Redirect output structure to the directory. */
/* Strict Type-Checking Options */ /* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */ "strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */ "noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
/* Module Resolution Options */
"baseUrl": "./src", /* Base directory to resolve non-absolute module names. */
"paths": { "remix-analyzer": ["./"] }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
"typeRoots": [ "typeRoots": [
"./@types", "./@types",
"./node_modules/@types" "./node_modules/@types"
], ],
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
/* Experimental Options */
"experimentalDecorators": false, /* Enables experimental support for ES7 decorators. */
} }
} }

@ -1,10 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "../../dist/out-tsc",
"declaration": true,
"rootDir": "./",
"types": ["node"]
}
}

@ -1,5 +1,4 @@
{ {
"extends": "../../tsconfig.json",
"include": ["src"], "include": ["src"],
"exclude": ["node_modules", "src/@types" ], "exclude": ["node_modules", "src/@types" ],
"compilerOptions": { "compilerOptions": {
@ -9,10 +8,15 @@
"lib": ["dom", "es2018"], /* Specify library files to be included in the compilation. */ "lib": ["dom", "es2018"], /* Specify library files to be included in the compilation. */
"declaration": true, /* Generates corresponding '.d.ts' file. */ "declaration": true, /* Generates corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */ "sourceMap": true, /* Generates corresponding '.map' file. */
"outDir": "./dist", /* Redirect output structure to the directory. */
/* Strict Type-Checking Options */ /* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */ "strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */ "noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
/* Module Resolution Options */
"baseUrl": "./src", /* Base directory to resolve non-absolute module names. */
"paths": { "remix-tests": ["./"] }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
"typeRoots": ["./@types", "node_modules/@types"], /* List of folders to include type definitions from. */ "typeRoots": ["./@types", "node_modules/@types"], /* List of folders to include type definitions from. */
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"types": [ "types": [
@ -24,4 +28,4 @@
// Disables strictNullChecks // Disables strictNullChecks
"strictNullChecks": false "strictNullChecks": false
} }
} }

@ -1,10 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "../../dist/out-tsc",
"declaration": true,
"rootDir": "./src",
"types": ["node"]
}
}

@ -1,20 +1,24 @@
{ {
"extends": "../../tsconfig.json", "include": ["src", "index.ts"],
"include": ["src", "index.ts"], "compilerOptions": {
"compilerOptions": { "target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "lib": ["dom", "es2018"], /* Specify library files to be included in the compilation. */
"lib": ["dom", "es2018"], /* Specify library files to be included in the compilation. */ "declaration": true, /* Generates corresponding '.d.ts' file. */
"types": ["node"], "sourceMap": true, /* Generates corresponding '.map' file. */
"declaration": true, /* Generates corresponding '.d.ts' file. */ "outDir": "./dist", /* Redirect output structure to the directory. */
"sourceMap": true, /* Generates corresponding '.map' file. */ /* Strict Type-Checking Options */
/* Strict Type-Checking Options */ "strict": true, /* Enable all strict type-checking options. */
"strict": true, /* Enable all strict type-checking options. */ "noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
"noImplicitAny": false, /* Module Resolution Options */
"typeRoots": [ "baseUrl": "./src", /* Base directory to resolve non-absolute module names. */
"./@types", "paths": { "remix-solidity": ["./"] }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
"./node_modules/@types" "typeRoots": [
] "./@types",
} "./node_modules/@types"
],
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
/* Experimental Options */
"experimentalDecorators": false, /* Enables experimental support for ES7 decorators. */
} }
}

@ -1,10 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "../../dist/out-tsc",
"declaration": true,
"rootDir": "./",
"types": ["node"]
}
}

@ -1,19 +1,24 @@
{ {
"extends": "../../tsconfig.json",
"include": ["src"], "include": ["src"],
"compilerOptions": { "compilerOptions": {
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
"lib": ["dom", "es2018"], /* Specify library files to be included in the compilation. */ "lib": ["dom", "es2018"], /* Specify library files to be included in the compilation. */
"types": ["node"],
"declaration": true, /* Generates corresponding '.d.ts' file. */ "declaration": true, /* Generates corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */ "sourceMap": true, /* Generates corresponding '.map' file. */
"outDir": "./dist", /* Redirect output structure to the directory. */
/* Strict Type-Checking Options */ /* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */ "strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": false, "noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
/* Module Resolution Options */
"baseUrl": "./src", /* Base directory to resolve non-absolute module names. */
"paths": { "remix-tests": ["./"] }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
"typeRoots": [ "typeRoots": [
"./@types", "./@types",
"./node_modules/@types" "./node_modules/@types"
] ],
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
/* Experimental Options */
"experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
} }
} }

@ -1,10 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "../../dist/out-tsc",
"declaration": true,
"rootDir": "./src",
"types": ["node"]
}
}

@ -1,17 +1,21 @@
{ {
"extends": "../../tsconfig.json",
"compileOnSave": false, "compileOnSave": false,
"include": ["./src"], "include": ["./src"],
"compilerOptions": { "compilerOptions": {
"baseUrl": "./src",
"outDir": "./dist",
"sourceMap": true, "sourceMap": true,
"declaration": true, "declaration": true,
"module": "commonjs", "module": "commonjs",
"strict": true, "strict": true,
"noImplicitAny": false, "noImplicitAny": false,
"strictPropertyInitialization": false, "strictPropertyInitialization": false,
"experimentalDecorators": true,
"target": "es5", "target": "es5",
"typeRoots": ["node_modules/@types"], "typeRoots": ["node_modules/@types"],
"lib": ["dom", "es2018"], "lib": ["dom", "es2018"],
"types": ["node"], "paths": {
"remix-url-resolver": ["./"]
}
} }
} }

@ -1,10 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "../../dist/out-tsc",
"declaration": true,
"rootDir": "./src",
"types": ["node"]
}
}

@ -25,6 +25,7 @@
"start": "nx start", "start": "nx start",
"serve": "nx serve", "serve": "nx serve",
"build": "nx build", "build": "nx build",
"build:tslibs": "nx run-many --target=build --projects=remix-analyzer,remix-astwalker,remix-solidity,remix-tests,remix-url-resolver",
"test": "nx test", "test": "nx test",
"lint": "nx lint", "lint": "nx lint",
"lint:libs": "nx run-many --target=lint --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver", "lint:libs": "nx run-many --target=lint --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver",

@ -86,13 +86,14 @@
}, },
"test": {}, "test": {},
"build": { "build": {
"builder": "@nrwl/node:package", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"outputPath": "dist/libs/remix-analyzer", "commands": [
"tsConfig": "libs/remix-analyzer/tsconfig.lib.json", {
"packageJson": "libs/remix-analyzer/package.json", "command": "./../../node_modules/.bin/npm-run-all build"
"main": "libs/remix-analyzer/index.ts", }
"assets": ["libs/remix-analyzer/*.md"] ],
"cwd": "libs/remix-analyzer"
} }
} }
} }
@ -116,13 +117,14 @@
}, },
"test": {}, "test": {},
"build": { "build": {
"builder": "@nrwl/node:package", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"outputPath": "dist/libs/remix-astwalker", "commands": [
"tsConfig": "libs/remix-astwalker/tsconfig.lib.json", {
"packageJson": "libs/remix-astwalker/package.json", "command": "./../../node_modules/.bin/npm-run-all build"
"main": "libs/remix-astwalker/src/index.ts", }
"assets": ["libs/remix-astwalker/*.md"] ],
"cwd": "libs/remix-astwalker"
} }
} }
} }
@ -236,13 +238,14 @@
}, },
"test": {}, "test": {},
"build": { "build": {
"builder": "@nrwl/node:package", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"outputPath": "dist/libs/remix-solidity", "commands": [
"tsConfig": "libs/remix-solidity/tsconfig.lib.json", {
"packageJson": "libs/remix-solidity/package.json", "command": "./../../node_modules/.bin/npm-run-all build"
"main": "libs/remix-solidity/index.ts", }
"assets": ["libs/remix-solidity/*.md"] ],
"cwd": "libs/remix-solidity"
} }
} }
} }
@ -266,13 +269,14 @@
}, },
"test": {}, "test": {},
"build": { "build": {
"builder": "@nrwl/node:package", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"outputPath": "dist/libs/remix-tests", "commands": [
"tsConfig": "libs/remix-tests/tsconfig.lib.json", {
"packageJson": "libs/remix-tests/package.json", "command": "./../../node_modules/.bin/npm-run-all build"
"main": "libs/remix-tests/src/index.ts", }
"assets": ["libs/remix-tests/*.md"] ],
"cwd": "libs/remix-tests"
} }
} }
} }
@ -296,13 +300,14 @@
}, },
"test": {}, "test": {},
"build": { "build": {
"builder": "@nrwl/node:package", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"outputPath": "dist/libs/remix-url-resolver", "commands": [
"tsConfig": "libs/remix-url-resolver/tsconfig.lib.json", {
"packageJson": "libs/remix-url-resolver/package.json", "command": "./../../node_modules/.bin/npm-run-all build"
"main": "libs/remix-url-resolver/src/index.ts", }
"assets": ["libs/remix-url-resolver/*.md"] ],
"cwd": "libs/remix-url-resolver"
} }
} }
} }

Loading…
Cancel
Save