{"name":"rollup-plugin-includepaths","version":"0.1.1","description":"Rollup plugin to use relative paths in your project files","main":"src/plugin.es5.js","jsnext:main":"src/plugin.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/dot-build/rollup-plugin-includepaths.git"},"keywords":["rollup-plugin","rollup","es6"],"author":{"name":"Darlan Alves","email":"me@darlanalv.es"},"license":"MIT","bugs":{"url":"https://github.com/dot-build/rollup-plugin-includepaths/issues"},"homepage":"https://github.com/dot-build/rollup-plugin-includepaths#readme","gitHead":"9f5795d58967797aeb1ad1785cbaaa949ac3f7be","_id":"rollup-plugin-includepaths@0.1.1","_shasum":"209004827b23fa3aed7dcbaf653993092620a3c2","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.0","_npmUser":{"name":"darlanalves","email":"me@darlanalv.es"},"dist":{"shasum":"209004827b23fa3aed7dcbaf653993092620a3c2","tarball":"http://registry-npm.ywwl.com/rollup-plugin-includepaths/download/rollup-plugin-includepaths-0.1.1.tgz","integrity":"sha512-963N0R8UXK5O1pAFt3gMAVtVzcOdfjwn77c27qgKEAmqPGsy6553xvCY05SAXvSrWXp0CeT8KoiORXK6j13avA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSzefqKK0Yabshqvr8iNIPbHxIUOlLeqok6UJVOZtGwwIhAPtA3JZ6WY3pU4B5y2U58iYezTSMsEOUrwb0ZwsxEDdd"}],"size":4125,"noattachment":false,"key":"/rollup-plugin-includepaths/-/rollup-plugin-includepaths-0.1.1.tgz"},"maintainers":[{"name":"darlanalves","email":"me@darlanalv.es"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/rollup-plugin-includepaths-0.1.1.tgz_1456152875707_0.4207256371155381"},"directories":{},"readme":"# rollup-plugin-includepaths\n\nLet you use relative paths in your import directives, like this:\n\n```js\n// from src/lib/one/foo.js\nimport { Foo } from 'one/foo';\n\n// from src/other/two/bar.js\nimport { Bar } from 'two/bar';\n\n```\n\n## Setup\n\nIn your rollup configuration file:\n\n```js\n\nimport includePaths from 'rollup-plugin-includepaths';\n\nlet includePathOptions = {\n    include: {},\n    paths: ['src/lib', 'src/other'],\n    external: [],\n    extensions: ['.js', '.json', '.html']\n};\n\nexport default {\n    entry: './app.js',\n    format: 'cjs',\n    dest: 'public/app.min.js',\n    plugins: [ includePaths(includePathOptions) ],\n};\n\n```\n\n## Options:\n\n### paths = `['']`\n\nAn array of source paths in your project where the plugin should look for files\n\nExample: `['src/lib', 'src/foo']`\n\nBy default, resolve files from working dir\n\n### include\n\nA map of module=>path/to/file.js with custom module paths. Used to override the search with a static path (like Browserify does with the \"browser\" config).\n\nUse this option if you want to skip the file resolution and directly resolve a module name to a given path.\n\nExample:\n\n```js\ninclude: {\n    // Import example: import angular from 'angular';\n    'angular': 'bower_components/angular/angular.js'\n}\n```\n\n### external\n\nAn array of module names that should be excluded from the bundle (external modules).\n\nBy default, all the node built-in modules will be marked as external.\n\nTo include the built-ins, you can use the [builtins](https://github.com/calvinmetcalf/rollup-plugin-node-builtins) plugin and set this config to an empty array.\n\nExample:\n\n```js\n// will not include the module 'angular' in the final bundle\nexternal: ['angular']\n```\n\n\n### extensions\n\nAn array of file extensions to look for in the project.\n\nDefault: `['.js', '.json']`\n","publish_time":1456152880657,"_cnpm_publish_time":1456152880657,"dist-tags":{"latest":"0.2.4"}}