0.1.75 • Published 3 years ago

@storykube-pkgs/design-system v0.1.75

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Storykube · Design System

Live: https://main--61cb95497929a8004aee05a2.chromatic.com

The Storykube Design System uses Storybook. \ Learn more in Storybook tutorials.

Run

Install all dependencies

npm i

Run in localhost

# Starts Storybook in development mode
npm run storybook

Workflow

  • Create new branch that names your task or component
  • Write your awesome code
  • Commit and push
  • Create a pull request to main branch
  • Ask for a code review
  • Someone else will merge your code or ask for a new submit
  • When the pull request is merged into main branch, a new changelog and a new version is just created: please note that the changelog will collect all your commits messages. \ So, always write the commit message as in the most descriptive way possible, please.
  • In case your code is merged into the main branch, GitHub actions (here) will be executed in seconds
  • Finally, your last change in the Design System is just deployed, built and released on https://www.npmjs.com/package/@storykube-pkgs/design-system

Usage

Install in Vue3

# with npm
npm i @storykube-pkgs/design-system
# with yarn
yarn add @storykube-pkgs/design-system

Here the URL to manage the package. \ Please, ask the admin to enable your account. \ https://www.npmjs.com/settings/storykube-pkgs/packages


Notes

STORIES

Le stories sono come delle permutazioni del component principale, ci possono essere diverse stories per ogni componente

Come creare una stories

  • accedere alla cartella stories e creare al suo interno i seguenti files: Nome.vue --> questo file definirà il nostro component; Nome.stories.js --> in questo file importeremo il component e andremo a definire le varie stories del component; nome.scss (oppure nome.css) --> questo file darà uno stile al component in generale e alle stories, questo file sarà importato nel component Nome.vue.

( N.B. una best practice emersa nella documentazione è quella di nominare i file nello stesso modo, il component e il file stories in PascalCase il file css in camelCase ).

  • nel component Nome.vue, aprire il tag <template></template> e definire al suo interno la struttura html del component; subito dopo aprire il tag <script></script>.
  • cosa fare nel tag <script/> del component: 1) importare le proprietà reactive e computed da vue: import { reactive, computed } from 'vue'; 2) importare il foglio di stile: import './name.scss' oppure import './name.css' ( il path cambia in base a dove si trova il file di stile ) 3) creare un " export default {} " statement che ci permetterà di richiamare props, funzioni e altri valori dichiarati al suo interno fuori dal componennt, in questo caso importeremo tutto nel file Name.stories.js.
0.1.75

3 years ago

0.1.74

3 years ago

0.1.73

3 years ago

0.1.70

3 years ago

0.1.71

3 years ago

0.1.72

3 years ago

0.1.67

3 years ago

0.1.68

3 years ago

0.1.69

3 years ago

0.1.63

3 years ago

0.1.64

3 years ago

0.1.65

3 years ago

0.1.66

3 years ago

0.1.61

3 years ago

0.1.62

3 years ago

0.1.52

3 years ago

0.1.53

3 years ago

0.1.54

3 years ago

0.1.10

4 years ago

0.1.55

3 years ago

0.1.11

3 years ago

0.1.56

3 years ago

0.1.12

3 years ago

0.1.57

3 years ago

0.1.13

3 years ago

0.1.58

3 years ago

0.1.14

3 years ago

0.1.59

3 years ago

0.1.15

3 years ago

0.1.50

3 years ago

0.1.51

3 years ago

0.1.49

3 years ago

0.1.41

3 years ago

0.1.42

3 years ago

0.1.43

3 years ago

0.1.44

3 years ago

0.1.45

3 years ago

0.1.46

3 years ago

0.1.47

3 years ago

0.1.48

3 years ago

0.1.40

3 years ago

0.1.38

3 years ago

0.1.8

4 years ago

0.1.39

3 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.4

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.30

3 years ago

0.1.31

3 years ago

0.1.32

3 years ago

0.1.33

3 years ago

0.1.34

3 years ago

0.1.35

3 years ago

0.1.36

3 years ago

0.1.37

3 years ago

0.1.27

3 years ago

0.1.28

3 years ago

0.1.29

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.24

3 years ago

0.1.25

3 years ago

0.1.26

3 years ago

0.1.60

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.19

3 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago