https://github.com/making/maven-reactjs-blank
Maven Blank Project for React.js
https://github.com/making/maven-reactjs-blank
Last synced: 12 months ago
JSON representation
Maven Blank Project for React.js
- Host: GitHub
- URL: https://github.com/making/maven-reactjs-blank
- Owner: making
- Created: 2015-03-23T16:48:09.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-23T16:57:28.000Z (about 11 years ago)
- Last Synced: 2025-04-06T07:43:11.075Z (about 1 year ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React.js Blank
Maven archetype to create a react.js maven project
## How to use
with Bash
mvn archetype:generate\
-DarchetypeGroupId=am.ik.archetype\
-DarchetypeArtifactId=maven-reactjs-blank-archetype\
-DarchetypeVersion=1.0.0
with CommandPrompt (Windows)
mvn archetype:generate^
-DarchetypeGroupId=am.ik.archetype^
-DarchetypeArtifactId=maven-reactjs-blank-archetype^
-DarchetypeVersion=1.0.0
### Example
This blank project requires `npm` and `gulp`.
You need the following instruction:
$ npm install -g gulp
#### Create a project
$ mvn archetype:generate -B\
-DarchetypeGroupId=am.ik.archetype\
-DarchetypeArtifactId=maven-reactjs-blank-archetype\
-DarchetypeVersion=1.0.0\
-DgroupId=demo\
-DartifactId=hello-react\
-Dversion=1.0.0-SNAPSHOT
#### Initialize the project
$ npm install
#### Build the application
$ gulp build
or
$ gulp watch
open dest/index.html
#### Build jar
$ mvn clean package
The output of `gulp` are copied to `target/classes/META-INF/resources/`.
So this jar can be used as [WebJars](http://www.webjars.org/documentation).
## License
Licensed under the Apache License, Version 2.0.