Coder Social home page Coder Social logo

layout's Introduction

Boilerplate

Passo a passo

  1. Instalar o NodeJS.
  2. Instalar o Bower: npm install -g bower
  3. Instalar o GulpJS: npm install -g gulp
  4. Instalar as dependências do NodeJS: npm install
  5. Instalar as dependências do Bower: bower install
  6. Rodar gulp dev e começar a desenvolver.
  7. Acessar os arquivos através da URL http://localhost:6147

Problemas na UFRN

  • Na UFRN os computadores não tem o NodeJS instalado, então de preferência use um notebook ou uma máquina virtual.
  • Utilizando a rede da UFRN ao rodar o bower install ele tenta instalar algumas dependências utilizando a porta 22, que é bloqueado na UFRN. Existem duas soluções:
    • Baixar os arquivos do bower e colocar a pasta bower_components dentro da pasta application
    • Rodar o seguinte comando antes do bower install git config --global url."https://".insteadOf "git://"

ATENÇÃO

Colocar os assets na pasta assets, nunca diretamente na pasta application, senão eles serão sobreescritos pelo gulp. Se você tiver usando um computador da UFRN e não tiver o GulpJS. No próximo PR vou apagar a pasta assets para não haver esse problema.

Gulp Tasks

gulp dev - Compile CoffeeScript (application/scripts/src) to Javascript, compile SASS (application/css/src) to CSS, compress your images (application/img/src), starts a server and watch for changes.

gulp coffee:compile - Compile CoffeeScript from folder application/scripts/src.

gulp images:compress - Compress Images from folder application/images/src.

gulp sass:compile - Compile SASS from folder application/styles/src.

Application Directory

boilerplate
    |- application
    |----- images       # compressed images (or images you don't want to compress)
    |----- scripts      # compiled coffeescript (or vanilla javascript)
    |----- styles       # compiled sass (or vanilla css)
    |- assets
    |----- images       # images to be compressed
    |----- scripts      # coffescript to be compiled
    |----- styles       # scss files to be compiled

layout's People

Contributors

ferrl avatar adelinosegundo avatar jeansantana avatar igormarques avatar luizrogeriocn avatar wendellcmd avatar macario avatar matheus-cardoso-deel avatar wendellpbarreto avatar seuraul avatar victor2105 avatar carvemerson avatar pablobedoya avatar gabrielvasiljevic avatar lucasbibiano avatar isaacgithub avatar caiocesarms avatar ezequely avatar silastiago avatar

Watchers

James Cloos avatar Maychell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.