0.7.4 • Published 6 years ago

@onextech/react-semantic-booster v0.7.4

Weekly downloads
10
License
MIT
Repository
github
Last release
6 years ago

nod

NPM version Build Status Coverage Status

NodeJS module generator/boilerplate.

Features

  • Babel - Write next generation JavaScript today;
  • Jest - JavaScript testing framework used by Facebook;
  • ESLint - Make sure you are writing a quality code;
  • Flow - A static type checker for JavaScript used heavily within Facebook;
  • Travis CI - Automate tests and linting for every push or pull request;
  • Documentation - A documentation system so good, you'll actually write documentation.

Install

The easiest way to use nod is through the Yeoman Generator.

$ npm install -g yo generator-nod
$ yo nod

If you don't want to use the generator, you can also download or git clone this repo

$ git clone https://github.com/diegohaz/nod my-module
$ cd my-module
$ rm -rf .git
$ npm install # or yarn

Just make sure to edit package.json, README.md and LICENSE files accordingly with your module's info.

Commands

$ npm test # run tests with Jest
$ npm run coverage # run tests with coverage and open it on browser
$ npm run lint # lint code
$ npm run docs # generate docs
$ npm run build # generate docs and transpile code
$ npm run watch # watch code changes and run scripts automatically
$ npm run patch # bump patch version and publish to npm e.g. 0.0.1
$ npm run minor # bump minor version and publish to npm e.g. 0.1.0
$ npm run major # bump major version and publish to npm e.g. 1.0.0

Built with Nod

You can use those modules as a reference when creating yours. If you have built something with Nod, send a PR (try to write a helpful description for Nod users).

More examples

API

AngularSvg

Create an angular block

getCrumbSlug

Set custom routes on certain params

Parameters

  • crumb string
  • index number
  • rules {} set of keys (match.params path) and values (route to go to)

Returns string

getEmSizeScale

Calculate scale based on y = ax2 + bx + c

Parameters

Returns number The y value

autoPlay

sayHello

This function says hello.

Parameters

  • name string Some name to say hello for.

Returns string The hello.

getCustomClassName

Render the class names based on the custom props selected

Parameters

  • customProps {prop: className} a reference list of custom props and classnames
  • allProps {className: {string}} the user-defined props

Returns string the className string to render onto the DOM

subtractObject

Subtract object from another object (non-recursive)

Parameters

  • subtrahend The part being taken away
  • minuend The part you start with

Returns {} The part that is left after subtraction

setStyledSpacer

A styled component function to set padding top/bottom of an element from a mulitplier

Parameters

  • spacer
  • baseEm Number The base em size to scale the spacer (optional, default 5)

Returns string the css to apply

setCustomProps

Set custom props

Parameters

  • props {}
  • customProps {}
  • defaultProps {}

Returns {className: string}

mergeClassNames

Merge prev class names with new class names to prevent overwrite of className prop

Parameters

  • newClassName ([] | string)
  • prevClassName ([] | null)

Returns string

mediaCssFactory

Iterate through the mediaCssBreakpoints and create a media template

Parameters

Returns {}

License

MIT © Diego Haz

0.7.4

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.75

6 years ago

0.6.74

6 years ago

0.6.73

6 years ago

0.6.72

6 years ago

0.6.71

6 years ago

0.6.70

6 years ago

0.6.69

6 years ago

0.6.68

6 years ago

0.6.67

6 years ago

0.6.66

6 years ago

0.6.64

6 years ago

0.6.63

6 years ago

0.6.61

6 years ago

0.6.60

6 years ago

0.6.59

6 years ago

0.6.58

6 years ago

0.6.57

6 years ago

0.6.56

6 years ago

0.6.55

6 years ago

0.6.54

6 years ago

0.6.53

6 years ago

0.6.52

6 years ago

0.6.51

6 years ago

0.6.50

6 years ago

0.6.49

6 years ago

0.6.48

6 years ago

0.6.47

6 years ago

0.6.46

6 years ago

0.6.45

6 years ago

0.6.44

6 years ago

0.6.43

6 years ago

0.6.42

6 years ago

0.6.41

6 years ago

0.6.40

6 years ago

0.6.39

6 years ago

0.6.37

6 years ago

0.6.36

6 years ago

0.6.35

6 years ago

0.6.34

6 years ago

0.6.33

6 years ago

0.6.32

6 years ago

0.6.31

6 years ago

0.6.30

6 years ago

0.6.29

6 years ago

0.6.28

6 years ago

0.6.26

6 years ago

0.6.25

6 years ago

0.6.24

6 years ago

0.6.22

6 years ago

0.6.21

6 years ago

0.6.20

6 years ago

0.6.19

6 years ago

0.6.18

6 years ago

0.6.17

6 years ago

0.6.16

6 years ago

0.6.15

6 years ago

0.6.14

6 years ago

0.6.13

6 years ago

0.6.12

6 years ago

0.6.11

6 years ago

0.6.10

6 years ago

0.6.9

6 years ago

0.6.8

6 years ago

0.6.7

6 years ago

0.6.6

6 years ago

0.6.5

6 years ago

0.6.4

6 years ago

0.6.3

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.35

6 years ago

0.5.33

6 years ago

0.5.32

6 years ago

0.5.31

6 years ago

0.5.30

6 years ago

0.5.29

6 years ago

0.5.28

6 years ago

0.5.27

6 years ago

0.5.26

6 years ago

0.5.25

6 years ago

0.5.24

6 years ago

0.5.23

6 years ago

0.5.22

6 years ago

0.5.21

6 years ago

0.5.20

6 years ago

0.5.19

6 years ago

0.5.18

6 years ago

0.5.17

6 years ago

0.5.16

6 years ago

0.5.15

6 years ago

0.5.14

6 years ago

0.5.13

6 years ago

0.5.12

6 years ago

0.5.11

6 years ago

0.5.10

6 years ago

0.5.9

6 years ago

0.5.8

6 years ago

0.5.7

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago