0.0.31 • Published 6 years ago
@airtasker/web-components v0.0.31
Web Components used by Airtasker
Warning
This project still in pre-alpha version, api is not stable.
Development
npm i
For development
npm run story
For build online storybook
npm run build:story
Installation
npm i -S @airtasker/web-components
import { TextInput } from '@airtasker/web-components;
// support module import
import { TextInput } from '@airtasker/web-components/TextInput';
import { padding } from '@airtasker/web-components/styles';
styles
import {font, fontSize, fontWeight, margin, padding } from '@airtasker/web-components/styles
font(color, size, weight);
fontSize(size);
fontWeight(weight);
scaleSpace(magnitude);
margin(magnitude);
marginTop(magnitude);
marginBottom(magnitude);
marginLeft(magnitude);
marginRight(magnitude);
padding(magnitude);
paddingTop(magnitude);
paddingBottom(magnitude);
paddingLeft(magnitude);
paddingRight(magnitude);
more documentation: https://airtasker.github.io/web-components/
Deploy
npm version patch
npm run build:story
git commit -am "update story"
git push origin master
git push --tags
npm publish --access=public
Technical
Folder structure:
- ComponentName
- index.js
- ComponentName.js
- ComponentName.test.js
- ComponentName.story.js
- ComponentName.snap
Eslint rule: Airbnb
0.0.31
6 years ago
0.0.30
6 years ago
0.0.29
6 years ago
0.0.28
6 years ago
0.0.27
6 years ago
0.0.26
6 years ago
0.0.25
6 years ago
0.0.24
6 years ago
0.0.23
6 years ago
0.0.22
6 years ago
0.0.21
6 years ago
0.0.20
6 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.16
6 years ago
0.0.15
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.12
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago