{"id":17181536,"url":"https://github.com/dimitarchristoff/irspy","last_synced_at":"2025-03-25T00:43:48.043Z","repository":{"id":9643353,"uuid":"11576972","full_name":"DimitarChristoff/irspy","owner":"DimitarChristoff","description":"watch based less compiling strategy","archived":false,"fork":false,"pushed_at":"2013-08-02T11:20:21.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T03:32:41.444Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DimitarChristoff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-22T08:51:50.000Z","updated_at":"2013-12-10T21:02:37.000Z","dependencies_parsed_at":"2022-09-04T10:40:37.810Z","dependency_job_id":null,"html_url":"https://github.com/DimitarChristoff/irspy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2Firspy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2Firspy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2Firspy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DimitarChristoff%2Firspy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DimitarChristoff","download_url":"https://codeload.github.com/DimitarChristoff/irspy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377961,"owners_count":20605375,"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-10-15T00:34:36.133Z","updated_at":"2025-03-25T00:43:48.018Z","avatar_url":"https://github.com/DimitarChristoff.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"irspy\n=====\n\nI R Spy is a small nodejs app that lets you do tasks when files change, like, compile less files for you.\n\n## Example\n\nStart up `example.js`:\n\n```sh\n$ node example.js\n# or\n$ ./example.js\n\nirspy 0.0.1\n  --auto, -a         : Watch for changes in less files, recompiles main\n  --now, -n          : Do not keep running, instead - compile now and quit\n  --no-compress, -nc : Disable compression settings for less output, enabled by default, eg. --no-compress to disable\n```\n\nThe file can look like this:\n\n```javascript\n#!/usr/bin/env node\n'use strict';\n\n// run this file. if there's a .irspy json in the current folder, it will prefer it to local options\nvar fs = require('fs'),\n\tirspy = require('lib/irspy');\n\n// example use case\nvar config = fs.existsSync('.irspy') ? JSON.parse(fs.readFileSync('.irspy', 'utf-8')) : false;\n\n// defaults or read config\nconfig ? new irspy(config) : new irspy();\n```\n\nModify any `dist/less/` files. Only `dist/app.less` gets compiled. Tadaa!\n\n\n## Adding multiple tasks and locations\n\nHack around irspy.js. runNow and watches arrays can contain multiple directories and strategies.\n\na `.irspy` you could use (JSON):\n```\n{\n\t\"compress\": true,\n\n\t\"paths\": {\n\t\t\"src\": \"dist/less\",\n\t\t\"out\": \"dist/css\",\n\t\t\"lessMain\": \"app.less\",\n\t\t\"cssMain\": \"app-min.css\"\n\t},\n\n\t\"notify\": {\n\t\t\"enabled\": true\n\t}\n}\n```\n\n**This is not really release ready but works well enough**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitarchristoff%2Firspy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimitarchristoff%2Firspy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitarchristoff%2Firspy/lists"}