{"id":20850270,"url":"https://github.com/webchemistry/assets","last_synced_at":"2026-05-04T17:32:29.316Z","repository":{"id":62547399,"uuid":"51442812","full_name":"WebChemistry/assets","owner":"WebChemistry","description":"Configure css, js files in neon, yaml format and minify them with grunt.","archived":false,"fork":false,"pushed_at":"2018-08-30T07:53:34.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T06:11:12.846Z","etag":null,"topics":["css","js","minification","minifier","minifying-files","neon-files","yaml-files"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/WebChemistry.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":"2016-02-10T13:31:47.000Z","updated_at":"2024-02-21T15:13:15.000Z","dependencies_parsed_at":"2022-11-02T22:02:34.464Z","dependency_job_id":null,"html_url":"https://github.com/WebChemistry/assets","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebChemistry%2Fassets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebChemistry%2Fassets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebChemistry%2Fassets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebChemistry%2Fassets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebChemistry","download_url":"https://codeload.github.com/WebChemistry/assets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243216002,"owners_count":20255290,"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":["css","js","minification","minifier","minifying-files","neon-files","yaml-files"],"created_at":"2024-11-18T03:08:44.250Z","updated_at":"2026-05-04T17:32:29.281Z","avatar_url":"https://github.com/WebChemistry.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Registration\n```neon\nextensions:\n\tassets: WebChemistry\\Assets\\DI\\AssetsExtension\n\t\nassets:\n\tresources:\n\t\t- %appDir%/assets.neon\n```\n\n## Assets config\nExample in app dir create assets.neon:\n```yaml\n## Front module\nfront:\n  css:\n    \"compiled/front.min.css\":\n      - \"css/*.css\"\n      - \"plugins/bootstrap/css/bootstrap.css\"\n      - \"plugins/forms/css/jquery.datetimepicker.css\"\n      - \"plugins/forms/css/selectize.css\"\n      - \"plugins/forms/css/selectize.default.css\"\n  js:\n    \"compiled/front.min.js\":\n      - \"plugins/nette/netteForms.js\"\n      - \"plugins/nette/nette.ajax.js\"\n      - \"plugins/nette/extensions/spinner.ajax.js\"\n      - \"plugins/jquery-nette-forms/libraries.js\"\n      - \"plugins/jquery-nette-forms/errors.js\"\n      - \"plugins/forms/js/inputmask.min.js\"\n      - \"plugins/forms/js/inputmask.regex.extensions.min.js\"\n      - \"plugins/forms/js/jquery.inputmask.min.js\"\n      - \"plugins/forms/js/jquery.datetimepicker.js\"\n      - \"plugins/forms/js/selectize.min.js\"\n      - \"plugins/bootstrap/js/bootstrap.js\"\n      - \"js/main.js\"\n    \"compiled/front.header.min.js\":\n      - \"plugins/jquery/jquery.min.js\"\n```\n\n## Presenter\n\n```php\n\nclass BasePresenter extends Nette\\Application\\UI\\Presenter {\n\n\tuse WebChemistry\\Assets\\TPresenter;\n\t\n}\n```\n\n## Template\n\n```html\n\u003chead\u003e\n\t{$assets-\u003egetCss('compiled/front.min.css')} \u003c!-- Debug mode: all css files, production: only minified --\u003e\n\t{$assets-\u003egetJs('compiled/front.head.min.js')}\n\u003c/head\u003e\n```\n\n## Grunt task\n\npackage.json\n```json\n{\n  \"name\": \"Project\",\n  \"version\": \"1.0.0\",\n  \"devDependencies\": {\n    \"grunt\": \"~0.4.5\",\n    \"grunt-contrib-cssmin\": \"~0.14.0\",\n    \"grunt-contrib-uglify\": \"~0.11.1\",\n    \"grunt-nette-assets\": \"~0.1.0\"\n  },\n  \"dependencies\": {}\n}\n```\n\nInstall:\n```\nnpm install\n```\n\nGruntfile.js:\n```js\nmodule.exports = function(grunt) {\n    grunt.config.init({\n        netteAssets: {\n            target: {\n                config: 'app/resource.neon',\n                basePath: 'www/'\n            }\n        }\n    });\n\n    grunt.loadNpmTasks('grunt-contrib-uglify');\n    grunt.loadNpmTasks('grunt-contrib-cssmin');\n    grunt.loadNpmTasks('grunt-nette-assets');\n\n    return grunt.registerTask('default', ['netteAssets', 'uglify', 'cssmin']);\n};\n```\n\nRun grunt:\n```\ngrunt\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebchemistry%2Fassets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebchemistry%2Fassets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebchemistry%2Fassets/lists"}