All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.micronaut.starter.feature.view.mvnPluginReact Maven / Gradle / Ivy

There is a newer version: 4.7.0
Show newest version
package io.micronaut.starter.feature.view;

import java.io.IOException;
import com.fizzed.rocker.ForIterator;
import com.fizzed.rocker.RenderingException;
import com.fizzed.rocker.RockerContent;
import com.fizzed.rocker.RockerOutput;
import com.fizzed.rocker.runtime.DefaultRockerTemplate;
import com.fizzed.rocker.runtime.PlainTextUnloadedClassLoader;

/*
 * Auto generated code to render template io/micronaut/starter/feature/view/mvnPluginReact.rocker.raw
 * Do not edit this file. Changes will eventually be overwritten by Rocker parser!
 */
@SuppressWarnings("unused")
public class mvnPluginReact extends com.fizzed.rocker.runtime.DefaultRockerModel {

    static public com.fizzed.rocker.ContentType getContentType() { return com.fizzed.rocker.ContentType.RAW; }
    static public String getTemplateName() { return "mvnPluginReact.rocker.raw"; }
    static public String getTemplatePackageName() { return "io.micronaut.starter.feature.view"; }
    static public String getHeaderHash() { return "-852711402"; }
    static public String[] getArgumentNames() { return new String[] { "groupID", "artifactID", "version" }; }

    // argument @ [1:2]
    private String groupID;
    // argument @ [1:2]
    private String artifactID;
    // argument @ [1:2]
    private String version;

    public mvnPluginReact groupID(String groupID) {
        this.groupID = groupID;
        return this;
    }

    public String groupID() {
        return this.groupID;
    }

    public mvnPluginReact artifactID(String artifactID) {
        this.artifactID = artifactID;
        return this;
    }

    public String artifactID() {
        return this.artifactID;
    }

    public mvnPluginReact version(String version) {
        this.version = version;
        return this;
    }

    public String version() {
        return this.version;
    }

    static public mvnPluginReact template(String groupID, String artifactID, String version) {
        return new mvnPluginReact()
            .groupID(groupID)
            .artifactID(artifactID)
            .version(version);
    }

    @Override
    protected DefaultRockerTemplate buildTemplate() throws RenderingException {
        // optimized for performance (via rocker.optimize flag; no auto reloading)
        return new Template(this);
    }

    static public class Template extends com.fizzed.rocker.runtime.DefaultRockerTemplate {

        // \n    
        static private final String PLAIN_TEXT_0_0 = "\n    ";
        // \n    
        static private final String PLAIN_TEXT_1_0 = "\n    ";
        // \n    
        static private final String PLAIN_TEXT_2_0 = "\n    ";
        // \n\n    \n        \n            install node and npm\n            install-node-and-npm\n        \n\n        \n            npm install\n            npm\n        \n\n        \n            webpack build server\n            webpack\n            \n                --mode production --co...
        static private final String PLAIN_TEXT_3_0 = "\n\n    \n        \n            install node and npm\n            install-node-and-npm\n        \n\n        \n            npm install\n            npm\n        \n\n        \n            webpack build server\n            webpack\n            \n                --mode production --config webpack.server.js\n                \n                    ${project.build.outputDirectory}/views\n                \n            \n        \n\n        \n            webpack build client\n            webpack\n            \n                --mode production --config webpack.client.js\n                \n                    ${project.build.outputDirectory}/views/static\n                \n            \n        \n    \n\n    \n        v21.7.2\n        src/main/js\n        target\n    \n\n";

        // argument @ [1:2]
        protected final String groupID;
        // argument @ [1:2]
        protected final String artifactID;
        // argument @ [1:2]
        protected final String version;

        public Template(mvnPluginReact model) {
            super(model);
            __internal.setCharset("UTF-8");
            __internal.setContentType(getContentType());
            __internal.setTemplateName(getTemplateName());
            __internal.setTemplatePackageName(getTemplatePackageName());
            this.groupID = model.groupID();
            this.artifactID = model.artifactID();
            this.version = model.version();
        }

        @Override
        protected void __doRender() throws IOException, RenderingException {
            // PlainText @ [1:57]
            __internal.aboutToExecutePosInTemplate(1, 57);
            __internal.writeValue(PLAIN_TEXT_0_0);
            // ValueExpression @ [3:14]
            __internal.aboutToExecutePosInTemplate(3, 14);
            __internal.renderValue(groupID, false);
            // PlainText @ [3:22]
            __internal.aboutToExecutePosInTemplate(3, 22);
            __internal.writeValue(PLAIN_TEXT_1_0);
            // ValueExpression @ [4:17]
            __internal.aboutToExecutePosInTemplate(4, 17);
            __internal.renderValue(artifactID, false);
            // PlainText @ [4:28]
            __internal.aboutToExecutePosInTemplate(4, 28);
            __internal.writeValue(PLAIN_TEXT_2_0);
            // ValueExpression @ [5:14]
            __internal.aboutToExecutePosInTemplate(5, 14);
            __internal.renderValue(version, false);
            // PlainText @ [5:22]
            __internal.aboutToExecutePosInTemplate(5, 22);
            __internal.writeValue(PLAIN_TEXT_3_0);
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy