Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js-startify - custom start screen for js projects #2

Open
mklabs opened this issue May 31, 2016 · 0 comments
Open

js-startify - custom start screen for js projects #2

mklabs opened this issue May 31, 2016 · 0 comments

Comments

@mklabs
Copy link
Member

mklabs commented May 31, 2016

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 **/*.js files
    • list of test/**/*.js files
    • list of node_modules/* deps
    • mru in dir
  • 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/templates folder exists, list possible templates, hitting r on a template prompts for destination and runs the template.
  • 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 .js list file will run mocha / or ava on the selected file.
    • hitting e or l on any .js list file will eslint on the selected file.
    • hitting f on any .js list file will run eslint --fix on the selected file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant