build and test command done

pull/7/head
aniket-engg 5 years ago
parent 7bae5a93d8
commit ef8c4b0449
  1. 2
      libs/remix-astwalker/tests/LegacyTest.ts
  2. 1
      package.json
  3. 147
      workspace.json

@ -5,7 +5,7 @@ import node from "./resources/legacyAST";
tape("ASTWalker Legacy", (t: tape.Test) => { tape("ASTWalker Legacy", (t: tape.Test) => {
t.test("ASTWalker.walk && .walkAST", (st: tape.Test) => { t.test("ASTWalker.walk && .walkAST", (st: tape.Test) => {
st.plan(19); st.plan(17);
// New Ast Object // New Ast Object
const astWalker = new AstWalker(); const astWalker = new AstWalker();
// EventListener // EventListener

@ -27,6 +27,7 @@
"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", "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",
"test:libs": "nx run-many --target=test --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver",
"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",
"e2e": "nx e2e", "e2e": "nx e2e",

@ -84,11 +84,27 @@
"cwd": "libs/remix-analyzer" "cwd": "libs/remix-analyzer"
} }
}, },
"test": {}, "test": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "rm -rf ../../dist"
},
{
"command": "./../../node_modules/.bin/npm-run-all test"
}
],
"cwd": "libs/remix-analyzer"
}
},
"build": { "build": {
"builder": "@nrwl/workspace:run-commands", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"commands": [ "commands": [
{
"command": "rm -rf ../../dist"
},
{ {
"command": "./../../node_modules/.bin/npm-run-all build" "command": "./../../node_modules/.bin/npm-run-all build"
} }
@ -115,11 +131,27 @@
"cwd": "libs/remix-astwalker" "cwd": "libs/remix-astwalker"
} }
}, },
"test": {}, "test": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "rm -rf ../../dist"
},
{
"command": "./../../node_modules/.bin/npm-run-all test"
}
],
"cwd": "libs/remix-astwalker"
}
},
"build": { "build": {
"builder": "@nrwl/workspace:run-commands", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"commands": [ "commands": [
{
"command": "rm -rf ../../dist"
},
{ {
"command": "./../../node_modules/.bin/npm-run-all build" "command": "./../../node_modules/.bin/npm-run-all build"
} }
@ -146,15 +178,18 @@
"cwd": "libs/remix-debug" "cwd": "libs/remix-debug"
} }
}, },
"test": {}, "test": {
"build": { "builder": "@nrwl/workspace:run-commands",
"builder": "@nrwl/node:package",
"options": { "options": {
"outputPath": "dist/libs/remix-debug", "commands": [
"tsConfig": "", {
"packageJson": "libs/remix-debug/package.json", "command": "rm -rf ../../dist"
"main": "libs/remix-debug/index.js", },
"assets": ["libs/remix-debug/*.md"] {
"command": "./../../node_modules/.bin/npm-run-all test"
}
],
"cwd": "libs/remix-debug"
} }
} }
} }
@ -176,15 +211,18 @@
"cwd": "libs/remix-lib" "cwd": "libs/remix-lib"
} }
}, },
"test": {}, "test": {
"build": { "builder": "@nrwl/workspace:run-commands",
"builder": "@nrwl/node:package",
"options": { "options": {
"outputPath": "dist/libs/remix-lib", "commands": [
"tsConfig": "", {
"packageJson": "libs/remix-lib/package.json", "command": "rm -rf ../../dist"
"main": "libs/remix-lib/index.js", },
"assets": ["libs/remix-lib/*.md"] {
"command": "./../../node_modules/.bin/npm-run-all test"
}
],
"cwd": "libs/remix-lib"
} }
} }
} }
@ -206,15 +244,18 @@
"cwd": "libs/remix-simulator" "cwd": "libs/remix-simulator"
} }
}, },
"test": {}, "test": {
"build": { "builder": "@nrwl/workspace:run-commands",
"builder": "@nrwl/node:package",
"options": { "options": {
"outputPath": "dist/libs/remix-simulator", "commands": [
"tsConfig": "", {
"packageJson": "libs/remix-simulator/package.json", "command": "rm -rf ../../dist"
"main": "libs/remix-simulator/index.js", },
"assets": ["libs/remix-simulator/*.md"] {
"command": "./../../node_modules/.bin/npm-run-all test"
}
],
"cwd": "libs/remix-simulator"
} }
} }
} }
@ -236,11 +277,27 @@
"cwd": "libs/remix-solidity" "cwd": "libs/remix-solidity"
} }
}, },
"test": {}, "test": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "rm -rf ../../dist"
},
{
"command": "./../../node_modules/.bin/npm-run-all test"
}
],
"cwd": "libs/remix-solidity"
}
},
"build": { "build": {
"builder": "@nrwl/workspace:run-commands", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"commands": [ "commands": [
{
"command": "rm -rf ../../dist"
},
{ {
"command": "./../../node_modules/.bin/npm-run-all build" "command": "./../../node_modules/.bin/npm-run-all build"
} }
@ -267,11 +324,27 @@
"cwd": "libs/remix-tests" "cwd": "libs/remix-tests"
} }
}, },
"test": {}, "test": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "rm -rf ../../dist"
},
{
"command": "./../../node_modules/.bin/npm-run-all test"
}
],
"cwd": "libs/remix-tests"
}
},
"build": { "build": {
"builder": "@nrwl/workspace:run-commands", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"commands": [ "commands": [
{
"command": "rm -rf ../../dist"
},
{ {
"command": "./../../node_modules/.bin/npm-run-all build" "command": "./../../node_modules/.bin/npm-run-all build"
} }
@ -298,11 +371,27 @@
"cwd": "libs/remix-url-resolver" "cwd": "libs/remix-url-resolver"
} }
}, },
"test": {}, "test": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": [
{
"command": "rm -rf ../../dist"
},
{
"command": "./../../node_modules/.bin/npm-run-all test"
}
],
"cwd": "libs/remix-url-resolver"
}
},
"build": { "build": {
"builder": "@nrwl/workspace:run-commands", "builder": "@nrwl/workspace:run-commands",
"options": { "options": {
"commands": [ "commands": [
{
"command": "rm -rf ../../dist"
},
{ {
"command": "./../../node_modules/.bin/npm-run-all build" "command": "./../../node_modules/.bin/npm-run-all build"
} }

Loading…
Cancel
Save