-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Using the excellent https://github.com/mhinz/vim-startify
A plugin wrapper to further customize the startup screen on projects with a package.json file.
- custom header
- list
- list of
**/*.jsfiles - list of
test/**/*.jsfiles - list of
node_modules/*deps - mru in dir
- list of
- build tool integration
- npm scripts - list package.json "scripts", hitting r on a line runs the script
- make - list targets, hitting r on a line runs the target
- gulp - with a gulpfile.js, invoke gulp --list, hitting r on a task runs the task
- grunt - with a Gruntfile, invoke grunt to get tasks, hitting r on a task runs the task
- Scaffold integration
- if yo is in the
$PATH, use yeoman-environment to get the list of generators, hitting r on a generator runs the generator. - if a
~/.vim/templatesfolder exists, list possible templates, hitting r on a template prompts for destination and runs the template.
- if yo is in the
- Documentation
- if a docs folder exists, or package.json "dirs.docs" field exists, list markdown files
- hitting e on a file opens the buffer.
- hitting p on a a markdown file opens up a buffer preview or webpage.
- Tests / Lint
- mocha, hitting r on the mocha line runs mocha with standard config
mocha -R spec test/ - ava, hitting r on the ava line runs ava with standard config
ava - eslint, hitting r on the eslint line runs
eslint . - fix, hitting r on the fix line runs
eslint --fix . - jsdom, hitting r on the jsdom line runs mocha with a static server and a jsdom instance
- hitting t on any
.jslist file will run mocha / or ava on the selected file. - hitting e or l on any
.jslist file will eslint on the selected file. - hitting f on any
.jslist file will run eslint --fix on the selected file.
- mocha, hitting r on the mocha line runs mocha with standard config
Metadata
Metadata
Assignees
Labels
No labels