run function

List<NyTemplate> run()

Implementation

List<NyTemplate> run() => [
      /// MODELS
      NyTemplate(
        name: "auth_user",
        saveTo: modelsFolder,
        pluginsRequired: ["nylo_framework"],
        stub: stubAuthUser(),
      ),

      NyTemplate(
        name: "laravel_auth_response",
        saveTo: modelsFolder,
        pluginsRequired: ["nylo_framework"],
        stub: stubLaravelAuthResponseModel(),
      ),

      /// PAGES
      NyTemplate(
        name: "landing_page",
        saveTo: pagesFolder,
        pluginsRequired: ["nylo_framework"],
        stub: stubLandingPage(),
      ),

      NyTemplate(
        name: "login_page",
        saveTo: pagesFolder,
        pluginsRequired: ["nylo_framework"],
        stub: stubLogin(),
      ),

      NyTemplate(
        name: "register_page",
        saveTo: pagesFolder,
        pluginsRequired: ["nylo_framework"],
        stub: stubRegister(),
      ),

      NyTemplate(
        name: "forgot_password_page",
        saveTo: pagesFolder,
        pluginsRequired: ["nylo_framework"],
        stub: stubForgotPassword(),
      ),

      NyTemplate(
          name: "dashboard_page",
          saveTo: pagesFolder,
          pluginsRequired: ["nylo_framework"],
          stub: stubDashboard(),
          options: {"is_auth_page": true}),

      /// CONTROLLERS
      NyTemplate(
        name: "login_controller",
        saveTo: controllersFolder,
        pluginsRequired: ["nylo_framework"],
        stub: stubLoginController(),
      ),

      NyTemplate(
        name: "register_controller",
        saveTo: controllersFolder,
        pluginsRequired: ["nylo_framework"],
        stub: stubRegisterController(),
      ),

      NyTemplate(
        name: "forgot_password_controller",
        saveTo: controllersFolder,
        pluginsRequired: ["nylo_framework"],
        stub: stubForgotPasswordController(),
      ),

      /// API SERVICES
      NyTemplate(
        name: "laravel_auth_api_service",
        saveTo: networkingFolder,
        pluginsRequired: ["nylo_framework"],
        stub: stubLaravelAuthApiService(),
      ),

      NyTemplate(
        name: "laravel_api_service",
        saveTo: networkingFolder,
        pluginsRequired: ["nylo_framework"],
        stub: stubLaravelApiService(),
      ),

      /// EVENTS
      NyTemplate(
        name: "laravel_auth_event",
        saveTo: eventsFolder,
        pluginsRequired: ["nylo_framework"],
        stub: stubLaravelAuthEvent(),
      ),

      /// FORMS
      NyTemplate(
        name: "register_form",
        saveTo: formsFolder,
        pluginsRequired: [],
        stub: stubRegisterForm(),
      ),

      NyTemplate(
        name: "login_form",
        saveTo: formsFolder,
        pluginsRequired: [],
        stub: stubLoginForm(),
      ),
    ];