{"id":19438175,"url":"https://github.com/noflo/grunt-noflo-browser","last_synced_at":"2025-04-24T22:30:41.701Z","repository":{"id":16565948,"uuid":"19319827","full_name":"noflo/grunt-noflo-browser","owner":"noflo","description":"Grunt plugin for easier browser builds of NoFlo","archived":false,"fork":false,"pushed_at":"2023-02-06T16:01:02.000Z","size":473,"stargazers_count":4,"open_issues_count":10,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-07T20:08:21.224Z","etag":null,"topics":["grunt-plugins","noflo","webpack"],"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/noflo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-04-30T16:23:13.000Z","updated_at":"2021-03-08T06:02:50.000Z","dependencies_parsed_at":"2024-06-19T00:16:21.879Z","dependency_job_id":null,"html_url":"https://github.com/noflo/grunt-noflo-browser","commit_stats":{"total_commits":251,"total_committers":8,"mean_commits":31.375,"dds":0.4183266932270916,"last_synced_commit":"8d5abfa8944a5ba12d4594fc2940d28c06a249b9"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noflo%2Fgrunt-noflo-browser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noflo%2Fgrunt-noflo-browser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noflo%2Fgrunt-noflo-browser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noflo%2Fgrunt-noflo-browser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noflo","download_url":"https://codeload.github.com/noflo/grunt-noflo-browser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223968199,"owners_count":17233458,"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":["grunt-plugins","noflo","webpack"],"created_at":"2024-11-10T15:17:11.490Z","updated_at":"2024-11-10T15:17:12.123Z","avatar_url":"https://github.com/noflo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-noflo-browser\n\n\u003e Grunt plugin for building NoFlo projects for the browser. It also extracts possible HTML contents from graphs and creates demo files for them. It uses [Webpack](https://webpack.github.io/) for building.\n\ngrunt-noflo-browser can also be used for creating single-file executable bundles of Node.js projects. This can increase start-up time, especially in constrained environments.\n\n## Getting Started\nThis plugin requires Grunt `1.x`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-noflo-browser --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-noflo-browser');\n```\n\n## The `noflo_browser` task\n\n### Overview\nIn your project's Gruntfile, add a section named `noflo_browser` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  noflo_browser: {\n    options: {\n      // Task-specific options go here.\n    },\n    build: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.graph\nType: `String`\nDefault value: `null`\n\nSetting this to the component name of a graph scopes the build to only include dependencies of that graph. If set to null, all available components will be included.\n\n#### options.webpack\nType: `Object`\n\n[Webpack configuration options](http://webpack.github.io/docs/configuration.html) to use with the build.\n\n#### options.ignores\nType: `Array`\nDefault value: `[/tv4/]`\n\nList of regular expressions matching modules to ignore in the build. Can be used to remove optional dependencies.\n\n#### options.manifest\nType: `Object`\n\nCustom options to pass to [fbp-manifest](https://github.com/flowbased/fbp-manifest) at component discovery stage.\n\n#### options.development\nType: `Boolean`\nDefault value: `false`\n\nWhether to build also the development dependencies.\n\n#### options.debug\nType: `Boolean`\nDefault value: `false`\n\nWhether to enable debugging using Flowhub over `postMessage` transport. Requires `noflo-runtime-postmessage` module to be installed.\n\n### options.ide\nType: `String`\nDefault value: `https://app.flowhub.io`\n\nWhich IDE instance to use for live-mode debugging url.\n\n### Usage Examples\n\n#### A typical browser build\nIn this example we'll parse the `package.json` file, download the dependencies, and create the built file to the `dist` folder.\n\n```js\ngrunt.initConfig({\n  noflo_browser: {\n    options: {},\n    build: {\n      files: {\n        'dist/noflo.js': ['package.json'],\n      },\n    }\n  },\n});\n```\n\nThis generated file will provide a `window.require` function that can be used for loading NoFlo.\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoflo%2Fgrunt-noflo-browser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoflo%2Fgrunt-noflo-browser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoflo%2Fgrunt-noflo-browser/lists"}