Coder Social home page Coder Social logo

itb's Introduction

Сборщик шаблонов для InSales

  • Возможность переноса компонентов между проектами

  • Подключение плагинов/шрифтов простым переносом файлов в папку

  • Удобная работа с scss переменными

  • Встроенный insales-uploader

Установка

npm i itb -g

Для Mac и Linux не забывайте подставлять sudo

Работа с проектом

Нужно скачать содержимое репозитория.

Запустить команду itb b.

Содержимое собранной директории theme, завернуть в zip архив и загрузить себе в аккаунт.

Далее указываем в itb-config id темы и доступы к api.

Настройка готова, можно запускать itb w

Команды

Для справки доступных команд, введите в консоли itb -h.

Имя команды Назначение
init i
build b
watch w
setup s
create [components...] Создать компоненты
push p

Например

itb create logotype
itb b
itb w

Инициализация

В папке для проекта нужно выполнить команду

itb init

После данной команды будет создан файл настроек, в котором нужно указать настройки для InSales uploader

Назначение директорий

Имя директории Назначение
components Компоненеты которые будут включаться в шаблон
components/*/*.scss Стили которые собираются в theme.scss
components/*/ui.scss Стили которые собираются в ui.scss
components/*/plugins/*/* Js/css плагины
components/*/media медиа для компонентов
components/*/setup.json setup.json для компонента
scss_import/variables Переменные для scss
templates Шаблоны
fonts Шрифты
media Медиа файлы для шаблона
config Конфиги для темы
theme Директория темы
bundles Бандлы (css/js), содержимое директорий конкатенируется

Шрифты

Для генерации шрифтов с готовым файлом стилей хорошо подходит ресурс transfonter.

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.