Skip to content

Commit

Permalink
Merge pull request #392 from sphereio/fix-webjars-task-389
Browse files Browse the repository at this point in the history
Specify maven tasks for webjars, closes #389
  • Loading branch information
lauraluiz committed Mar 3, 2016
2 parents b2d5ebd + c7306da commit e4ce929
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ module.exports = function(grunt) {
grunt.registerTask('build-templates', ['clean:templates', 'internal-build-templates', 'assetFingerprint']);

grunt.registerTask('release-composer', ['build', 'copy:composer']);
grunt.registerTask('webjars', ['build', 'maven:webjars']);
grunt.registerTask('install', ['build', 'maven:install', 'clean:dist']);
grunt.registerTask('release', ['build', 'maven:release', 'clean:dist']);

grunt.registerTask('build-webjar', ['build', 'maven:webjars']);
grunt.registerTask('install-webjar', ['build', 'maven:install', 'clean:dist']);
grunt.registerTask('release-webjar', ['build', 'maven:release', 'clean:dist']);

grunt.registerTask('publish', ['gh-pages-clean', 'build', 'gh-pages']);

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ Building the generated site also performs these tasks:

Create a WebJars file from this theme and apply it to any Sunrise project. There are three possible ways to achieve this:

- `grunt webjars` to create the WebJars file in the root directory of the project, so that you can apply it by placing the generated JAR file in the folder for unmanaged dependencies of your Sunrise project (i.e. `lib/` is the default folder for Sunrise)
- `grunt build-webjar` to create the WebJar in the root directory of the project, so that you can apply it by placing the generated JAR file in the folder for unmanaged dependencies of your Sunrise project (i.e. `lib/` is the default folder for Sunrise)

- `grunt install` to install the current snapshot version to your local maven repository (`~/.m2/repository/io/commercetools/sunrise/commercetools-sunrise-theme`) and apply it to your project as a dependency from a local environment
- `grunt install-webjar` to install the current snapshot version to your local maven repository (`~/.m2/repository/io/commercetools/sunrise/commercetools-sunrise-theme`) and apply it to your project as a dependency from a local environment

- `grunt release` to release the current version to a remote Maven repository and move to the next development version, this way you could publicly distribute your theme and let anyone apply it to their Sunrise application as a project dependency (requires that you set up `config.maven` in `package.json` accordingly to your remote Maven repository)
- `grunt release-webjar` to release the current version to a remote Maven repository and move to the next development version, this way you could publicly distribute your theme and let anyone apply it to their Sunrise application as a project dependency (requires that you set up `config.maven` in `package.json` accordingly to your remote Maven repository)

#### Publish to GitHub Pages

Expand Down

0 comments on commit e4ce929

Please sign in to comment.