metawidget-nodejs
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.metawidget.modules.js</groupId>
<artifactId>metawidget-nodejs</artifactId>
<version>4.2</version>
</dependency><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <groupId>org.metawidget.modules.js</groupId> <artifactId>js-parent</artifactId> <version>4.2</version> <relativePath>../</relativePath> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>metawidget-nodejs</artifactId> <packaging>pom</packaging> <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <plugins> <plugin> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <phase>compile</phase> <goals> <goal>resources</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <configuration> <target> <concat destfile="target/classes/index.js"> <filelist dir="../corejs/target/metawidget-corejs/lib/metawidget/core" files="metawidget-core.min.js" /> <footer>module.exports = metawidget;</footer> </concat> <!-- Copy extra modules, to save needing multiple Node modules --> <copy todir="target/classes/extras"> <filelist dir="../angularjs/target/metawidget-angularjs/lib/metawidget/angular" files="metawidget-angular.min.js" /> <filelist dir="../bootstrap/target/metawidget-bootstrap/lib/metawidget/bootstrap" files="metawidget-bootstrap.min.js" /> <filelist dir="../jquery/mobile/target/metawidget-jquerymobile/lib/metawidget/jquery.mobile" files="metawidget-jquerymobile.min.js" /> <filelist dir="../jquery/ui/target/metawidget-jqueryui/lib/metawidget/jquery-ui" files="metawidget-jqueryui.min.js" /> </copy> <!-- Create a simulated test environment --> <copy todir="target/test-classes"> <filelist dir="src/main/js/test" files="render.js" /> </copy> <copy todir="target/test-classes/node_modules/metawidget"> <filelist dir="target/classes" files="index.js" /> <filelist dir="target/classes" files="package.json" /> </copy> </target> </configuration> <executions> <execution> <phase>compile</phase> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <executions> <execution> <phase>test</phase> <goals> <goal>exec</goal> </goals> </execution> </executions> <configuration> <executable>node</executable> <workingDirectory>target</workingDirectory> <arguments> <argument>test-classes/render.js</argument> </arguments> </configuration> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <inherited>false</inherited> <configuration> <descriptors> <descriptor>src/main/assembly/bin.xml</descriptor> </descriptors> <finalName>metawidget</finalName> <appendAssemblyId>false</appendAssemblyId> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>