{"id":13288234,"url":"https://github.com/Vanilla-IceCream/rollup-plugin-asc","last_synced_at":"2025-03-10T05:32:16.080Z","repository":{"id":65491270,"uuid":"313167907","full_name":"Vanilla-IceCream/rollup-plugin-asc","owner":"Vanilla-IceCream","description":"Compile AssemblyScript with Rollup.","archived":false,"fork":false,"pushed_at":"2022-02-16T11:48:46.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-22T10:34:18.582Z","etag":null,"topics":["assemblyscript","rollup"],"latest_commit_sha":null,"homepage":"","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/Vanilla-IceCream.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":"2020-11-16T02:11:42.000Z","updated_at":"2022-02-16T11:48:49.000Z","dependencies_parsed_at":"2023-01-25T18:45:37.302Z","dependency_job_id":null,"html_url":"https://github.com/Vanilla-IceCream/rollup-plugin-asc","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/Vanilla-IceCream%2Frollup-plugin-asc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vanilla-IceCream%2Frollup-plugin-asc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vanilla-IceCream%2Frollup-plugin-asc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vanilla-IceCream%2Frollup-plugin-asc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vanilla-IceCream","download_url":"https://codeload.github.com/Vanilla-IceCream/rollup-plugin-asc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242798263,"owners_count":20186882,"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":["assemblyscript","rollup"],"created_at":"2024-07-29T16:55:00.881Z","updated_at":"2025-03-10T05:32:15.802Z","avatar_url":"https://github.com/Vanilla-IceCream.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-asc [![Build Status](https://travis-ci.org/Vanilla-IceCream/rollup-plugin-asc.svg?branch=master)](https://travis-ci.org/Vanilla-IceCream/rollup-plugin-asc) [![Coverage Status](https://coveralls.io/repos/github/Vanilla-IceCream/rollup-plugin-asc/badge.svg?branch=master)](https://coveralls.io/github/Vanilla-IceCream/rollup-plugin-asc?branch=master)\n\nCompile AssemblyScript with Rollup.\n\n## Requirements\n\nThis plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup v1.20.0+.\n\n## Install\n\nUsing npm:\n\n```sh\n$ npm i rollup-plugin-asc -D\n```\n\nUsing yarn:\n\n```sh\n$ yarn add rollup-plugin-asc -D\n```\n\n## Usage\n\nCreate a `rollup.config.js` [configuration file](https://www.rollupjs.org/guide/en/#configuration-files) and import the plugin:\n\n```js\nimport path from 'path';\nimport resolve from '@rollup/plugin-node-resolve';\nimport commonjs from '@rollup/plugin-commonjs';\nimport asc from 'rollup-plugin-asc';\n\nconst file = '\u003cFILE_NAME\u003e.ts';\n\nexport default {\n  input: path.join(__dirname, 'src', file),\n  output: {\n    file: path.join(__dirname, 'dist', file.substring(file.lastIndexOf('.'), 0) + '.js'),\n    format: 'cjs',\n    exports: 'auto',\n  },\n  external: ['fs', 'path', '@assemblyscript/loader', '@assemblyscript/loader/umd'],\n  plugins: [\n    resolve(),\n    commonjs(),\n    asc({ output: path.join(__dirname, 'dist') }),\n  ],\n};\n```\n\nThen call `rollup` either via the [CLI](https://www.rollupjs.org/guide/en/#command-line-reference) or the [API](https://www.rollupjs.org/guide/en/#javascript-api).\n\n## Options\n\n### `output`\n\nType: `string`\u003cbr\u003e\nDefault: `''`\u003cbr\u003e\nExample: `output: path.join(__dirname, 'dist'),`\n\n### `args`\n\nType: `string[]`\u003cbr\u003e\nDefault: `[]`\u003cbr\u003e\nExample: `args: ['--measure'],`\n\nThe arguments that is passed straight to the [AssemblyScript compiler library](https://www.assemblyscript.org/compiler.html#command-line-options).\n\n### `textFile`\n\nType: `boolean`\u003cbr\u003e\nDefault: `false`\u003cbr\u003e\nExample: `textFile: true,`\n\n### `tsdFile`\n\nType: `boolean`\u003cbr\u003e\nDefault: `false`\u003cbr\u003e\nExample: `tsdFile: true,`\n\n## Example\n\nSee the `example` [folder](./example).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVanilla-IceCream%2Frollup-plugin-asc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVanilla-IceCream%2Frollup-plugin-asc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVanilla-IceCream%2Frollup-plugin-asc/lists"}