adobe / aem-spa-project-archetype

Maven Archetype for creating new AEM SPA projects
Apache License 2.0
61 stars 32 forks source link

Add a convenience NPM script to deploy the project into AEM locally #81

Closed ittaibaratz closed 5 years ago

ittaibaratz commented 5 years ago

Feature Request

As a Frontend developer, I want to be able to push my project into a local AEM instance without having to use Maven.

Describe the solution you'd like Create an additional script inside package.json which will call Maven to build and deploy the project onto AEM.

Are there alternatives? The alternative is for frontend developers to use Maven directly.

Documentation Users will simply run npm run deploy-local

ittaibaratz commented 5 years ago

Example implementation:

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build && clientlib --verbose",
    "deploy-local": "mvn -f ../pom.xml clean install -PautoInstallPackage",
    "test": "react-scripts test --coverage",
    "test:debug": "react-scripts --inspect-brk test --coverage --no-cache --runInBand",
    "eject": "react-scripts eject"
  },