{"name":"rollup-plugin-includepaths","version":"0.2.3","description":"Rollup plugin to use relative paths in your project files","main":"src/plugin.es5.js","jsnext:main":"src/plugin.js","files":["src"],"scripts":{"lint":"eslint src/plugin.js","build":"babel src/plugin.js --out-file src/plugin.es5.js","prepublish":"npm run lint && npm run build"},"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","eslint":"^4.19.1"},"gitHead":"3ab7d77f7d556b35e7c74a70d51cf5bae93a1055","_id":"rollup-plugin-includepaths@0.2.3","_npmVersion":"6.1.0","_nodeVersion":"8.9.4","_npmUser":{"name":"darlanalves","email":"me@darlanalv.es"},"dist":{"integrity":"sha512-4QbSIZPDT+FL4SViEVCRi4cGCA64zQJu7u5qmCkO3ecHy+l9EQBsue15KfCpddfb6Br0q47V/v2+E2YUiqts9g==","shasum":"244d21b9669a0debe476d825e4a02ed08c06b258","tarball":"http://registry-npm.ywwl.com/rollup-plugin-includepaths/download/rollup-plugin-includepaths-0.2.3.tgz","fileCount":4,"unpackedSize":21919,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbK2pXCRA9TVsSAnZWagAAbwwP/ilJov8IM3qYtBx+Mlnr\nSU2WYDd7tUnCXXZFKR5FzDui8wpHzoOe5bLLbJ+h+X+ze8M47TKFjXPS8hAc\nLDsUJvd22qX5SKTJ5gOBmrlyR2OU1/1oYcfB/hGpi6GWp0FIEPADjV5/osn+\nCLRDZ4t1nU8cfqTfYA04zjLnwh5OmtyUUFpYibhTbs5BgIibQ9GS3DJu3gUF\n55RY8E5TiLUinjrWYKPGaHmTW1czu/vz1tuCJ3y6PGWrvyPxxkuYcji/Uzgo\nYsPZtYsrC/nq0G3YSM3uTF0Hdo+MlcF+Y1+YYJbYopWxJK6tEn5YYjevVmHk\nBJn7UQ5hT9tylfazHmxvnU8omnuVujeyGw8lCpAb0VXTiHUd8UqJmFJTOtmj\naDUv34Bo53OfsOihlwK514fssin88q8fpIWAaeX5IOEKSmN2ONOo7B47sTIu\n1W6HqNt/y3iYVQfWVrHpL3VdZ2pdyV5vsMW8kssLkGQWohd1C+P+Wz2bNx9G\nB9QDELcM4OwW8Pg4+At9r1muV1BEm39OCNFbiDgqrL9M2zowmTKzlOo1lTyO\nyR+HoZCKKOG4id51dV42H9Nqy85t4YyHM2omeGW+wy5aHvXldiib1ppqT4J+\n3TYL6DRu0AVOzOkoKs+I1qqCotWTYSa3ymEajS/XNKSA3s9rci6KI9HUeqU3\n8rKA\r\n=KZZ/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDVdDZziST3ms+oWAUwTLx4kZ45/PIhv7jyX9cOyN9blAiAkqLYbBcY4BT9eAIn/lpDlw76QfUam0ds/xR9c1hrEmw=="}],"size":4757,"noattachment":false,"key":"/rollup-plugin-includepaths/-/rollup-plugin-includepaths-0.2.3.tgz"},"maintainers":[{"name":"darlanalves","email":"me@darlanalv.es"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-includepaths_0.2.3_1529571927064_0.7140269907307673"},"_hasShrinkwrap":false,"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":1529571927128,"_cnpm_publish_time":1529571927128,"dist-tags":{"latest":"0.2.4"}}