How to use guess-parser - 4 common examples

To help you get started, we’ve selected a few guess-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github guess-js / guess / packages / guess-webpack / src / default-route-provider.ts View on Github external
[Mode.Angular](config?: ProjectLayout) {
    if (!config || !config.tsconfigPath) {
      throw new Error('Path to tsconfig.json not provided');
    }
    return parseAngularRoutes(config.tsconfigPath);
  },
  [Mode.ReactTSX](config?: ProjectLayout) {
github guess-js / guess / packages / guess-webpack / src / default-route-provider.ts View on Github external
[Mode.PreactJSX](config?: ProjectLayout) {
    if (!config || !config.sourceDir) {
      throw new Error('Source directory not provided');
    }
    return parsePreactJSXRoutes(config.sourceDir);
  },
  [Mode.Gatsby](): RoutingModule[] {
github guess-js / guess / packages / guess-webpack / src / default-route-provider.ts View on Github external
[Mode.ReactJSX](config?: ProjectLayout) {
    if (!config || !config.sourceDir) {
      throw new Error('Source directory not provided');
    }
    return parseReactJSXRoutes(config.sourceDir);
  },
  [Mode.PreactJSX](config?: ProjectLayout) {
github guess-js / guess / packages / guess-webpack / src / default-route-provider.ts View on Github external
[Mode.ReactTSX](config?: ProjectLayout) {
    if (!config || !config.tsconfigPath) {
      throw new Error('Path to tsconfig.json not provided');
    }
    return parseReactTSXRoutes(config.tsconfigPath);
  },
  [Mode.ReactJSX](config?: ProjectLayout) {

guess-parser

Finds the route declarations in your application.

MIT
Latest version published 4 years ago

Package Health Score

61 / 100
Full package analysis