1.0.54 • Published 6 months ago

@cardstack/boxel v1.0.54

Weekly downloads
3
License
MIT
Repository
-
Last release
6 months 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

6 months ago

1.0.53

11 months ago

1.0.51

12 months ago

1.0.52

11 months ago

1.0.48

1 year ago

1.0.47

1 year ago

1.0.49

1 year ago

1.0.50

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.40

1 year ago

1.0.44

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.46

1 year ago

1.0.45

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.23

1 year ago

1.0.15

1 year 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

2 years ago

1.0.5

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.0

2 years ago

0.28.34

2 years ago

0.28.33

2 years ago

0.28.32

2 years ago

0.28.31

2 years ago

0.28.37

2 years ago

0.28.36

2 years ago

0.28.35

2 years ago

0.28.29

2 years ago

0.28.28

2 years ago

0.28.27

2 years ago

0.28.26

2 years ago

0.28.21

2 years ago

0.28.20

2 years ago

0.28.19

2 years ago

0.28.18

2 years ago

0.28.17

2 years ago

0.28.12

2 years ago

0.28.1

2 years ago

0.27.44

2 years ago

0.28.11

2 years ago

0.28.0

2 years ago

0.27.43

2 years ago

0.28.10

2 years ago

0.27.42

2 years ago

0.27.41

2 years ago

0.28.16

2 years ago

0.28.15

2 years ago

0.28.14

2 years ago

0.28.13

2 years ago

0.28.9

2 years ago

0.28.7

2 years ago

0.27.40

2 years ago

0.28.2

2 years ago

0.27.38

2 years ago

0.27.33

2 years ago

0.27.32

2 years ago

0.27.31

2 years ago

0.27.30

2 years ago

0.27.37

2 years ago

0.27.36

2 years ago

0.27.35

2 years ago

0.27.34

2 years ago

0.27.29

2 years ago

0.27.28

2 years ago

0.27.26

2 years ago

0.27.25

2 years ago

0.27.24

2 years ago

0.27.22

2 years ago

0.27.20

2 years ago

0.27.23

2 years ago

0.27.19

2 years ago

0.27.18

2 years ago

0.27.17

2 years ago

0.27.16

2 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

3 years ago

0.7.11

3 years ago

0.7.10

3 years ago

0.7.9

3 years ago

0.7.6

3 years ago

0.7.5

3 years ago

0.7.8

3 years ago

0.7.7

3 years ago

0.7.4

3 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.7.3

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.7.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.4.2

3 years ago

0.4.0

3 years ago

0.3.7

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.2

3 years ago

0.3.3

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

4 years ago

0.1.2

5 years ago

0.1.1

5 years ago