1.0.54 • Published 1 year ago

@cardstack/boxel v1.0.54

Weekly downloads
3
License
MIT
Repository
-
Last release
1 year ago

boxel

The repository provides an Ember Addon allowing usage of the Ember component library for the Boxel Design System.

It consists of several parts: 1. The Boxel Design System Components and their documentation 2. Various prototypes using the design system 3. Miscellaneous components that will eventually be moved

Design system components

All components in /addon/components will be used in whatever apps consume the design system. Each component folder consists of several parts:

  • index.hbs & index.js: The template and javascript for the component
    • Note: Unlike a usual Ember addon, these files are automatically reexported in whatever app consumes the addon. So there is no need to handle that on your own.
  • index.css: The pure CSS styles associated with the component. This file will automatically be added to the consuming app as well
  • usage.hbs & usage.js: A standardized way to document and experiment with the designs of each component. All usage files will automatically show up in the components list in /docs in the dummy app. Utilizes chrislopresto/ember-freestyle
    • Note: These files are automatically stripped out of any production build

Prototypes

The prototypes are there to exercise in context various aspects of the design system.

Miscellaneous Components

There are many components that are specific to a certain prototype or will eventually be moved to other repos, like the main Cardhost app.

Running the dummy app

ember serve

Then browse to http://localhost:4200/

Running tests

To run tests interactively:

ember test --s

(To prevent the interactive tests from launching new windows, use command ember test --s --launch=false , and then visit http://localhost:7357/ on your browser.)

To run tests in the console:

ember test

To run the linter:

yarn lint:hbs

yarn lint:js

To run the linter, along with ember tests in the console:

yarn test

Check package.json file for other testing and linting scripts.

Generator

In addition to the normal suite of ember generators, Boxel has a 'boxel-componentblueprint allowing you to generate a new boxel component (index.gts), a CSS file, a usage.gts, and an intergration test. Run it usingember generate boxel-component your-component-name`.

Thumbnails

Generating multiple image sizes / thumbs from /public/media-registry/covers/:

Kill your ember server if it's running otherwise it'll try to rebuild for every size generated.

brew install imagemagick # if not installed already
cd boxel
node generate-thumbs.js

The thumbs / sizes are intended to be committed to the repo for simplicity of static deployment

Using imgix for dynamic production data makes sense when there is a backend server to sign image urls, but for static deployment pregenerating the images is way more convenient than pre-signing the images as the necessary hooks do not exist in broccoli-asset-rev

1.0.54

1 year ago

1.0.53

2 years ago

1.0.51

2 years ago

1.0.52

2 years ago

1.0.48

2 years ago

1.0.47

2 years ago

1.0.49

2 years ago

1.0.50

2 years ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.40

2 years ago

1.0.44

2 years ago

1.0.43

2 years ago

1.0.42

2 years ago

1.0.41

2 years ago

1.0.46

2 years ago

1.0.45

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.23

2 years ago

1.0.15

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.7

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago

0.28.34

3 years ago

0.28.33

3 years ago

0.28.32

3 years ago

0.28.31

3 years ago

0.28.37

3 years ago

0.28.36

3 years ago

0.28.35

3 years ago

0.28.29

3 years ago

0.28.28

3 years ago

0.28.27

3 years ago

0.28.26

3 years ago

0.28.21

3 years ago

0.28.20

3 years ago

0.28.19

3 years ago

0.28.18

3 years ago

0.28.17

3 years ago

0.28.12

3 years ago

0.28.1

3 years ago

0.27.44

3 years ago

0.28.11

3 years ago

0.28.0

3 years ago

0.27.43

3 years ago

0.28.10

3 years ago

0.27.42

3 years ago

0.27.41

3 years ago

0.28.16

3 years ago

0.28.15

3 years ago

0.28.14

3 years ago

0.28.13

3 years ago

0.28.9

3 years ago

0.28.7

3 years ago

0.27.40

3 years ago

0.28.2

3 years ago

0.27.38

3 years ago

0.27.33

3 years ago

0.27.32

3 years ago

0.27.31

3 years ago

0.27.30

3 years ago

0.27.37

3 years ago

0.27.36

3 years ago

0.27.35

3 years ago

0.27.34

3 years ago

0.27.29

3 years ago

0.27.28

3 years ago

0.27.26

3 years ago

0.27.25

3 years ago

0.27.24

3 years ago

0.27.22

3 years ago

0.27.20

3 years ago

0.27.23

3 years ago

0.27.19

3 years ago

0.27.18

3 years ago

0.27.17

3 years ago

0.27.16

3 years ago

0.27.15

3 years ago

0.27.14

3 years ago

0.27.13

3 years ago

0.27.2

3 years ago

0.27.1

3 years ago

0.27.0

3 years ago

0.26.10

3 years ago

0.27.6

3 years ago

0.27.5

3 years ago

0.27.4

3 years ago

0.27.3

3 years ago

0.27.11

3 years ago

0.27.10

3 years ago

0.26.9

3 years ago

0.26.3

3 years ago

0.26.4

3 years ago

0.26.2

3 years ago

0.26.1

3 years ago

0.26.0

3 years ago

0.25.2

3 years ago

0.25.1

3 years ago

0.25.0

3 years ago

0.24.5

3 years ago

0.24.4

3 years ago

0.24.3

3 years ago

0.24.2

3 years ago

0.24.1

3 years ago

0.23.0

3 years ago

0.21.5

3 years ago

0.21.3

3 years ago

0.21.2

3 years ago

0.21.1

3 years ago

0.21.0

3 years ago

0.19.50

3 years ago

0.19.48

3 years ago

0.19.49

3 years ago

0.19.47

3 years ago

0.19.45

3 years ago

0.19.46

3 years ago

0.19.44

3 years ago

0.19.43

3 years ago

0.19.42

3 years ago

0.19.40

3 years ago

0.19.41

3 years ago

0.19.39

3 years ago

0.19.38

3 years ago

0.19.37

3 years ago

0.19.35

3 years ago

0.19.36

3 years ago

0.19.34

3 years ago

0.19.29

3 years ago

0.19.33

3 years ago

0.19.30

3 years ago

0.19.32

3 years ago

0.7.12

4 years ago

0.7.11

4 years ago

0.7.10

4 years ago

0.7.9

4 years ago

0.7.6

4 years ago

0.7.5

4 years ago

0.7.8

4 years ago

0.7.7

4 years ago

0.7.4

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.3

4 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.7.0

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.4.2

4 years ago

0.4.0

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.2

4 years ago

0.3.3

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago