- Not on NPM yet
import React, { Component } from 'react'
import MyComponent from 'craigponent-library/dist/MyComponent'
...
<MyComponent prop="yes please" />CSS Modules
yarn startoryarn 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 plopand follow the prompt oryarn plop MyComponentwill generateMyComponent.jsx,myComponent.module.scss,MyComponent.test.js, andMyComponent.mdx- Update
package.jsonaccording to semver. - Give a description of what changed in
src/CHANGELOG.mdxfollowed 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.