Giter VIP home page Giter VIP logo

corona-challenge's Introduction

corona-challenge

Made by : Audric Skivée (BeCode@hamiltons 5.32)

slightly more complicated project, to learn advanced HTML/CSS, I've done it with :

  1. node-sass
  2. chart.js

if you want to use SASS and have an easy transpiler i'll explain how to set it up within your terminal (Linux, windows or macOs).

First thing first

install node.js, found it here
it will unlock the npm command.

Secondly

install node-sass with your terminal, write :

npm install -g node-sass

the -g flag indicates you're installing it for the whole device.

thirdly

with your terminal, go to your active directory, write :

cd /path/to/your/working/directory

Now that you're in right directory, you may start the transpiler, write :

node-sass sass/screen.scss css/screen.css -o --watch

I'll explain what the above does :

  1. node-sass : it calls the newly added package to your terminal.

  2. sass/screen.scss : this argument tells node-sass the directory from where it will fetch the data to "feed" the transpiler.

  3. css/screen.css : this argument tells node-sass the output directory, were the transpiled file will go when it's finished to transpile.

  4. -o : this flag will specify that the argument before this flag is an output directory, if ommited the output will be sent to stdout(?).

  5. --watch : this flag will make node-sass stay put and watch your files, and every time there is a modification, it will sees it.

now ?

you're all set, everytime you're gonna save/modify your screen.scss (or the files imported inside your screen.scss) it will transpile all your files into a .css file inside your /css directory.

/!\ Watch out, I showed you how I did it with the files named my way. If your files/directory have other names, modify your code accordingly, or just use the same tree as me.

Thanks my lads, now I'm gonne drink a cold one with the boïs!

corona-challenge's People

Contributors

madrickx avatar

Watchers

James Cloos avatar  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.