5.9.32 • Published 3 years ago

thenativeweb-ux v5.9.32

Weekly downloads
1,272
License
LGPL-3.0
Repository
github
Last release
3 years ago

thenativeweb-ux

thenativeweb-ux provides UI components for the native web applications.

Status

CategoryStatus
Versionnpm
DependenciesDavid
Dev dependenciesDavid
BuildGitHub Actions
LicenseGitHub

Installation

$ npm install thenativeweb-ux react react-dom next

Viewing the documentation

For application developers there is a styleguide that serves as the documentation of this module. It contains a quick start, and showcases all the available components.

You can also run the styleguide on your local machine. For that, clone this repository, install its dependencies, and run the following command:

$ npm run start-styleguide

Then point your browser to http://localhost:6060/.

Viewing the Next.js sample application

The integration tests include a Next.js sample application that shows how components can be used from within a Next.js project. To run the sample application use the following command:

$ npm run start-sample-application

Optimizing images

To optimize .jpg, .png, and .svg images of a website, use the following command:

$ npx ux optimize-images --source <path> --destination <path>

This command recursively copies all images from the source directory to the destination directory and optimizes them using a reasonable preset.

Verifying links

To verify whether a website contains broken links, use the following command:

$ npx ux verify-links <url>

If you want to ignore some urls, provide the --ignore flag and set a regular expression that describes the urls to ignore:

$ npx ux verify-links --ignore <regex> <url>

Sometimes, you may want to specify a sitemap file. For this, add the --sitemap flag and provide the path to the sitemap file you want to use:

$ npx ux verify-links --sitemap <path> <url>

Debugging integration tests

This project uses puppeteer to verify that components render correctly inside a browser. By default these tests are run in headless mode. As debugging integration tests in headless mode can be painful there are two options to debug integration tests visually.

Viewing failing test pages in a browser

First, to debug a failing integration test, you can have a look at the failing test page in a browser without running the tests. For that run the sample application using the following command:

$ npm run start-sample-application

Then point your browser to the failing test page and verify if it renders correctly.

Running tests with a UI and in slow motion

Second, verifying that all the puppeteer commands are executed succesfully, it is much easier to do when puppeteer is not running in headless mode. To disable headless mode, set the environment variable DEBUG to true. This will start puppeteer in non-headless mode and slow down each operation:

$ DEBUG=true npx roboter test --type integration

This makes most sense if you also limit tests that should be run using mocha's only option.

Running quality assurance

To run quality assurance for this module use roboter:

$ npx roboter

Analysing the bundle size

When you add new dependencies, make sure to analyse the effects on the bundle size. To generate a bundle analysis for both the client and the server run:

$ npx roboter analyse-bundle

This task will build the styleguide with all of its pages, run an analysis of the generated bundles, and open the results in the browser.

5.9.31

3 years ago

5.9.32

3 years ago

5.9.30

3 years ago

5.9.28

3 years ago

5.9.29

3 years ago

5.9.25

3 years ago

5.9.26

3 years ago

5.9.27

3 years ago

5.9.24

3 years ago

5.9.23

3 years ago

5.9.22

3 years ago

5.9.20

3 years ago

5.9.21

3 years ago

5.9.19

3 years ago

5.9.17

3 years ago

5.9.18

3 years ago

5.9.16

3 years ago

5.9.15

3 years ago

5.9.11

3 years ago

5.9.12

3 years ago

5.9.13

3 years ago

5.9.14

3 years ago

5.9.10

3 years ago

5.9.9

3 years ago

5.9.8

3 years ago

5.9.7

3 years ago

5.9.6

3 years ago

5.9.5

3 years ago

5.9.4

3 years ago

5.9.3

4 years ago

5.8.96

4 years ago

5.8.97

4 years ago

5.8.98

4 years ago

5.8.99

4 years ago

5.9.2

4 years ago

5.9.1

4 years ago

5.9.0

4 years ago

5.8.92

4 years ago

5.8.93

4 years ago

5.8.94

4 years ago

5.8.95

4 years ago

5.8.90

4 years ago

5.8.91

4 years ago

5.8.85

4 years ago

5.8.86

4 years ago

5.8.87

4 years ago

5.8.88

4 years ago

5.8.83

4 years ago

5.8.84

4 years ago

5.8.89

4 years ago

5.8.82

4 years ago

5.8.81

4 years ago

5.8.80

4 years ago

5.8.78

4 years ago

5.8.79

4 years ago

5.8.77

4 years ago

5.8.76

4 years ago

5.8.74

4 years ago

5.8.75

4 years ago

5.8.72

4 years ago

5.8.73

4 years ago

5.8.71

4 years ago

5.8.70

4 years ago

5.8.69

4 years ago

5.8.65

4 years ago

5.8.66

4 years ago

5.8.67

4 years ago

5.8.68

4 years ago

5.8.63

4 years ago

5.8.64

4 years ago

5.8.61

4 years ago

5.8.62

4 years ago

5.8.60

4 years ago

5.8.58

4 years ago

5.8.59

4 years ago

5.8.56

4 years ago

5.8.57

4 years ago

5.8.54

4 years ago

5.8.55

4 years ago

5.8.53

4 years ago

5.8.52

4 years ago

5.8.51

4 years ago

5.8.50

4 years ago

5.8.49

4 years ago

5.8.44

4 years ago

5.8.45

4 years ago

5.8.46

4 years ago

5.8.47

4 years ago

5.8.48

4 years ago

5.8.43

4 years ago

5.8.42

4 years ago

5.8.41

4 years ago

5.8.40

4 years ago

5.8.39

4 years ago

5.8.38

4 years ago

5.8.37

4 years ago

5.8.36

4 years ago

5.8.35

4 years ago

5.8.34

4 years ago

5.8.33

4 years ago

5.8.32

4 years ago

5.8.31

4 years ago

5.8.30

4 years ago

5.8.29

4 years ago

5.8.28

4 years ago

5.8.27

4 years ago

5.8.26

4 years ago

5.8.25

4 years ago

5.8.24

4 years ago

5.8.23

4 years ago

5.8.22

4 years ago

5.8.20

4 years ago

5.8.21

4 years ago

5.8.19

4 years ago

5.8.16

4 years ago

5.8.17

4 years ago

5.8.18

4 years ago

5.8.15

4 years ago

5.8.14

4 years ago

5.8.13

4 years ago

5.8.12

4 years ago

5.8.11

4 years ago

5.8.10

4 years ago

5.8.9

4 years ago

5.8.8

4 years ago

5.8.7

4 years ago

5.8.6

4 years ago

5.8.5

4 years ago

5.8.4

4 years ago

5.8.3

4 years ago

5.8.2

4 years ago

5.8.1

4 years ago

5.8.0

4 years ago

5.7.19

4 years ago

5.7.18

4 years ago

5.7.17

4 years ago

5.7.16

4 years ago

5.7.15

4 years ago

5.7.14

4 years ago

5.7.13

4 years ago

5.7.12

4 years ago

5.7.11

4 years ago

5.7.10

4 years ago

5.7.9

4 years ago

5.7.8

4 years ago

5.7.7

4 years ago

5.7.6

4 years ago

5.7.5

4 years ago

5.7.4

4 years ago

5.7.3

4 years ago

5.7.2

4 years ago

5.7.1

4 years ago

5.6.77

4 years ago

5.6.78

4 years ago

5.7.0

4 years ago

5.6.75

4 years ago

5.6.74

4 years ago

5.6.76

4 years ago

5.6.73

4 years ago

5.6.72

4 years ago

5.6.71

4 years ago

5.6.70

4 years ago

5.6.69

4 years ago

5.6.68

4 years ago

5.6.67

4 years ago

5.6.66

4 years ago

5.6.65

4 years ago

5.6.64

4 years ago

5.6.63

4 years ago

5.6.62

4 years ago

5.6.61

4 years ago

5.6.60

4 years ago

5.6.59

4 years ago

5.6.58

4 years ago

5.6.57

4 years ago

5.6.56

4 years ago

5.6.55

4 years ago

5.6.53

4 years ago

5.6.54

4 years ago

5.6.52

4 years ago

5.6.51

4 years ago

5.6.50

4 years ago

5.6.49

4 years ago

5.6.48

4 years ago

5.6.47

4 years ago

5.6.46

4 years ago

5.6.45

4 years ago

5.6.44

4 years ago

5.6.43

4 years ago

5.6.42

4 years ago

5.6.41

4 years ago

5.6.40

4 years ago

5.6.39

4 years ago

5.6.38

4 years ago

5.6.37

4 years ago

5.6.36

4 years ago

5.6.35

4 years ago

5.6.34

4 years ago

5.6.33

4 years ago

5.6.31

4 years ago

5.6.32

4 years ago

5.6.30

4 years ago

5.6.29

4 years ago

5.6.28

4 years ago

5.6.27

4 years ago

5.6.26

4 years ago

5.6.25

4 years ago

5.6.24

4 years ago

5.6.23

4 years ago

5.6.22

4 years ago

5.6.20

4 years ago

5.6.21

4 years ago

5.6.19

4 years ago

5.6.18

4 years ago

5.6.15

4 years ago

5.6.17

4 years ago

5.6.16

4 years ago

5.6.14

4 years ago

5.6.13

4 years ago

5.6.12

4 years ago

5.6.11

4 years ago

5.6.10

4 years ago

5.6.9

5 years ago

5.6.8

5 years ago

5.6.7

5 years ago

5.6.6

5 years ago

5.6.5

5 years ago

5.6.4

5 years ago

5.6.3

5 years ago

5.6.2

5 years ago

5.6.1

5 years ago

5.6.0

5 years ago

5.5.0

5 years ago

5.4.0

5 years ago

5.3.0

5 years ago

5.2.11

5 years ago

5.2.10

5 years ago

5.2.9

5 years ago

5.2.8

5 years ago

5.2.7

5 years ago

5.2.6

5 years ago

5.2.4

5 years ago

5.2.3

5 years ago

5.2.2

5 years ago

5.2.1

5 years ago

5.2.0

5 years ago

5.1.5

5 years ago

5.1.4

5 years ago

5.1.3

5 years ago

5.1.2

5 years ago

5.1.1

5 years ago

5.1.0

5 years ago

5.0.4

5 years ago

5.0.3

5 years ago

5.0.2

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

4.0.0

5 years ago

3.7.2

5 years ago

3.7.1

5 years ago

3.7.0

5 years ago

3.6.0

5 years ago

3.5.0

5 years ago

3.4.3

5 years ago

3.4.2

5 years ago

3.4.1

5 years ago

3.4.0

5 years ago

3.3.1

5 years ago

3.3.0

5 years ago

3.2.5

5 years ago

3.2.4

5 years ago

3.2.3

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.3

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.1.2

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.15.2

5 years ago

0.14.0

5 years ago

0.13.0

6 years ago

0.12.0

6 years ago

0.11.0

6 years ago

0.10.1

6 years ago

0.10.0

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.4

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.2

6 years ago

0.6.0

6 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago