{"bin":{"scss-bundle":"./dist/bundle-cli.js"},"bugs":{"url":"https://github.com/SimplrJS/scss-bundle/issues"},"dist":{"shasum":"316f969852a00ad45c9d3308fce6e3e740dcffa2","tarball":"https://registry.npmjs.org/scss-bundle/-/scss-bundle-2.3.0-beta.tgz","fileCount":21,"integrity":"sha512-brsqc9/mugnEJ9OyQ8YtxFiCHVM7WAS6JN4Dp5OMXcO85wi1K7AlkzaUM3DHeur+Hi6lhQnTwtCdLD3Nhsxn4w==","signatures":[{"sig":"MEQCIGPwg2pzhfS/vkYPgMWXVG/3UPGkz1LcClQIvpos9/9tAiBUhLvsjpb0ww7M+GVDg9d6FRDDQZrmVxkgG+Eaa8mvqA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":115523,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa6wlfCRA9TVsSAnZWagAAqFcQAJ1tXndMuShjj+U7LJBy\nz3b1+Oxv7GwDIsxx/ENuz/8tkCDXUffXreFrxX1/mgJzEKx8YXKtIqIokg1F\nr0vl9kTKk6+WKUaSBJPbpZ2biW7+4oyGaPs4nKoGnfTDeIYN4VzwLySEF3R6\n3YpdmSBNk4w4Vw/pZSOLqeGnS0X2b3jRBPQqS5AVdDPV8d34uQuloKRlGNqO\nf1X5k2KbDkIJXM/1yK65zqoyVhWN+sH5X7435wh82b4zSqE+pyVB6DuPir5g\nopzzhe/MgNMEkmO6JeFoZEIa/P/noIi7vreTysl0IDzfnEuU7angYYLHY2D0\nHfcVvLNSC5NLeAciz6S/g0Q5LdEuk4azZdhwZ1UdljUm7vDgmJopm6KIVcqx\nl8O2PHYd7iHuefFyQWEJrbcYK/UH+7zvypdIExnaSw9+oNv7zX34/Brcfkkc\nhoZT0efZ5rVka5kbmi5Xdpf/ONySv8LqwAe45VfqaZD6NrMpuH9bOaz1ukSU\nT0aZJoWQCGNpoey8im/yqrLw1CHT+4M9pOniiY39EklWMJjPV1RkWzUTUKpG\njI1BhZLMlwLlglLmUqBQ/tnDGCyUA+G6RAz3oTTA0Jc79O0M4SMx/M8/AR5s\n0AISgs0HFZCEJrt5EV+92IG9MOj1v6PCFm5vsKhUfidb8C2B964nB7rTJgor\n59IS\r\n=wl4b\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"globals":{"ts-jest":{"skipBabel":true,"tsConfigFile":"tests/tsconfig.json"}},"verbose":true,"testRegex":"/__tests__/.*\\.(test|spec).(ts|tsx|js)$","transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"collectCoverage":true,"moduleNameMapper":{"@src/(.*)":"<rootDir>/src/$1"},"moduleFileExtensions":["ts","tsx","js"],"coveragePathIgnorePatterns":["/node_modules/","/tests/"]},"main":"index.js","name":"scss-bundle","files":["dist","**/*.md","*.js","@types","!*.config.js"],"types":"@types/index.d.ts","author":{"url":"https://github.com/simplrjs","name":"simplrjs","email":"simplr@quatrodev.com"},"readme":"# scss-bundle\r\n\r\nBundles all SCSS imports into a single file recursively.\r\n\r\n[![Build Status](https://travis-ci.org/SimplrJS/scss-bundle.svg?branch=master)](https://travis-ci.org/SimplrJS/scss-bundle)\r\n[![NPM version](http://img.shields.io/npm/v/scss-bundle.svg)](https://www.npmjs.com/package/scss-bundle) \r\n[![npm (tag)](https://img.shields.io/npm/v/scss-bundle/next.svg)](https://www.npmjs.com/package/scss-bundle)\r\n[![dependencies Status](https://david-dm.org/simplrjs/scss-bundle/status.svg)](https://david-dm.org/simplrjs/scss-bundle) \r\n[![devDependencies Status](https://david-dm.org/simplrjs/scss-bundle/dev-status.svg)](https://david-dm.org/simplrjs/scss-bundle?type=dev)\r\n\r\n### Who uses `scss-bundle`\r\n\r\nA few of the projects who use the package:\r\n\r\n*   [Angular/material2](https://github.com/angular/material2)\r\n*   [Grassy](https://github.com/lazarljubenovic/grassy)\r\n*   [Copictures](https://copictures.com)\r\n\r\n## Get started\r\n\r\nIf you want to use `scss-bundle` globally\r\n\r\n```sh\r\n$ npm install scss-bundle -g\r\n```\r\n\r\nLatest pre-release is published under `next` tag.\r\n\r\n```sh\r\n$ npm install scss-bundle@next\r\n```\r\n\r\n## CLI Usage\r\n\r\n```sh\r\n$ scss-bundle -h\r\n```\r\n\r\n### Examples\r\n\r\n_Without config file:_\r\n\r\nIf you want to use `scss-bundle` without configuration file, `entry` and `dest` arguments are required.\r\n\r\n```sh\r\n$ scss-bundle -e ./src/main.scss -d bundled.scss\r\n```\r\n\r\nOr specifying output `verbosity` level.\r\n\r\n```sh\r\n$ scss-bundle -e ./src/main.scss -d bundled.scss --verbosity Errors\r\n```\r\n\r\n_With config file:_\r\n\r\n```sh\r\n$ scss-bundle -c scss-bundle.config.json\r\n```\r\n\r\n## Config example\r\n\r\n```json\r\n{\r\n    \"entry\": \"./src/main.scss\",\r\n    \"dest\": \"bundled.scss\"\r\n}\r\n```\r\n\r\n| Argument             | Type           | Description                                         | Values                | Default |\r\n| -------------------- | -------------- | --------------------------------------------------- | --------------------- | ------- |\r\n| entry <sup>`*`</sup> | string         | Main entry file where to start bundling.            |                       |         |\r\n| dest <sup>`*`</sup>  | string         | Destination file when bundling is done.             |                       |         |\r\n| verbosity            | string choices | Destination file when bundling is done.             | None, Errors, Verbose | Verbose |\r\n| includePaths         | array          | Include paths for resolving imports                 |                       |         |\r\n| project              | string         | Project location, where `node_modules` are located. |                       |         |\r\n| ignoredImports       | array          | Ignore resolving import content by matching a regular expression.|          |         |\r\n`*` - Required\r\n\r\n## Output verbosity\r\n\r\nCLI option `verbosity` is used to control how much output you get. By default, you will get `Verbose` level of verbosity with the most output.\r\n\r\n| Value   | Description                                                                    |\r\n| ------- | ------------------------------------------------------------------------------ |\r\n| None    | Produces no output, only process success/error return code.                    |\r\n| Errors  | Outputs all errors and skips any additional information.                       |\r\n| Verbose | Outputs the most information. This is the `default` value for verbosity level. |\r\n\r\n## Non-CLI usage\r\n\r\n### Simple example\r\n\r\n```typescript\r\nimport * as path from \"path\";\r\nimport { Bundler } from \"scss-bundle\";\r\n\r\n(async () => {\r\n    // Absolute project directory path.\r\n    const projectDirectory = path.resolve(__dirname, \"./cases/tilde-import\");\r\n    const bundler = new Bundler(undefined, projectDirectory);\r\n    // Relative file path to project directory path.\r\n    const result = await bundler.Bundle(\"./main.scss\");\r\n})();\r\n\r\n```\r\n\r\n# API\r\n\r\n## Bundler\r\n\r\n```typescript\r\nimport { Bundler } from \"scss-bundle\";\r\n```\r\n\r\n### Constructor\r\n\r\n```ts\r\nconstructor(fileRegistry: FileRegistry = {}, projectDirectory?: string) {}\r\n```\r\n\r\n##### Arguments\r\n\r\n*   `fileRegistry?:` [Registry](#registry) - Dictionary of files contents by full path\r\n*   `projectDirectory?: string` - Absolute project location, where `node_modules` are located. Used for resolving tilde imports\r\n\r\n### Methods\r\n\r\n#### Bundle\r\n\r\n```typescript\r\npublic static async Bundle(file: string, fileRegistry: Registry = {}): Promise<BundleResult>\r\n```\r\n\r\n##### Arguments\r\n\r\n*   `file: string` - Main file full path\r\n*   `fileRegistry:` [Registry](#registry) - Dictionary of files contents by full path\r\n\r\n##### Returns\r\n\r\n`Promise<`[BundleResult](#bundleresult)`>`\r\n\r\n#### BundleAll\r\n\r\n```typescript\r\npublic static async BundleAll(files: string[], fileRegistry: Registry = {}): Promise<BundleResult[]>\r\n```\r\n\r\n##### Arguments\r\n\r\n*   `files: string[]` - Array of full path files\r\n*   `fileRegistry:`[Registry](#registry) - Dictionary of files contents by full path\r\n\r\n##### Returns\r\n\r\n`Promise<`[BundleResult](#bundleresult)`[]>`\r\n\r\n### Contracts\r\n\r\n#### BundleResult\r\n\r\n```typescript\r\nimport { BundleResult } from \"scss-bundle\";\r\n```\r\n\r\n```typescript\r\ninterface BundleResult {\r\n    imports?: BundleResult[];\r\n    tilde?: boolean;\r\n    filePath: string;\r\n    content?: string;\r\n    found: boolean;\r\n}\r\n```\r\n\r\n##### Properties\r\n\r\n*   `imports:` [BundleResult](#bundleresult)`[]` - File imports array\r\n*   `tidle?: boolean` - Used tilde import\r\n*   `filePath: string` - Full file path\r\n*   `content: string` - File content\r\n*   `found: boolean` - Is file found\r\n\r\n#### Registry\r\n\r\n```typescript\r\nimport { Registry } from \"scss-bundle\";\r\n```\r\n\r\n```typescript\r\ninterface Registry {\r\n    [id: string]: string | undefined;\r\n}\r\n```\r\n\r\n##### Key\r\n\r\n`id: string` - File full path as dictionary id\r\n\r\n##### Value\r\n\r\n`string | undefined` - File content\r\n\r\n## License\r\n\r\nReleased under the [MIT license](LICENSE).\r\n","gitHead":"03ff840b5acb8cbe5960f22df9d2e84ff7ad395f","license":"MIT","scripts":{"test":"jest","build":"tsc -p . --newLine lf","watch":"tsc -w","tslint":"tslint --config ./tslint.json --project . --exclude test/**/* && echo TsLint test successfully passed.","pretest":"npm run build -- --noEmit && npm run build-tests && npm run tslint","test-ci":"npm run pretest && npm run tslint && jest --maxWorkers=4 -b","test-watch":"start npm run build-tests -- --watchAll && jest --watchAll","build-tests":"test-generator-cli","prepublishOnly":"npm run build"},"_npmUser":{"name":"simplrjs-admin","email":"simplr@quatrodev.com"},"homepage":"https://github.com/SimplrJS/scss-bundle","keywords":["scss","bundle","sass","node-sass"],"repository":{"url":"git+https://github.com/SimplrJS/scss-bundle.git","type":"git"},"_npmVersion":"5.6.0","description":"Bundling SCSS files to one bundled file.","directories":{},"maintainers":[{"name":"quatrodev","email":"dovydas@quatrodev.com"},{"name":"simplrjs","email":"dovydas@quatrodev.com"}],"_nodeVersion":"10.0.0","dependencies":{"archy":"^1.0.0","globs":"^0.1.3","yargs":"^11.0.0","promise":"^8.0.1","fs-extra":"^5.0.0","node-sass":"^4.9.0","pretty-bytes":"^4.0.2"},"publishConfig":{"tag":"next"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^22.4.3","tslint":"^5.9.1","ts-jest":"^22.4.2","ts-node":"^5.0.1","typescript":"^2.8.1","@types/jest":"^22.2.2","@types/node":"^9.6.1","@types/archy":"0.0.31","@types/yargs":"11.0.0","simplr-tslint":"1.0.0-alpha.5","@types/promise":"^7.1.30","@types/fs-extra":"^5.0.1","@types/node-sass":"3.10.32","@simplrjs/test-generator-cli":"^0.1.3"},"_npmOperationalInternal":{"tmp":"tmp/scss-bundle_2.3.0-beta_1525352798417_0.6939029954337348","host":"s3://npm-registry-packages"},"_id":"scss-bundle@2.3.0-beta","version":"2.3.0-beta"}