diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..37dfc338 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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}} diff --git a/README.md b/README.md index 426aa1af..c689ec91 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 | diff --git a/package-lock.json b/package-lock.json index 12e711bc..834e0d86 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "generator-jhipster-micronaut", - "version": "1.0.2", + "version": "2.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "generator-jhipster-micronaut", - "version": "1.0.2", + "version": "2.0.0", "license": "Apache-2.0", "dependencies": { "chalk": "4.1.2", diff --git a/package.json b/package.json index 2aac5c1e..06593432 100644 --- a/package.json +++ b/package.json @@ -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",