Skip to content

Instantly share code, notes, and snippets.

@miukki
Last active April 4, 2018 03:56
Show Gist options
  • Save miukki/a534cd293e6984949695f1a749a63209 to your computer and use it in GitHub Desktop.
Save miukki/a534cd293e6984949695f1a749a63209 to your computer and use it in GitHub Desktop.
repo for ui assets
1. UI-assets-repo-sample provides builder-scripts for generating UI assets for projects.
2. Example command line
miukki@Anna-Ishmukhametovas-MacBook-Air:~/Sites/ui-assets-repo-sample$ PROJECT=lisa TARGET=desktop yarn run build
Desccription: PROJECT=[:project_name] TARGET=[:desktop,:mobile] this params help you init right script in GruntFile and generate scss(SASS) -> css
3. scss/main/:projectName.scss (e.g css/main/lisa.scss) is example config for one project.
I use processor called processhtml in gruntFile for generate scss assets for particular project .
3.1. Output is scss/compiled/*.scss . scss/compiled/main.scss - Compiled core based on bootstrap ui sass
4. assets/tmpls templates example
5. main purpouse of that sample repo:
5.1. show how to generate assets for each front-end.
5.2. run local-server, (look to GruntFile.js .. // runt.task.registerTask('connectServer' .. ) with template and assets for UI team. whose responsible to write css for each project
6. code samples look in repo: https://github.com/miukki/ui-assets-repo-sample
7. repo uses overcommit for run pre-commit tasks (overcommit_hooks/ ror files)
8. mobile UI example https://marvelapp.com/3iceag1/screen/38106381
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment