`plugin` api, package, comment update

update for latest api of `plugin`
update style
update package.json, add `devDependencies`