@vaadin/vaadin-development-mode-detector

WebJar for @vaadin/vaadin-development-mode-detector

License

License

Categories

Categories

Vaadin User Interface Web Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

vaadin__vaadin-development-mode-detector
Last Version

Last Version

2.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

@vaadin/vaadin-development-mode-detector
WebJar for @vaadin/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 vaadin__vaadin-development-mode-detector

How to add to project

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

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.npm

Vaadin

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

Versions

Version
2.0.4
2.0.0