x86-surfer-component
v0.0.4
Published
To build the library, run:
Downloads
7
Readme
X86SurferComponent
Dev
Building
To build the library, run:
ng build x86-surfer-componentThis command will compile your project, and the build artifacts will be placed in the dist/ directory.
Publishing the Library
Once the project is built, you can publish your library by following these steps:
Navigate to the
distdirectory:cd dist/x86-surfer-componentRun the
npm publishcommand to publish your library to the npm registry:npm publish
Using the package
In the consuming app
Ensure that an environment has be created with the following structure:
export const environment = {
X86_AGENT_ROOT: "https://x86--agent--9pwq69n94c9h.code.run",
};then in the app module, ensure that an HTTP client is provided as well as the X86_AGENT_ROOT:
import { X86_AGENT_ROOT } from "x86-surfer-component";
export const appConfig: ApplicationConfig = {
providers: [provideHttpClient(), { provide: X86_AGENT_ROOT, useValue: environment.X86_AGENT_ROOT }],
};