- Not on NPM yet
import React, { Component } from 'react'
import MyComponent from 'craigponent-library/dist/MyComponent'
...
<MyComponent prop="yes please" />
CSS Modules
yarn start
oryarn dev
- Starts the documentation at http://localhost:3000/yarn watch
- rollup watches any changes (not really needed)yarn build
- builds the component libraryyarn build:web
- builds the docsyarn test
- runs any tests
The docs are built with ❤️ from docz
yarn plop
and follow the prompt oryarn plop MyComponent
will generateMyComponent.jsx
,myComponent.module.scss
,MyComponent.test.js
, andMyComponent.mdx
- Update
package.json
according to semver. - Give a description of what changed in
src/CHANGELOG.mdx
followed by who made the changes. - Profit 💰
prettier is an opinionated code formatter aiming to provide codebase consistency when multiple developers work on the same project. The main reason behind adopting Prettier is to stop all the on-going debates over coding styles.
Linters are tools that analyze source code to flag programming errors, bugs, stylistic errors, and suspicious constructs.
- JavaScript is linted by ESLint, enforcing the Airbnb JavaScript Style Guide through an overridable set of rules provided by eslint-config-airbnb-base.
- Styles are linted by stylelint, adhering to the rules specified in stylelint-config-recommended.