0.1.10 • Published 2 years ago

@yext/cobalt-core v0.1.10

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
2 years ago

Cobalt Core

This repo contains the immutable Cobalt components, namely the Atoms & Molecules.

Versioning

Versioning the commits correctly is extremely important. DO NOT modify the package.json or tags manually. Use yarn version -m [COMMIT MESSAGE] and specify the next logical version number. This will commit all changes & update both package.json AND the git tag.

SEMVAR

Use SEMVAR (semantic versioning)! There will be actual things using this repo as a dependency so SEMVAR matters!

For non-breaking changes (this means any repo can be upgraded without issues), increment the 3rd position. Ex. 0.0.1 -> 0.0.2 For breaking changes, increment the 2nd position. Ex. 0.1.0 -> 0.2.0 You should never need to increment the first position unless you are completely overhauling the cobalt system.

Usage

Soy

In your soy, simply call the components by their namespace and template name.

{call cobalt.molecules.Truncate data="all"}
  // Params here
{/call}

Sass

In your scss, you can import the sass modules at the directory level or by the indivdiual components.

Some examples:

  • Import all @import '~@yext/cobalt-core'

  • Import all molecules @import '~@yext/cobalt-core/molecules'

  • Import a single molecule @import '~@yext/cobalt-core/molecules/Truncate'

JS

import { Truncate } from "@yext/cobalt-core/molecules";
Truncate.init();
0.1.10

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago