Code Monkey home page Code Monkey logo

website's Introduction

DERO official website source https://dero.io

Don´t modify content at dist folder directly. User src folder and Gulp:

1 --------------------

Install/Update NODE.js latest stable nodejs.org

  • All terminal from here on.
  • Move to project folder in terminal
  • run commands as sudo in case of error.

2 --------------------

Install Gulp JS (gulpjs.com)

npm install gulp-cli -g

npm install gulp -D

touch gulpfile.js

gulp --help

3 --------------------

  • Install all modules used in gulp.js (read below for individual install)

npm install npm-install-all -g

npm-install-all gulpfile.js (run this twice just in case)

4 --------------------

Run GULP $ gulp (run this twice if something fails 1st time. Check gulpfile.js for all available tasks)


Detailed explain:

The app uses the following modules in gulpfile.js :

-- inject partials to add html partials to index.html [https://www.npmjs.com/package/gulp-inject-partials] npm install gulp-inject-partials

-- Browser Sync to refresh browser when coding less, js, etc [https://www.browsersync.io/docs/gulp] npm install browser-sync gulp

-- plumber to use pipe and concat events [https://www.npmjs.com/package/gulp-plumber] npm install gulp-plumber

-- Less to compile less into css [https://www.npmjs.com/package/gulp-less] npm install gulp-less

-- cssmin o compress stylesheet [https://www.npmjs.com/package/gulp-cssmin] npm install gulp-cssmin

-- concat to unify js files into single one [https://www.npmjs.com/package/gulp-concat/] npm install gulp-concat

-- htmlmin to minify final html [https://www.npmjs.com/package/gulp-htmlmin] npm install gulp-htmlmin

-- cssmin to minify final css [https://www.npmjs.com/package/gulp-cssmin] npm install gulp-cssmin

-- asset version to version the assets for caching [https://www.npmjs.com/package/gulp-html-assets] npm install gulp-html-assets

The "dist" folder will be created. Everytime you modify a less, html or js, you should inmediatelly see the files go into dist folder minified.. also the browser will refresh whenever this files are modified

RUN GULP will compiles less and app.js. minify and run browser sync. gulp

To add new JS depencencies, libraries, etc. paste files into "./src/js/deps" then rund command gulp compile_js_deps

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.