Git Product home page Git Product logo

todo's Introduction

Ideas and initial documentations

test

todo's People

Contributors

mklabs avatar

Watchers

 avatar

todo's Issues

vimjs - ES6 to vimscript bridge

old idea, came back again (first attempt: https://github.com/mklabs/jsvim)

  • Write VIM plugins as ES6 class / scripts
  • Implement function / commands in JS, generates appropriate vimscript
  • Relies on STDOUT result (node file.js --vim --command => JSON)
  • Autoload generated API mapping ES6 class
this.command(':Foo', (args) => {
  this.echo('Args: ', args)
})
function! vimjs#node(type, ...)
  let cmd = join(a:000, ' ')
  let flag = '--' . type
  return system('node plugin.js --vim ' . flag . '  -- '  . cmd)
endfunction
command! -nargs=+ Foo call vimjs#node('command', <args>)
:Foo bar tabac
Args: bar tabac

js-startify - custom start screen for js projects

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.