{"bin":{"scss-bundle":"./dist/bundle-cli.js"},"bugs":{"url":"https://github.com/SimplrJS/scss-bundle/issues"},"dist":{"shasum":"6ced600bfa1c2bea4868e382082278d4601dd5d3","tarball":"https://registry.npmjs.org/scss-bundle/-/scss-bundle-2.2.0-beta.2.tgz","fileCount":21,"integrity":"sha512-pgIRpsxRaHpnMcb7b/yWi1jKBURKVUj1fzVazHCRNHQj2FDyD9J/taYmkmZWMefTt2kd/9BgSDxCghPUv6tgrQ==","signatures":[{"sig":"MEUCIBQc7QGCf8k1mKtSv3wye38uDKCVsSWs56Wdlfho8/VnAiEA42OzSeHlWaiSjv7brABGcZ7VRj35subuxRff3Kw8KLk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":107856},"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) [![dependencies Status](https://david-dm.org/simplrjs/scss-bundle/status.svg)](https://david-dm.org/simplrjs/scss-bundle) [![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\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\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":"761858fa4c71f05c17bca0404433eb2a3b3c3a39","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":"9.11.1","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.8.3","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.2.0-beta.2_1522940750979_0.07595801264353153","host":"s3://npm-registry-packages"},"_id":"scss-bundle@2.2.0-beta.2","version":"2.2.0-beta.2"}