Skip to content

Commit

Permalink
chore(build): Allow to keep node_modules
Browse files Browse the repository at this point in the history
node_modules is usefull if you want to go offline.
Make it optional in the maven clean so Code Deposit can keep it.
  • Loading branch information
vhemery authored Jun 18, 2024
1 parent 35c9dec commit b11864a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,31 @@
<name>${displayName}</name>
<description>${description}</description>

<profiles>
<profile>
<id>keepNodeModules</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>node</directory>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<properties>
<node.version>v16.14.0</node.version>
<npm.version>8.3.1</npm.version>
Expand Down

0 comments on commit b11864a

Please sign in to comment.