Code Monkey home page Code Monkey logo

vtex-boilerplate's Introduction

Vtex Boilerplate

A scaffold for a quick Vtex e-commerce platform development.


Structure:

WARNING: NEVER CHANGE OR DELETE FILES (except under assets/scss/custom) IN THIS STRUCTURE!!!

  • src/: The main source files. Never upload the files under this folder.
    • subtemplates/: All the parts to be included in the templates must be stored here.
    • templates/: All the main templates must be stored here.
    • package.json: A config file for npm. If needed, be careful to touch on this file!
    • Gruntfile.js: The automated script to compile, compress and optimize all files. If needed, be careful to touch on this file!
    • assets/: All the scss, css, javascript, coffeescript and image files must be stored here.
      • _x-sprite.scss: Generated by Grunt, don't modify this file, otherwise you will lose all your modifications.
      • css/: Non compiled css, usually for the legacy files.
      • coffeescript/: Compile with Coffeescript/Grunt.
      • scss/: The scss files which will be compiled by Compass/Grunt.
        • ** vtex/**: Vtex generated styles. If you need to change the vtex generated class attributes fell free. NEVER delete the files under this folder.
        • custom/:Yout custom styles, which should be included in the other files.
        • config/: The config files for your custom and "x-.." files.
      • img/: Image files.
      • js/: Non compiled javascript, usually for the legacy files.

  • build/: This is a generated folder by Grunt and these are the file which should be used to deploy (uploaded to server).

Grunt Tasks

- Default (grunt):

Start watching src/ files to recompile SCSS, recompile Coffeescript, optimize images, minify assets file, regenerate Docs and start a localhost webserver on 8080 port.

- Generate/Update docs (grunt doc):

Generate/update "docs/" folder.

- Tests (grunt test):

Run QA html tests to check the required classes and elements exist.


Suggestions, contributions or bugs

Feel free to add an issue here or send me a pull request.

You can also fork at github.com.


Download

vtex-boilerplate's People

Contributors

crazydevil0 avatar gitter-badger avatar ricardodantas avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.