commit
f4ca13401e
@ -1,12 +1,17 @@ |
||||
import "remix_tests.sol"; // this import is automatically injected by Remix. |
||||
|
||||
|
||||
import "./hardhat/console.sol"; |
||||
|
||||
contract AssertOkTest { |
||||
|
||||
function okPassTest() public { |
||||
console.log("AssertOkTest", "okPassTest"); |
||||
Assert.ok(true, "okPassTest passes"); |
||||
} |
||||
|
||||
function okFailTest() public { |
||||
console.log("AssertOkTest", "okFailTest"); |
||||
Assert.ok(false, "okFailTest fails"); |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,35 @@ |
||||
# remix-ui |
||||
|
||||
This library was generated with [Nx](https://nx.dev). |
||||
|
||||
## Pre-requisite |
||||
- Install **NxConsole** vscose extension |
||||
## Steps To Generate React App |
||||
- Open **NxConsole** extension |
||||
- Click generate option |
||||
- Select **@nrwl/react - application** |
||||
- Enter the name of the application |
||||
- Set **e2eTestRunner** to **none**. (This is because we run e2e tests with nightwatch) |
||||
- Set **unitTestRunner** to **none**. |
||||
- Click the run button in the top right corner of the generate page. |
||||
- Your react application should be created in **{root}/apps** directory. |
||||
## Steps To Generate React Lib |
||||
- Open **NxConsole** extension |
||||
- Click generate option |
||||
- Select **@nrwl/react - library** |
||||
- Enter the name of the library |
||||
- Set **directory** to **remix-ui** |
||||
- Set **importPath** to **@remix-ui/{library-name}** |
||||
- Set **unitTestRunner** to **none**. |
||||
- Click the run button in the top right corner of the generate page. |
||||
- Your react library should be created on **{root}/libs/remix-ui** directory. |
||||
|
||||
## Steps To Generate React Component |
||||
- Open **NxConsole** extension |
||||
- Click generate option |
||||
- Select **@nrwl/react - component** |
||||
- Enter the name of the component |
||||
- Select the name of the project/library that uses the component. (e.g TreeView library) |
||||
- Set component directory if needed. |
||||
- Click the run button in the top right corner of the generate page. |
||||
- Your react component should be created with the project/library name specified. |
@ -0,0 +1,48 @@ |
||||
{ |
||||
"compileOnSave": false, |
||||
"compilerOptions": { |
||||
"rootDir": ".", |
||||
"sourceMap": true, |
||||
"declaration": false, |
||||
"moduleResolution": "node", |
||||
"emitDecoratorMetadata": true, |
||||
"experimentalDecorators": true, |
||||
"importHelpers": true, |
||||
"target": "es2015", |
||||
"module": "commonjs", |
||||
"typeRoots": ["node_modules/@types"], |
||||
"lib": ["es2017", "es2019", "dom"], |
||||
"skipLibCheck": true, |
||||
"skipDefaultLibCheck": true, |
||||
"baseUrl": ".", |
||||
"paths": { |
||||
"@remix-project/remix-analyzer": ["dist/libs/remix-analyzer/index.js"], |
||||
"@remix-project/remix-astwalker": ["dist/libs/remix-astwalker/index.js"], |
||||
"@remix-project/remix-debug": ["dist/libs/remix-debug/src/index.js"], |
||||
"@remix-project/remix-lib": ["dist/libs/remix-lib/src/index.js"], |
||||
"@remix-project/remix-simulator": ["dist/libs/remix-simulator/src/index.js"], |
||||
"@remix-project/remix-solidity": ["dist/libs/remix-solidity/index.js"], |
||||
"@remix-project/remix-tests": ["dist/libs/remix-tests/src/index.js"], |
||||
"@remix-project/remix-url-resolver": ["dist/libs/remix-url-resolver/index.js"], |
||||
"@remixproject/debugger-plugin": ["apps/debugger/src/index.ts"], |
||||
"@remix-project/remixd": ["dist/libs/remixd/index.js"], |
||||
"@remix-ui/tree-view": ["libs/remix-ui/tree-view/src/index.ts"], |
||||
"@remix-ui/debugger-ui": ["libs/remix-ui/debugger-ui/src/index.ts"], |
||||
"@remix-ui/utils": ["libs/remix-ui/utils/src/index.ts"], |
||||
"@remix-ui/clipboard": ["libs/remix-ui/clipboard/src/index.ts"], |
||||
"@remix-project/remix-solidity-ts": ["libs/remix-solidity/src/index.ts"], |
||||
"@remix-ui/modal-dialog": ["libs/remix-ui/modal-dialog/src/index.ts"], |
||||
"@remix-ui/toaster": ["libs/remix-ui/toaster/src/index.ts"], |
||||
"@remix-ui/file-explorer": ["libs/remix-ui/file-explorer/src/index.ts"], |
||||
"@remix-ui/workspace": ["libs/remix-ui/workspace/src/index.ts"], |
||||
"@remix-ui/static-analyser": ["libs/remix-ui/static-analyser/src/index.ts"], |
||||
"@remix-ui/checkbox": ["libs/remix-ui/checkbox/src/index.ts"], |
||||
"@remix-ui/settings": ["libs/remix-ui/settings/src/index.ts"], |
||||
"@remix-project/core-plugin": ["libs/remix-core-plugin/src/index.ts"], |
||||
"@remix-ui/solidity-compiler": ["libs/remix-ui/solidity-compiler/src/index.ts"], |
||||
"@remix-ui/publish-to-storage": ["libs/remix-ui/publish-to-storage/src/index.ts"], |
||||
"@remix-ui/renderer": ["libs/remix-ui/renderer/src/index.ts"] |
||||
} |
||||
}, |
||||
"exclude": ["node_modules", "tmp"] |
||||
} |
Loading…
Reference in new issue