{"id":21186604,"url":"https://github.com/fetchte/karma-styluspreprocessor","last_synced_at":"2025-03-14T20:18:15.475Z","repository":{"id":32513701,"uuid":"36094764","full_name":"fetchTe/karma-stylusPreprocessor","owner":"fetchTe","description":"Karma plugin to compile stylus on the fly.","archived":false,"fork":false,"pushed_at":"2016-10-02T01:21:43.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T00:36:46.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fetchTe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-22T20:54:00.000Z","updated_at":"2016-02-05T03:57:17.000Z","dependencies_parsed_at":"2022-09-01T09:12:19.348Z","dependency_job_id":null,"html_url":"https://github.com/fetchTe/karma-stylusPreprocessor","commit_stats":null,"previous_names":["fetchte/karma-styluspreprocessor","artisin/karma-styluspreprocessor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fkarma-stylusPreprocessor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fkarma-stylusPreprocessor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fkarma-stylusPreprocessor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fetchTe%2Fkarma-stylusPreprocessor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fetchTe","download_url":"https://codeload.github.com/fetchTe/karma-stylusPreprocessor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243639555,"owners_count":20323511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T18:24:38.322Z","updated_at":"2025-03-14T20:18:15.449Z","avatar_url":"https://github.com/fetchTe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)\n\n# karma-stylusPreprocessor\n\n### Configuration Options\n * `paths`: [`Array`] of paths to folders that should be used for file lookup when using `@import`.\n * `save`: [`Boolean`] Indicates whether result of compilation should be saved in project directory.\n * `compress`: [`Boolean`] Indicates whether css should be compressed or not.\n \n### Example configuration\n\n```js\nmodule.exports = {\n  frameworks: ['mocha', 'sinon-chai'],\n  files: [\n  \t//..\n  ],\n  exclude:[\n  \t//..\n  ],\n  watch: [\n  \t//..\n  ],\n  preprocessors: {\n    'app/assets/js/__tests__/**/*.styl': ['stylus']\n  },\n  //karma-stylusPreprocessor\n  stylusPreprocessor: {\n    options: {\n      paths: ['app/assets/styles/_base/buttron'],\n      save: true,\n      compress: false\n    },\n    //Modify path\n    transformPath: function(path) {\n      path = path.replace(/\\.styl$/, '.compiled.css');\n      path = path.replace(/\\/cases\\//g, '/cases/compiled/');\n      return path;\n    }\n  },\n  webpack: webpackConfig,\n  browserNoActivityTimeout: 100000,\n  singleRun: true,\n  reporters: ['nyan'],\n  colors: true,\n  browsers: ['PhantomJS_custom'],\n    //custom flags\n    customLaunchers: {\n      'PhantomJS_custom': {\n        base: 'PhantomJS',\n        options: {\n          windowName: 'my-window',\n          settings: {\n            webSecurityEnabled: false\n          },\n        },\n        flags: ['--load-images=false'],\n        debug: false\n      }\n    },\n    // Have phantomjs exit if a ResourceError is encountered \n    // (useful ifkarma exits without killing phantom)\n    phantomjsLauncher: {\n      exitOnResourceError: true\n    }\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetchte%2Fkarma-styluspreprocessor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffetchte%2Fkarma-styluspreprocessor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffetchte%2Fkarma-styluspreprocessor/lists"}