{"id":18106695,"url":"https://github.com/h8ngrydev4hire/scripting-webpack-plugin","last_synced_at":"2025-10-26T04:46:10.077Z","repository":{"id":258871839,"uuid":"875367527","full_name":"h8ngryDev4Hire/scripting-webpack-plugin","owner":"h8ngryDev4Hire","description":"A Simple Webpack Plugin Built in Typescript For running scripts during compilation.","archived":false,"fork":false,"pushed_at":"2024-10-27T17:03:06.000Z","size":8547,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T06:45:20.213Z","etag":null,"topics":["build-tool","cicd","compilation-apps","scripting","typescript","webpack"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/scripting-webpack-plugin","language":"TypeScript","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/h8ngryDev4Hire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2024-10-19T19:31:08.000Z","updated_at":"2025-01-02T01:24:05.000Z","dependencies_parsed_at":"2024-12-19T14:47:38.802Z","dependency_job_id":"47162abc-91e4-4ec0-98f2-129541ef21ef","html_url":"https://github.com/h8ngryDev4Hire/scripting-webpack-plugin","commit_stats":null,"previous_names":["h8ngrydev4hire/scripting-webpack-plugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h8ngryDev4Hire%2Fscripting-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h8ngryDev4Hire%2Fscripting-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h8ngryDev4Hire%2Fscripting-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h8ngryDev4Hire%2Fscripting-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h8ngryDev4Hire","download_url":"https://codeload.github.com/h8ngryDev4Hire/scripting-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445651,"owners_count":20939953,"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":["build-tool","cicd","compilation-apps","scripting","typescript","webpack"],"created_at":"2024-10-31T23:07:46.407Z","updated_at":"2025-10-26T04:46:05.045Z","avatar_url":"https://github.com/h8ngryDev4Hire.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scripting Webpack Plugin\n\nA simple webpack extension built in Typescript for running scripts during the emission phase in Webpack's compilation process. \n\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n\n## Features\n\n### Scripting Language Support: \n\nSupports running bash / python / js script files! simply declare what shell to execute your script in!\n\n### Event-based Execution\n\nSupports running scripts based on different compiler hook events. Currently support compiler hooks are as follows:\n\n- onShouldEmit (`compiler.hooks.shouldEmit`)\n- onEmit (`compiler.hooks.emit`)\n- onAfterEmit (`compiler.hooks.afterEmit`)\n\n\n## Installation\n\n### NPM Download \n\nTo install from npm, run the following cmds:\n\n```bash\nnpm i -D scripting-webpack-plugin\n```\n\nbegin using in your `webpack.config.js` file as so:\n\n```javascript\nconst ScriptingWebpackPlugin = require('scripting-webpack-plugin')\n```\n\n### Github Download\n\nTo install from github, run the following cmds:\n\n```bash\ngit clone \n```\n\nThen install the dependencies:\n\n```bash\nnpm i\n```\n\nYou can now compile your Typescript files by using:\n\n```bash\ntsc\n```\n\n## Usage\nA simple ScriptingWebpackPlugin configuration looks like the following: \n\n```javascript\nconst ScriptingWebpackPlugin = require('scripting-webpack-plugin')\n\n// ...\n// Your Webpack Configuration...\n// ...\n\n    plugins: [\n        new ScriptingWebpackPlugin({\n            scripts: {\n                onEmit: [{\n                    script: './scripts/build/chrome/build.sh',\n                    args: 'target=chrome'\n                },{\n                    shell: 'node',\n                    script: './scripts/build/chrome/crx.js'\n                }],\n                onShouldEmit: [{\n                    script: './scripts/performance/performance.sh',\n                    args: 'threshold=5000ms'\n                }]\n            },\n            shell: 'bash',\n            verbose: true\n        })\n    ]\n```\n\nyou can refer to the example `webpack.config.js` build file for more help!\n\n## Contributing\n\nWe welcome contributions to the project! Please read our [Contributing Guidelines](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh8ngrydev4hire%2Fscripting-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh8ngrydev4hire%2Fscripting-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh8ngrydev4hire%2Fscripting-webpack-plugin/lists"}