S
S
Severus2562017-05-02 17:17:48
Angular
Severus256, 2017-05-02 17:17:48

How to properly exclude .ts files in pom.xml?

Essence of the question:
There is a front-end on Angular + Typescript.
There is a backend in java.
I want to build WAR. The WAR only needs js/map files from the dist folder of the frontend. That is, without typescript sources. How to properly throw them out of the build?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene Khrustalev, 2017-05-02
@severus256

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <packagingExcludes>
                        node_modules/,
                        bower_components/,
                        javascript/,
                        sass/,
                        package.json,
                        bower.json,
                        gulpfile.js,
                        index.src.html,
                        WEB-INF/classes/logback-test.xml,
                        typescript/
                    </packagingExcludes>
                </configuration>
            </plugin>

S
Severus256, 2017-05-02
@severus256

in the build you need to actually include only dist

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question