@yext/cobalt-core

0.1.10 • Public • Published

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();

Readme

Keywords

none

Package Sidebar

Install

npm i @yext/cobalt-core

Weekly Downloads

32

Version

0.1.10

License

UNLICENSED

Unpacked Size

183 kB

Total Files

123

Last publish

Collaborators

  • mdjannesar
  • tsayyapureddi
  • yext-bot
  • souravkumar
  • anguyenyext
  • gargsi
  • manash-rauta
  • rsalunke
  • saivythik
  • scheerla
  • a_ashwik
  • slapshot-bot
  • ataing
  • ttanushree
  • abhishekbajpai
  • tpotla
  • nbramblett
  • emilyzhang777
  • sscott24
  • dsurducan
  • afriedman00
  • lilwang
  • dgurland
  • htamirepi
  • ajgist
  • emilyfranklin
  • bryanreed
  • dlsgusrn7577
  • paigep
  • petya182
  • zhengzhi
  • jballschneider
  • jknutsonn
  • jamesyang14
  • jfromm
  • tobyko
  • lymarrie
  • mkilpatrick
  • baigel1
  • dkang3021
  • mleifer
  • pmomesso
  • eefi
  • jaredhood
  • jrhoads
  • apavlick
  • yext_eng_npm
  • benmcginnis
  • kunal-p
  • tmeyer2115
  • mbowman
  • jronkin_yext
  • svc_jenkins_consulting_yext
  • cblair_yext
  • willgorick
  • bhaines-yext
  • rconsalo
  • tritpham
  • sharvey
  • npatel94
  • telliottyext
  • johncho92
  • canderson_yext
  • ssaunders
  • rpope
  • eal172
  • peteros
  • ytruong