{"name":"rollup-plugin-includepaths","version":"0.1.6","description":"Rollup plugin to use relative paths in your project files","main":"src/plugin.es5.js","jsnext:main":"src/plugin.js","files":["src"],"scripts":{"xprepublish":"babel src/plugin.js --out-file src/plugin.es5.js"},"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","devDependencies":{"babel-cli":"^6.8.0","babel-plugin-add-module-exports":"^0.2.0","babel-preset-es2015":"^6.6.0"},"gitHead":"abc06f7e3068bfde1342a8c4edaacf965a75a2c5","_id":"rollup-plugin-includepaths@0.1.6","_shasum":"a90259bba37964512c54aa42465d7add698a0442","_from":".","_npmVersion":"3.10.5","_nodeVersion":"5.2.0","_npmUser":{"name":"darlanalves","email":"me@darlanalv.es"},"dist":{"shasum":"a90259bba37964512c54aa42465d7add698a0442","tarball":"http://registry-npm.ywwl.com/rollup-plugin-includepaths/download/rollup-plugin-includepaths-0.1.6.tgz","integrity":"sha512-U+lyKkhbBHiqUoEs1u3iK9vvEsn7PMbMaN3Eq6MQ2iP/sAe0EovTAEBaJ2yBA9DxV54a+QFuvCYytvT2xefzyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQo6WPcBsynMLOyhEggEQxiTJDsMWixVQnC3lXgg+qYAiBJ6T3ePu0wVZXrQTPaXqM0JZZPv0S+LTbmQaBV2qs7bQ=="}],"size":5271,"noattachment":false,"key":"/rollup-plugin-includepaths/-/rollup-plugin-includepaths-0.1.6.tgz"},"maintainers":[{"name":"darlanalves","email":"me@darlanalv.es"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rollup-plugin-includepaths-0.1.6.tgz_1473974403560_0.3004879392683506"},"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":1473974405297,"_cnpm_publish_time":1473974405297,"dist-tags":{"latest":"0.2.4"}}