Skip to content

Commit

Permalink
Release 2.0 and add publish workflow for releases (#284)
Browse files Browse the repository at this point in the history
* Release 2.0 and add publish workflow for releases

* Update README for release and remove unused files

* Remove active development section

* Change Protractor to Cypress

* Format with Prettier
  • Loading branch information
mraible committed Aug 21, 2023
1 parent 4e97373 commit fe4ffba
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 57 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
56 changes: 2 additions & 54 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,3 @@
> ## 🛠 Blueprint In Active Development
>
> This project is a [Micronaut](https://micronaut.io) blueprint for [JHipster](https://jhipster.tech).
> While we are working to create a complete experience, there are likely some gaps.
> Please [let us know](https://github.com/jhipster/generator-jhipster-micronaut/issues) if you encounter issues.
## Installing and Using the Active Development Version

This currently active development branch is based on the latest production release of JHipster - v7.9.3

As a pre-requisite, you must have NodeJS v16.x installed, along with the bundled version of NPM.

1. Start by installing JHipster v7.9.3 with

```
npm install -g generator-jhipster
```

2. Then install this in-development blueprint by

```
git clone https://github.com/jhipster/generator-jhipster-micronaut.git
cd generator-jhipster-micronaut
git checkout micronaut-3
npm link generator-jhipster
npm install
npm link
```

3. Next you can create a new application with the development version of this blueprint by executing:

```
mkdir my-project
cd my-project
npm link "generator-jhipster-micronaut"
mhipster --skip-jhipster-dependencies
```

This will execute the mhipster CLI tool that walks you through a series of steps to generate the code for your application.

Alternatively, you can generate an application based on one of the samples in https://github.com/jhipster/jdl-samples

For example, to generate a default gradle-based application, execute:

```
mkdir my-jdl-project
cd my-jdl-project
npm link "generator-jhipster-micronaut"
mhipster jdl default-gradle --skip-jhipster-dependencies
```

You will re-execute the commands in step 3 for any new application that you would like to generate with this in-development version.

# Greetings, Micronaut Hipster!

![Tests](https://github.com/jhipster/generator-jhipster-micronaut/workflows/Generator%20Lint%20/%20Tests/badge.svg)
Expand Down Expand Up @@ -127,13 +74,14 @@ docker run -it --rm -v $PWD:/home/jhipster/app jhipster-generator-micronaut /bin
- Redis Cache
- Maven or Gradle Build System
- Angular or React Client
- Protractor Tests
- Cypress Tests
- Heroku Deployment

## Compatibility

| Micronaut Blueprint | Micronaut | JHipster |
| ------------------- | --------- | -------- |
| 2.0.0 | 3.10.1 | 7.9.3 |
| 1.0.2 | 2.4.4 | 6.10.5 |
| 0.8.0 | 2.3.0 | 6.10.5 |

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "generator-jhipster-micronaut",
"version": "1.0.2",
"version": "2.0.0",
"description": "A Micronaut application generator for JHipster",
"keywords": [
"yeoman-generator",
Expand Down

0 comments on commit fe4ffba

Please sign in to comment.