@moonwalker/mrm-presets
Mrm preset for moonwalkers
Last updated 2 months ago by moonwalker-bot .
MIT · Original npm · Tarball · package.json
$ cnpm install @moonwalker/mrm-presets 
SYNC missed versions from official npm registry.

mrm presets for :moon: :walking:

Install

# Install mrm globally if need it
npm i -g mrm

# Install presets package
npm i -g @moonwalker/mrm-presets

Presets

react-component

Generate React component folder

mrm react-component --preset @moonwalker/mrm-presets --config:slug top-navigation --config:prefix components/signup

// Running react-component...
// Create src/components/signup/top-navigation/index.js
// Create src/components/signup/top-navigation/top-navigation.component.js
// Create src/components/signup/top-navigation/top-navigation.stories.js
// Create src/components/signup/top-navigation/top-navigation.styl

Run the generator in the current dirrectory:

cd src/components
mrm react-component --preset @moonwalker/mrm-presets --config:slug top-navigation --config:cwd . --config:prefix signup

// Running react-component...
// Create src/components/signup/top-navigation/index.js
// Create src/components/signup/top-navigation/top-navigation.component.js
// Create src/components/signup/top-navigation/top-navigation.stories.js
// Create src/components/signup/top-navigation/top-navigations.styl

release-it

Custom release flow based on release-it.

Usage:

yarn bump

or

npm run bump

How is working

When running bump command, release-it will do the following steps locally:

  1. set a new package version

The version can be manually set by choosing the custom version option.

  1. tag the commit
  2. push the code & tags
  3. create a Github release(GITHUB_TOKEN required)

CI will run the publish flow for tagged commits.

pre-flight-check

Add linting & formatting configs for @moonwalker/pre-flight-check

How is working

lint-staged is running Prettier and Eslint before commit. If there are eslint errors, the commit will stop.

To skip the check entirely, you can use git commit --no-verify.

Current Tags

  • 1.3.1                                ...           latest (2 months ago)

18 Versions

  • 1.3.1                                ...           2 months ago
  • 1.2.1                                ...           4 months ago
  • 1.2.0                                ...           6 months ago
  • 1.1.17                                ...           10 months ago
  • 1.1.16                                ...           10 months ago
  • 1.1.15                                ...           10 months ago
  • 1.1.14                                ...           10 months ago
  • 1.1.13                                ...           a year ago
  • 1.1.12                                ...           a year ago
  • 1.1.11                                ...           a year ago
  • 1.1.10                                ...           a year ago
  • 1.1.9                                ...           a year ago
  • 1.1.8                                ...           a year ago
  • 1.1.7                                ...           a year ago
  • 1.1.5                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |