pub and dart2js support, plus some snippets