requirejs-node
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.webjars</groupId> <artifactId>requirejs-node</artifactId> <version>2.3.7</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <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"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.webjars</groupId> <artifactId>requirejs-parent</artifactId> <version>2.3.7</version> </parent> <packaging>jar</packaging> <artifactId>requirejs-node</artifactId> <name>RequireJS Node Module</name> <description>WebJar for RequireJS Node Module</description> <properties> <sourceUrl>https://github.com/jrburke/r.js/archive</sourceUrl> <destDir>${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${project.version}</destDir> <extractDir>${project.build.directory}/r.js-${version.unsnapshot}</extractDir> <requirejs> { } </requirejs> </properties> <dependencies> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>wagon-maven-plugin</artifactId> <version>1.0-beta-4</version> <executions> <execution> <id>download-js</id> <phase>process-resources</phase> <goals><goal>download-single</goal></goals> <configuration> <url>${sourceUrl}</url> <fromFile>${version.unsnapshot}.zip</fromFile> <toFile>${project.build.directory}/requirejs.zip</toFile> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> <executions> <execution> <phase>process-resources</phase> <goals><goal>run</goal></goals> <configuration> <target> <echo message="unzip archive" /> <unzip src="${project.build.directory}/requirejs.zip" dest="${project.build.directory}" /> <echo message="moving resources" /> <move file="${extractDir}/dist/r.js" todir="${destDir}" /> <echo message="generating package.json" /> <echo file="${destDir}/package.json">{ "name": "requirejs", "description": "Node adapter for RequireJS, for loading AMD modules. Includes RequireJS optimizer", "version": "${version.unsnapshot}", "homepage": "http://github.com/jrburke/r.js", "author": "James Burke <jrburke@gmail.com> (http://github.com/jrburke)", "licenses": [ { "type": "BSD", "url": "https://github.com/jrburke/r.js/blob/master/LICENSE" }, { "type": "MIT", "url": "https://github.com/jrburke/r.js/blob/master/LICENSE" } ], "repository": { "type": "git", "url": "https://github.com/jrburke/r.js.git" }, "main": "./r.js", "engines": { "node": ">=0.4.0" } }</echo> </target> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>