Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/aztec-compiler/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../.eslintrc.json",
}
67 changes: 67 additions & 0 deletions apps/aztec-compiler/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"name": "aztec-compiler",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/aztec-compiler/src",
"projectType": "application",
"implicitDependencies": [],
"targets": {
"build": {
"executor": "@nrwl/webpack:webpack",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "development",
"options": {
"compiler": "babel",
"outputPath": "dist/apps/aztec-compiler",
"index": "apps/aztec-compiler/src/index.html",
"baseHref": "./",
"main": "apps/aztec-compiler/src/main.tsx",
"polyfills": "apps/aztec-compiler/src/polyfills.ts",
"tsConfig": "apps/aztec-compiler/tsconfig.app.json",
"assets": ["apps/aztec-compiler/src/profile.json"],
"styles": ["apps/aztec-compiler/src/css/app.css"],
"scripts": [],
"webpackConfig": "apps/aztec-compiler/webpack.config.js"
},
"configurations": {
"development": {
},
"production": {
"fileReplacements": [
{
"replace": "apps/aztec-compiler/src/environments/environment.ts",
"with": "apps/aztec-compiler/src/environments/environment.prod.ts"
}
]
}
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["apps/aztec-compiler/**/*.ts"],
"eslintConfig": "apps/aztec-compiler/.eslintrc"
}
},
"serve": {
"executor": "@nrwl/webpack:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "aztec-compiler:build",
"hmr": true,
"baseHref": "/"
},
"configurations": {
"development": {
"buildTarget": "aztec-compiler:build:development",
"port": 2023
},
"production": {
"buildTarget": "aztec-compiler:build:production"
}
}
}
},
"tags": []
}

27 changes: 27 additions & 0 deletions apps/aztec-compiler/src/app/app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { useReducer } from 'react'
import { IntlProvider } from 'react-intl'
import { RenderIf } from '@remix-ui/helper'
import { Compile } from './components/Compile'
import { pluginReducer, initialState } from './reducers/state'
import { AztecPluginClient } from './services/aztecPluginClient'
import { PluginContext } from './contexts/pluginContext'

const plugin = new AztecPluginClient()

function App() {
const [state, dispatch] = useReducer(pluginReducer, initialState)

return (
<div className="aztec_plugin_app">
<RenderIf condition={true}>
<IntlProvider locale="en" messages={{}}>
<PluginContext.Provider value={{ plugin, dispatch, state }}>
<Compile />
</PluginContext.Provider>
</IntlProvider>
</RenderIf>
</div>
)
}

export default App
Loading