vaadin-development-mode-detector

WebJar for vaadin-development-mode-detector

License

License

Categories

Categories

Vaadin User Interface Web Frameworks Github Development Tools Version Controls
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

github-com-vaadin-vaadin-development-mode-detector
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

vaadin-development-mode-detector
WebJar for vaadin-development-mode-detector
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/vaadin/vaadin-development-mode-detector

Download github-com-vaadin-vaadin-development-mode-detector

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-vaadin-vaadin-development-mode-detector/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-vaadin-vaadin-development-mode-detector</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-vaadin-vaadin-development-mode-detector/
implementation 'org.webjars.bower:github-com-vaadin-vaadin-development-mode-detector:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-vaadin-vaadin-development-mode-detector/
implementation ("org.webjars.bower:github-com-vaadin-vaadin-development-mode-detector:2.0.0")
'org.webjars.bower:github-com-vaadin-vaadin-development-mode-detector:jar:2.0.0'
<dependency org="org.webjars.bower" name="github-com-vaadin-vaadin-development-mode-detector" rev="2.0.0">
  <artifact name="github-com-vaadin-vaadin-development-mode-detector" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-vaadin-vaadin-development-mode-detector', version='2.0.0')
)
libraryDependencies += "org.webjars.bower" % "github-com-vaadin-vaadin-development-mode-detector" % "2.0.0"
[org.webjars.bower/github-com-vaadin-vaadin-development-mode-detector "2.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Utility method for detecting that an application using Vaadin Elements is running in development mode

Running Tests

There are no automatic tests as the functionality depends on the host the code is run on (localhost vs others) and the bundling status.

To verify functionality:

  1. Run npm install
  2. Run bower install
  3. Run npm start
  4. Open http://localhost:8081/test/index.html
  5. Verify that mode is development (green)
  6. Verify that importIfDevelopmentMode is run (green)
  7. Open http://<yourip>:8081/test/index.html
  8. Verify that mode is production (orange)
  9. Verify that importIfDevelopmentMode is ignored (orange)
  10. Run npm run start:prod
  11. Open http://localhost:8081/test/index.html
  12. Verify that mode is production (orange)
  13. Verify that importIfDevelopmentMode is ignored (orange)
  14. Open http://<yourip>:8081/test/index.html
    1. Verify that mode is production (orange)
    2. Verify that importIfDevelopmentMode is ignored (orange)
org.webjars.bower

Vaadin

An open platform for building modern web apps for Java back ends

Versions

Version
2.0.0
1.0.3
v1.0.2