2.0.7 • Published 7 years ago
selfrefactor v2.0.7
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
'''
}
2.0.7
7 years ago
2.0.6
7 years ago
2.0.5
7 years ago
2.0.4
7 years ago
2.0.3
7 years ago
2.0.2
7 years ago
2.0.1
7 years ago
2.0.0
7 years ago
1.10.14
7 years ago
1.10.13
7 years ago
1.10.12
7 years ago
1.10.11
7 years ago
1.10.10
7 years ago
1.10.9
7 years ago
1.10.8
7 years ago
1.10.7
7 years ago
1.10.6
7 years ago
1.10.5
7 years ago
1.10.4
7 years ago
1.10.3
7 years ago
1.10.2
7 years ago
1.10.1
7 years ago
1.9.10
7 years ago
1.9.9
7 years ago
1.9.8
7 years ago
1.9.7
7 years ago
1.9.6
7 years ago
1.9.5
7 years ago
1.9.4
7 years ago
1.9.3
7 years ago
1.9.2
7 years ago
1.9.1
7 years ago
1.10.0
7 years ago
1.8.3
7 years ago
1.8.2
7 years ago
1.8.1
7 years ago
1.9.0
7 years ago
1.8.0
7 years ago
1.7.0
7 years ago
1.6.0
7 years ago
1.5.0
7 years ago
1.4.0
7 years ago
1.3.0
7 years ago
1.2.0
7 years ago
1.1.0
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago