index.d.ts 956 B

1234567891011121314151617181920
  1. import type { CompilerSystem, Logger } from '../../internal/index';
  2. /**
  3. * Creates a "logger", based off of NodeJS APIs, that will be used by the compiler and dev-server.
  4. * The NodeJS "process" object must be provided as a property in the first argument's object.
  5. * @param c an object containing a `Process` for Stencil to use
  6. */
  7. export declare function createNodeLogger(c: {
  8. process: any;
  9. }): Logger;
  10. /**
  11. * Creates the "system", based off of NodeJS APIs, used by the compiler. This includes any and
  12. * all file system reads and writes using NodeJS. The compiler itself is unaware of Node's
  13. * `fs` module. Other system APIs include any use of `crypto` to hash content. The NodeJS
  14. * "process" object must be provided as a property in the first argument's object.
  15. * @param c an object containing a `Process` for Stencil to use
  16. */
  17. export declare function createNodeSys(c: {
  18. process: any;
  19. }): CompilerSystem;
  20. export { CompilerSystem, Logger };