Skip to content

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

@mklabs

Description

@mklabs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions