{"action":"closed","issue":{"url":"https://api.github.com/repos/Zirkanyo/Foxy-Test/issues/2","repository_url":"https://api.github.com/repos/Zirkanyo/Foxy-Test","labels_url":"https://api.github.com/repos/Zirkanyo/Foxy-Test/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Zirkanyo/Foxy-Test/issues/2/comments","events_url":"https://api.github.com/repos/Zirkanyo/Foxy-Test/issues/2/events","html_url":"https://github.com/Zirkanyo/Foxy-Test/issues/2","id":304236612,"number":2,"title":"Compilar archivos finales con npm scripts","user":{"login":"miguelmich","id":662930,"avatar_url":"https://avatars2.githubusercontent.com/u/662930?v=4","gravatar_id":"","url":"https://api.github.com/users/miguelmich","html_url":"https://github.com/miguelmich","followers_url":"https://api.github.com/users/miguelmich/followers","following_url":"https://api.github.com/users/miguelmich/following{/other_user}","gists_url":"https://api.github.com/users/miguelmich/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelmich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelmich/subscriptions","organizations_url":"https://api.github.com/users/miguelmich/orgs","repos_url":"https://api.github.com/users/miguelmich/repos","events_url":"https://api.github.com/users/miguelmich/events{/privacy}","received_events_url":"https://api.github.com/users/miguelmich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-12T04:17:43Z","updated_at":"2018-03-16T01:28:26Z","closed_at":"2018-03-16T01:28:26Z","author_association":"NONE","body":"# Qué?\r\nActualmente si alguién clona este repo no hay manera de compilar los archivos fuentes para poder utilizarlo en producción, para esto se debe poder compilar el pug y el sass con **npm scripts** aquí te explican cómo hacerlo: https://scotch.io/tutorials/using-npm-as-a-build-tool#toc-boilerplate\r\n\r\nla idea sería crear dos comandos `npm start` para iniciar la tarea watch y \"vigilar\" los cambios en el directorio `src/sass/*.sass` y `npm run dist` para compilar tanto el CSS como el HTML final en el directorio `dist/`\r\n\r\nDe esta manera cualquier persona que clone este repo solo tendría que hacer:\r\n\r\n1. `npm install` para instalar las dependencias (node-sass, pug, etc...)\r\n2. `npm start` para iniciar la tarea watch, esperar por cambios en los archivos SASS y compilar el CSS en dist\r\n3. `npm run dist` pata compilar tanto el CSS como los archivos HTML"}}
{"actor":{"display_login":"miguelmich"}}