{"id":21156033,"url":"https://github.com/itsmunim/grunt-simple-concat","last_synced_at":"2025-03-14T15:17:05.923Z","repository":{"id":35088544,"uuid":"205215680","full_name":"itsmunim/grunt-simple-concat","owner":"itsmunim","description":"Replace referenced JS file paths with one single JS in your HTML","archived":false,"fork":false,"pushed_at":"2022-07-20T16:02:52.000Z","size":95,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-23T04:04:40.826Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsmunim.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-29T17:25:28.000Z","updated_at":"2020-05-02T05:49:46.000Z","dependencies_parsed_at":"2022-08-08T05:00:40.057Z","dependency_job_id":null,"html_url":"https://github.com/itsmunim/grunt-simple-concat","commit_stats":null,"previous_names":["itsmunim/grunt-simple-concat","dibosh/grunt-simple-concat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmunim%2Fgrunt-simple-concat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmunim%2Fgrunt-simple-concat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmunim%2Fgrunt-simple-concat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsmunim%2Fgrunt-simple-concat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsmunim","download_url":"https://codeload.github.com/itsmunim/grunt-simple-concat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243597837,"owners_count":20316845,"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-11-20T11:34:43.128Z","updated_at":"2025-03-14T15:17:05.893Z","avatar_url":"https://github.com/itsmunim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## grunt-simple-concat\n\n### How to use\n\n#### Grunt Config\n\n```\nsimpleConcat: {\n  main: {\n    src: 'app/index.html',\n    cwd: './', // working dir relative(or absolute) path,\n    scriptsDir: 'scripts', // directory in dest path that should contain script files; optional\n    dest: 'dist'\n  }\n}\n```\n\n- Then just add `simple` tags with target name after `:` in your html. And enclose your script tags inside `simple` tags.\n\nExample-\n\n```\n\u003c!-- simple:vendor --\u003e\n\u003cscript src=\"node_modules/jquery/dist/jquery.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/angular/angular.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/bootstrap/dist/js/bootstrap.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/angular-animate/angular-animate.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/angular-cookies/angular-cookies.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/angular-messages/angular-messages.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/angular-resource/angular-resource.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/angular-route/angular-route.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/angular-sanitize/angular-sanitize.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/angular-touch/angular-touch.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/jquery-ui-dist/jquery-ui.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/ng-file-upload/dist/ng-file-upload.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/adal-angular/lib/adal.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/adal-angular/lib/adal-angular.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/moment/moment.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/underscore/underscore.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/ng-idle/angular-idle.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/ui-select/dist/select.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/select2/dist/js/select2.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/validate.js/validate.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/angular-ui-sortable/dist/sortable.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/chart.js/dist/Chart.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"node_modules/jquery-tokeninput/dist/js/jquery-tokeninput.min.js\"\u003e\u003c/script\u003e\n\u003c!-- endsimple --\u003e\n```\n\n- If the task is run, this will generate a `vendor.js` file in specified `dest` folder and your html will have all these replaced with single `script` tag with path for `vendor.js`\n\n#### Testing the Task\n\nA sample task config and setup is added in `testing/` folder. Simply create an `index.html` with similar kind of content as `index.example.html` as given in `app` folder. Then run `npm i` to install the dependencies and finally run `grunt`\n\n\nDon't forget to hit a star, if this saved your life by working in your legacy project!\nAlso, switch to `webpack` asap!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsmunim%2Fgrunt-simple-concat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsmunim%2Fgrunt-simple-concat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsmunim%2Fgrunt-simple-concat/lists"}