Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Contract Interaction Plugin #5474

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
5 changes: 5 additions & 0 deletions apps/contract-interaction/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": ["@babel/preset-env", ["@babel/preset-react", { "runtime": "automatic" }]],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-transform-runtime", "@babel/plugin-proposal-nullish-coalescing-operator"],
"ignore": ["**/node_modules/**"]
}
3 changes: 3 additions & 0 deletions apps/contract-interaction/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../.eslintrc.json"
}
1 change: 1 addition & 0 deletions apps/contract-interaction/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Contract Interaction Plugin
6 changes: 6 additions & 0 deletions apps/contract-interaction/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "contract-interaction",
"version": "1.0.0",
"main": "index.js",
"license": "MIT"
}
88 changes: 88 additions & 0 deletions apps/contract-interaction/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"name": "contract-interaction",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/contract-interaction/src",
"projectType": "application",
"targets": {
"build": {
"executor": "@nrwl/webpack:webpack",
"outputs": [
"{options.outputPath}"
],
"defaultConfiguration": "development",
"dependsOn": [
"install"
],
"options": {
"compiler": "babel",
"outputPath": "dist/apps/contract-interaction",
"index": "apps/contract-interaction/src/index.html",
"baseHref": "./",
"main": "apps/contract-interaction/src/main.tsx",
"polyfills": "apps/contract-interaction/src/polyfills.ts",
"tsConfig": "apps/contract-interaction/tsconfig.app.json",
"assets": [
"apps/contract-interaction/src/favicon.ico",
"apps/contract-interaction/src/assets",
"apps/contract-interaction/src/profile.json"
],
"styles": [
"apps/contract-interaction/src/styles.css"
],
"scripts": [],
"webpackConfig": "apps/contract-interaction/webpack.config.js"
},
"configurations": {
"development": {},
"production": {
"fileReplacements": [
{
"replace": "apps/contract-interaction/src/environments/environment.ts",
"with": "apps/contract-interaction/src/environments/environment.prod.ts"
}
]
}
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": [
"{options.outputFile}"
],
"options": {
"lintFilePatterns": [
"apps/contract-interaction/**/*.ts"
],
"eslintConfig": "apps/contract-interaction/.eslintrc"
}
},
"install": {
"executor": "nx:run-commands",
"options": {
"commands": [
"cd apps/contract-interaction && yarn"
],
"parallel": false
}
},
"serve": {
"executor": "@nrwl/webpack:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "contract-interaction:build",
"hmr": true,
"baseHref": "/"
},
"configurations": {
"development": {
"buildTarget": "contract-interaction:build:development",
"port": 5003
},
"production": {
"buildTarget": "contract-interaction:build:production"
}
}
}
},
"tags": []
}
Loading