Skip to content

Frontend: automate front-end build, test, and deploy tasks #5

@gregswindle

Description

@gregswindle

1. Issue type

  • Other: Rename the repository in order to differentiate it from spring-boot-starter-thymeleaf, which mvn-spring-boot-thymeleaf-nodejs extends.

2. User story summary

As a frontend engineer,
I need NPM and SASS build, test, and deploy tasks to synchronized with Maven goals
In order to share a common vocabulary with the team and make product delivery more efficient.

3. Acceptance criteria

  • 1. mvnw install triggers npm install and gem install sass.
  • 2. Projects share the same mvnw, Node.js version, npm version, and SASS versions locally.
  • 3. mvnw package triggers npm build and sass convert.
  • 4. npm build bundles (concatenates) JavaScript files and minifies them.
  • 5. npm build minifies Thymeleaf templates and partials into valid XHTML.
  • 6. npm build minifies CSS templates.
  • 7. npm build minifies images.
  • 8. npm test ensures that all tests/specs pass that all branches, functions, lines, and statements meet the minimum 90% coverage threshold.
  • 9. If a JavaScript test fails or code coverage is below the minimum threshold, the build with halt.
  • 10. mvnw site generates detailed coverage, ESLint, and test result reports in the /target/site directory.
  • 11. GitHub Enterprise PULL_REQUEST_TEMPLATE.md files display badges that pull status from Verizon's internal OneSonar.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions