{"id":25414065,"url":"https://github.com/daiz/ls-module-bootstrap","last_synced_at":"2026-01-24T01:32:00.208Z","repository":{"id":13379890,"uuid":"16067835","full_name":"Daiz/ls-module-bootstrap","owner":"Daiz","description":"Node.js module bootstrap for LiveScript","archived":false,"fork":false,"pushed_at":"2014-02-03T15:42:53.000Z","size":152,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T14:48:41.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"LiveScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Daiz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-20T10:39:26.000Z","updated_at":"2015-01-01T10:50:02.000Z","dependencies_parsed_at":"2022-08-23T00:00:21.491Z","dependency_job_id":null,"html_url":"https://github.com/Daiz/ls-module-bootstrap","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/Daiz%2Fls-module-bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daiz%2Fls-module-bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daiz%2Fls-module-bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daiz%2Fls-module-bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Daiz","download_url":"https://codeload.github.com/Daiz/ls-module-bootstrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250257761,"owners_count":21400792,"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":"2025-02-16T14:35:28.421Z","updated_at":"2026-01-24T01:32:00.136Z","avatar_url":"https://github.com/Daiz.png","language":"LiveScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LiveScript Node.js Module Bootstrap\n\nI like using [LiveScript](http://livescript.net/), so I decided to write this little bootstrap to make life simpler when it comes to writing Node.js modules with it.\n\n## How to use it\n\nPut all your LiveScript code to a directory called `src`. The default entry point for the application is `index.js`, so the source file for that should be called `index.ls`.\n\nThe makefile exists to compile your LiveScript code to JavaScript when the user installs your module via npm. Your code is compiled to the `lib` folder, so if for example you have the following source code structure:\n\n```\nsrc/index.ls\nsrc/main/parser.ls\nsrc/main/linter.ls\n```\n\nThe files would be compiled to\n\n```\nlib/index.js\nlib/main/parser.js\nlib/main/linter.js\n```\n\nDue to this, you should make sure to not use file extensions when using `require` to load your submodules, so in your index.ls, you should have `require './main/parser'`, **not** `require './main/parser.ls'`.\n\n## Important bits of package.json\n\nHere are the important things that your package.json should have:\n\n```json\n  \"dependencies\": {\n    \"LiveScript\": \"~1.2.0\",\n    \"shelljs\": \"~0.2.6\"\n  },\n```\n\n`LiveScript` and `shelljs` are used for the compilation.\n\n```json\n  \"scripts\": {\n    \"postinstall\": \"lsc make\"\n  },\n```\n\nThis is responsible for running the compilation to JS on install.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaiz%2Fls-module-bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaiz%2Fls-module-bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaiz%2Fls-module-bootstrap/lists"}