Commit ef8c4b04 authored by aniket-engg's avatar aniket-engg

build and test command done

parent 7bae5a93
...@@ -5,7 +5,7 @@ import node from "./resources/legacyAST"; ...@@ -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 @@ ...@@ -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,12 +84,28 @@ ...@@ -84,12 +84,28 @@
"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,12 +131,28 @@ ...@@ -115,12 +131,28 @@
"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 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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,12 +277,28 @@ ...@@ -236,12 +277,28 @@
"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,12 +324,28 @@ ...@@ -267,12 +324,28 @@
"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,12 +371,28 @@ ...@@ -298,12 +371,28 @@
"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"
} }
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment