@digitalnative/cosmwasm
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"root": true, | ||
"ignorePatterns": ["**/*"], | ||
"plugins": ["@nrwl/nx", "prefer-let"], | ||
"extends": ["../../.eslintrc.json"], | ||
"ignorePatterns": ["!**/*"], | ||
"overrides": [ | ||
@@ -9,15 +8,3 @@ { | ||
"rules": { | ||
"@nrwl/nx/enforce-module-boundaries": [ | ||
"error", | ||
{ | ||
"enforceBuildableLibDependency": true, | ||
"allow": [], | ||
"depConstraints": [ | ||
{ | ||
"sourceTag": "*", | ||
"onlyDependOnLibsWithTags": ["*"] | ||
} | ||
] | ||
} | ||
] | ||
"@typescript-eslint/no-explicit-any": "off" | ||
} | ||
@@ -27,24 +14,9 @@ }, | ||
"files": ["*.ts", "*.tsx"], | ||
"extends": ["plugin:@nrwl/nx/typescript"], | ||
"rules": { | ||
"prefer-const": "off", | ||
"prefer-let/prefer-let": "warn", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"argsIgnorePattern": "^_" | ||
} | ||
] | ||
} | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["*.js", "*.jsx"], | ||
"extends": ["plugin:@nrwl/nx/javascript"], | ||
"rules": { | ||
"prefer-const": "off", | ||
"prefer-let/prefer-let": "warn" | ||
} | ||
"rules": {} | ||
} | ||
] | ||
} |
@@ -0,3 +1,16 @@ | ||
/* eslint-disable */ | ||
export default { | ||
projects: ["<rootDir>/packages/cargo", "<rootDir>/e2e\\cargo-e2e"], | ||
displayName: "cargo", | ||
preset: "../../jest.preset.js", | ||
globals: { | ||
"ts-jest": { | ||
tsconfig: "<rootDir>/tsconfig.spec.json", | ||
}, | ||
}, | ||
testEnvironment: "node", | ||
transform: { | ||
"^.+\\.[tj]sx?$": "ts-jest", | ||
}, | ||
moduleFileExtensions: ["ts", "tsx", "js", "jsx"], | ||
coverageDirectory: "../../coverage/packages/cargo", | ||
}; |
{ | ||
"name": "@digitalnative/cosmwasm", | ||
"version": "0.0.2", | ||
"license": "MIT", | ||
"scripts": { | ||
"nx": "nx", | ||
"start": "nx serve", | ||
"build": "nx build", | ||
"test": "nx test", | ||
"lint": "nx workspace-lint && nx lint", | ||
"e2e": "jest e2e/cargo-e2e --runInBand", | ||
"affected:apps": "nx affected:apps", | ||
"affected:libs": "nx affected:libs", | ||
"affected:build": "nx affected:build", | ||
"affected:e2e": "nx affected:e2e", | ||
"affected:test": "nx affected:test", | ||
"affected:lint": "nx affected:lint", | ||
"affected:dep-graph": "nx affected:dep-graph", | ||
"affected": "nx affected", | ||
"format": "nx format:write", | ||
"format:write": "nx format:write", | ||
"format:check": "nx format:check", | ||
"update": "nx migrate latest", | ||
"workspace-generator": "nx workspace-generator", | ||
"dep-graph": "nx dep-graph", | ||
"help": "nx help" | ||
"version": "0.0.3", | ||
"license": "Apache-2.0", | ||
"main": "src/index.js", | ||
"generators": "./generators.json", | ||
"executors": "./executors.json", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/digitalnative/nx-cosmwasm" | ||
}, | ||
"private": false, | ||
"publishConfig": { | ||
"access": "public" | ||
"author": { | ||
"name": "Hyungsuk Kang", | ||
"email": "hskang9@gmail.com", | ||
"url": "https://github.com/hskang9" | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.0.0" | ||
"chalk": "^4.1.2" | ||
}, | ||
"devDependencies": { | ||
"@nrwl/cli": "14.3.5", | ||
"@nrwl/devkit": "14.3.5", | ||
"@nrwl/eslint-plugin-nx": "14.3.5", | ||
"@nrwl/jest": "14.3.5", | ||
"@nrwl/js": "14.3.5", | ||
"@nrwl/linter": "14.3.5", | ||
"@nrwl/node": "14.3.5", | ||
"@nrwl/nx-cloud": "14.1.1", | ||
"@nrwl/nx-plugin": "14.3.5", | ||
"@nrwl/workspace": "14.3.5", | ||
"@swc-node/register": "^1.4.2", | ||
"@swc/core": "^1.2.173", | ||
"@types/jest": "27.4.1", | ||
"@types/node": "14.14.33", | ||
"@typescript-eslint/eslint-plugin": "5.24.0", | ||
"@typescript-eslint/parser": "5.24.0", | ||
"chalk": "^4.1.2", | ||
"dotenv": "10.0.0", | ||
"eslint": "8.15.0", | ||
"eslint-config-prettier": "8.1.0", | ||
"eslint-plugin-prefer-let": "^1.1.0", | ||
"jest": "27.5.1", | ||
"nx": "14.3.5", | ||
"prettier": "2.7.1", | ||
"ts-jest": "27.1.4", | ||
"ts-node": "10.8.1", | ||
"tslib": "^2.0.0", | ||
"typescript": "4.7.3" | ||
"peerDependencies": { | ||
"@nrwl/devkit": ">= 12.7.0" | ||
} | ||
} |
# @digitalnative/cosmwasm | ||
[![npm version](https://badge.fury.io/js/%40nxrs%2Fcargo.svg)](https://badge.fury.io/js/%40digitalnative%2Fcosmwasm) | ||
[![npm version](https://badge.fury.io/js/%40nxrs%2Fcargo.svg)](https://badge.fury.io/js/%40nxrs%2Fcargo) | ||
This is a WIP plugin for `@nrwl/nx` adding support for Cosmwasm smart contracts | ||
This is a WIP plugin for `@nrwl/nx` adding support for Rust applications and libraries. | ||
Nx helps building contracts faster with cloud computing with github integration. | ||
## Prerequisuite | ||
Install [Nx](https://nx.app/) first. | ||
## Installation | ||
```sh | ||
> nx init | ||
> yarn add @digitalnative/cosmwasm | ||
``` | ||
## Generators | ||
```sh | ||
> nx generate @digitalnative/cosmwasm:contract my_cosmwasm_contract | ||
# @digitalnative/cosmwasm:bin also works | ||
> nx generate @digitalnative/cosmwasm:app my-rust-app | ||
``` | ||
** WIP: cosmjs lib ** | ||
```sh | ||
> nx generate @digitalnative/cosmwasm:js my_cosmjs_lib | ||
> nx generate @digitalnative/cosmwasm:lib my-rust-lib | ||
``` | ||
@@ -34,12 +21,12 @@ | ||
```sh | ||
# Build a contract or Typescript library | ||
> nx build my_cosmwasm_contract | ||
# Build a library or binary | ||
> nx build my-rust-app | ||
# Run unit tests in a library | ||
> nx test my_cosmjs_lib | ||
> nx test my-rust-lib | ||
# Check a Rust project with `clippy` | ||
> nx lint my_cosmwasm_contract | ||
> nx lint my-rust-app | ||
# Don't fail on warnings: | ||
> nx lint my_cosmwasm_contract __fail_on_warnings false | ||
> nx lint my-rust-app --fail-on-warnings false | ||
``` | ||
@@ -49,6 +36,6 @@ | ||
The executors accept most of the same CLI args as the corresponding `cargo` commands. When in doubt, run with the `__help` flag to see all options with descriptions: | ||
The executors accept most of the same CLI args as the corresponding `cargo` commands. When in doubt, run with the `--help` flag to see all options with descriptions: | ||
```sh | ||
> nx build my_cosmwasm_contract __help | ||
> nx build my-rust-app --help | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
0
1
0
101253
2
46
1049
40
+ Addedchalk@^4.1.2
+ Added@nrwl/devkit@999.9.9(transitive)
+ Added@nrwl/tao@999.9.9(transitive)
+ Addedansi-colors@4.1.3(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedasync@3.2.6(transitive)
+ Addedat-least-node@1.0.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.112.0.1(transitive)
+ Addedchalk@4.1.04.1.2(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedejs@3.1.10(transitive)
+ Addedenquirer@2.3.6(transitive)
+ Addedfilelist@1.0.4(transitive)
+ Addedfs-extra@9.1.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedjake@10.9.2(transitive)
+ Addedjsonc-parser@3.0.0(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addedlru-cache@6.0.0(transitive)
+ Addedminimatch@3.1.25.1.6(transitive)
+ Addedrxjs@6.6.7(transitive)
+ Addedrxjs-for-await@0.0.2(transitive)
+ Addedsemver@7.3.4(transitive)
+ Addedsupports-color@7.2.0(transitive)
+ Addedtmp@0.2.3(transitive)
+ Addedtslib@1.14.1(transitive)
+ Addeduniversalify@2.0.1(transitive)
+ Addedyallist@4.0.0(transitive)
+ Addedyargs-parser@20.0.0(transitive)
- Removedtslib@^2.0.0