selfrefactor
common functions used by I Learn Smarter project
Last updated 3 years ago by self_refactor .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install selfrefactor -g
SYNC missed versions from official npm registry.

selfrefactor

Collections of small useful CLI functions

Requirements

  • babel-cli
  • documentation
  • yarn

Start-up script

npm i -g babel-cli yarn documentation

Help file content

{
  help: see all commands
  lint:
  '''
  Pass 'filePath' to lint a file.
  Linting depends on several factors:
  - if ends with 'componenent.js' - React lint
  - if includes '__tests__' - Jest lint
  - if ends with 'saga.js' - Redux-saga lint
  - if ends with '.js' - default Javascript lint
  '''
  testUrl:
  '''
  Run load speed tests with given public URL address
  - url(u) //=> http://foo.ngrok.com
  '''
  hjson: 'filePath' for input HJSON and 'output' for output JSON
  ngrok:
  '''
  - port(p) - for exposed port.
  - subdomain
  - region
  - ngrokToken - auth token or place it in process.env.NGROK_TOKEN
  '''
  lintFolder: just run it from the directory you want to lint
  minify:
  '''
  - filePath(f)
  - output(o)
  '''
  deploy:
  '''
  Deploy to Git
  - text(t) - commit title
  '''
  trapper:
  '''
  Watch file in the current directory and runs it on changes
  - filePath = file to watch

  In the folowing code:

  const arg = 2
  const a = x => x + 1

  This evaluation will be piped to console.log:

  a(arg)

  Async functions are supported
  '''
  zip:
  '''
  Zip folder to destination archive
  - filePath - source directory
  - output - .zip destination
  '''
  colors:
  '''
  Creates css color variables file using color declaration in given file

  - filePath - color declarations of type:
  {
    blue:{
      min:"#444222",
      min:"#aaa222"
    }
  }
  - output - location of output css file //=> foo.css
  '''
}

Current Tags

  • 2.0.7                                ...           latest (3 years ago)

51 Versions

  • 2.0.7                                ...           3 years ago
  • 2.0.6                                ...           3 years ago
  • 2.0.5                                ...           3 years ago
  • 2.0.4                                ...           3 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.10.14                                ...           3 years ago
  • 1.10.13                                ...           3 years ago
  • 1.10.12                                ...           3 years ago
  • 1.10.11                                ...           3 years ago
  • 1.10.10                                ...           3 years ago
  • 1.10.9                                ...           3 years ago
  • 1.10.8                                ...           3 years ago
  • 1.10.7                                ...           3 years ago
  • 1.10.6                                ...           3 years ago
  • 1.10.5                                ...           3 years ago
  • 1.10.4                                ...           3 years ago
  • 1.10.3                                ...           3 years ago
  • 1.10.2                                ...           3 years ago
  • 1.10.1                                ...           3 years ago
  • 1.9.10                                ...           3 years ago
  • 1.9.9                                ...           3 years ago
  • 1.9.8                                ...           3 years ago
  • 1.9.7                                ...           3 years ago
  • 1.9.6                                ...           3 years ago
  • 1.9.5                                ...           3 years ago
  • 1.9.4                                ...           3 years ago
  • 1.9.3                                ...           3 years ago
  • 1.9.2                                ...           3 years ago
  • 1.9.1                                ...           3 years ago
  • 1.10.0                                ...           3 years ago
  • 1.8.3                                ...           3 years ago
  • 1.8.2                                ...           3 years ago
  • 1.8.1                                ...           3 years ago
  • 1.9.0                                ...           3 years ago
  • 1.8.0                                ...           3 years ago
  • 1.7.0                                ...           3 years ago
  • 1.6.0                                ...           3 years ago
  • 1.5.0                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 51
Dependencies (35)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |