{"name":"rollup-plugin-includepaths","version":"0.1.2","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":"a82d66a57c4cd52282539bc421b4ffc616b5d200","_id":"rollup-plugin-includepaths@0.1.2","_shasum":"56e8438309a62b94189e4208a80f9afc151fdd60","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.8.0","_npmUser":{"name":"darlanalves","email":"me@darlanalv.es"},"dist":{"shasum":"56e8438309a62b94189e4208a80f9afc151fdd60","tarball":"http://registry-npm.ywwl.com/rollup-plugin-includepaths/download/rollup-plugin-includepaths-0.1.2.tgz","integrity":"sha512-SsBj0nx9c836bZwAdd7mfKu5RtU1c9IOPJwC0g/Gbuvbyg6mNJxIWIgOhVOPqQgy44NiDnEZcrZeZ616fDSjOg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUbSoyDnJ5VYTYAQqt74EKn0+cau8yhGooXdts9U9KwAIgXjEFKRbVMveIYwgCQbXeXZSfKd4l39iSarFvc4+JLc0="}],"size":4276,"noattachment":false,"key":"/rollup-plugin-includepaths/-/rollup-plugin-includepaths-0.1.2.tgz"},"maintainers":[{"name":"darlanalves","email":"me@darlanalv.es"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rollup-plugin-includepaths-0.1.2.tgz_1458522699356_0.9409250481985509"},"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":1458522701660,"_cnpm_publish_time":1458522701660,"dist-tags":{"latest":"0.2.4"}}