{"id":16345411,"url":"https://github.com/unclechu/web-front-end-grunt-template","last_synced_at":"2025-11-07T14:30:30.301Z","repository":{"id":15435062,"uuid":"18167722","full_name":"unclechu/web-front-end-grunt-template","owner":"unclechu","description":"Template for new front-end projects.","archived":false,"fork":false,"pushed_at":"2014-10-15T02:09:31.000Z","size":726,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-27T22:20:53.090Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unclechu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-27T07:27:02.000Z","updated_at":"2014-09-24T19:13:58.000Z","dependencies_parsed_at":"2022-08-30T11:32:21.058Z","dependency_job_id":null,"html_url":"https://github.com/unclechu/web-front-end-grunt-template","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fweb-front-end-grunt-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fweb-front-end-grunt-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fweb-front-end-grunt-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fweb-front-end-grunt-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unclechu","download_url":"https://codeload.github.com/unclechu/web-front-end-grunt-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239533066,"owners_count":19654617,"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-10-11T00:31:37.970Z","updated_at":"2025-11-07T14:30:30.269Z","avatar_url":"https://github.com/unclechu.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"Web front-end template based on grunt\n=====================================\n\nTemplate for new front-end projects.\n\nUsage\n=====\n\nDeployment\n----------\n\n```bash\n$ ./deploy.sh\n```\n\nPut your deploy tasks to [_deploy](./_deploy/) directory.\n\nConfigutaion\n------------\n\nSee for key \"grunt\" in [package.json](./package.json)\n\n```json\n\"grunt\": {\n  \"styles\": [\n    {\n      \"path\": \"styles\",\n      \"files\": { \"build.css\": \"main.less\" }\n    }\n  ],\n  \"scripts\": [\n    {\n      \"path\": \"scripts\",\n      \"buildFile\": \"build.js\",\n      \"notAmdFiles\": [ \"*require*.js\" ],\n      \"amd\": true\n    }\n  ],\n  \"jshint\": {\n    \"development\": true,\n    \"production\": true\n  },\n  \"sprites\": {\n    \"icons\": {\n      \"src\": [ \"icons/*\" ],\n      \"css\": \"styles/src/icons/icons.less\",\n      \"sprite\": \"images/icons_sprite.png\"\n    }\n  }\n}\n```\n\n\"amd\" flag for AMD style of js-modules ([RequireJS](http://requirejs.org/))\n\nCommands\n--------\n\nBuild all (styles and scripts) for production:\n\n```bash\n$ ./grunt\n```\n\nOr:\n\n```bash\n$ ./grunt production\n```\n\nDevelopment build (styles and scripts):\n\n```bash\n$ ./grunt build\n```\n\nOr:\n\n```bash\n$ ./grunt development\n```\n\nDevelopment build (only styles):\n\n```bash\n$ ./grunt build-less\n```\n\nDevelopment build (only scripts):\n\n```bash\n$ ./grunt build-js\n```\n\nGenerating sprites\n\n```bash\n$ ./grunt gen-sprites\n```\n\nCleanup all builded files:\n\n```bash\n$ ./grunt clean\n```\n\nCleanup only styles builds:\n\n```bash\n$ ./grunt clean-less\n```\n\nCleanup only scripts builds:\n\n```bash\n$ ./grunt clean-js\n```\n\nCleanup sprites:\n\n```bash\n$ ./grunt clean-sprites\n```\n\nCleanup initialization:\n\n```bash\n$ ./grunt distclean\n```\n\nWatch for any changes (in styles and in scripts) and rebuilding:\n\n```bash\n$ ./grunt watcher\n```\n\nWatch for changes in styles only and rebuilding:\n\n```bash\n$ ./grunt watcher-less\n```\n\nWatch for changes in scripts only and rebuilding:\n\n```bash\n$ ./grunt watcher-js\n```\n\nPreprocessing\n-------------\n\nCreate file `preprocess_context.json` in scripts sources directory with context to preprocessing. See for details: https://github.com/jsoverson/grunt-preprocess\n\nScripts load order\n------------------\n\n1. libs\n2. src\n\nIf you need to specific load order, just name your scripts with number prefixes:\n\n1. libs/10-jquery.js\n2. libs/20-jquery.mousewheel.plugin.js\n3. src/10-main.js\n4. src/20-header.js\n5. src/30-forms.js\n\nFor AMD style you need only require.js at first:\n\n1. libs/10-require.js\n2. libs/jquery.js\n3. libs/jquery.mousewheel.plugin.js\n4. src/main.js\n5. src/header.js\n6. src/forms.js\n\nIssues\n======\n\nhttps://github.com/unclechu/grunt-project-templates/issues\n\nAuthor\n======\n\nViacheslav Lotsmanov\n\nLicense\n=======\n\n[GNU/GPLv3](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funclechu%2Fweb-front-end-grunt-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funclechu%2Fweb-front-end-grunt-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funclechu%2Fweb-front-end-grunt-template/lists"}