This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const gulp = require('gulp') | |
| const Builder = require('gulp-bem-bundle-builder') | |
| const bundler = require('gulp-bem-bundler-fs') | |
| const merge = require('merge2') | |
| const debug = require('gulp-debug') | |
| const babel = require('gulp-babel') | |
| const uglify = require('gulp-uglify') | |
| const gulpif = require('gulp-if') | |
| const concat = require('gulp-concat') | |
| const spawn = require('child_process').spawn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const gulp = require('gulp'); | |
| const Builder = require('gulp-bem-bundle-builder'); | |
| const bundler = require('gulp-bem-bundler-fs'); | |
| const nodemon = require('gulp-nodemon'); | |
| const merge = require('merge2'); | |
| const debug = require('gulp-debug'); | |
| const babel = require('gulp-babel'); | |
| const uglify = require('gulp-uglify'); | |
| const gulpif = require('gulp-if'); | |
| const concat = require('gulp-concat'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // bem/.tmpls/bemhtml.browser.js | |
| var BEMHTML; | |
| (function(global) { | |
| function buildBemXjst(__bem_xjst_libs__) { | |
| var exports = {}; | |
| <%= contents %> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| modules.define('router', | |
| ['store', 'store__router', 'router__routes', 'router-base', 'inherit', 'events', 'redux-watch'], | |
| (provide, store, storeRouter, routes, RouterBase, inherit, events, watch) => { | |
| const base = new RouterBase({routes: routes}); | |
| const _ = storeRouter.consts; | |
| const Router = inherit(events.Emitter, /** @lends Router.prototype */{ | |
| __constructor: function() { | |
| const w = watch(store.getState, 'router'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| modules.define('app', | |
| ['i-bem-dom', 'render', 'store', 'store-router', 'redux-watch'], | |
| function(provide, bemDom, render, store, router, watch) { | |
| provide(bemDom.declBlock(this.name, { | |
| onSetMod: { | |
| js: { | |
| 'inited': function() { | |
| setTimeout(() => this.setMod('showed'), 100); | |
| const w = watch(store.getState, 'router.app.handler'); | |
| this._unstore = store.subscribe(w(handler => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| itemType: 'area', | |
| name: 'Площадка 1' | |
| items: [ | |
| { | |
| itemType: 'object', | |
| name: 'Объект 1', | |
| currentState: { | |
| param1: 24, | |
| param2: 499, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var techs = { | |
| // essential | |
| fileProvider: require('enb/techs/file-provider'), | |
| fileMerge: require('enb/techs/file-merge'), | |
| // optimization | |
| borschik: require('enb-borschik/techs/borschik'), | |
| // css | |
| css: require('enb-css/techs/css'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var techs = { | |
| // essential | |
| fileProvider: require('enb/techs/file-provider'), | |
| fileMerge: require('enb/techs/file-merge'), | |
| // optimization | |
| borschik: require('enb-borschik/techs/borschik'), | |
| // css | |
| css: require('enb-css/techs/css'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| modules.define('auth', ['store', 'server-store'], | |
| (provide, store, server) => { | |
| const SET_TOKEN = 'AUTH/SET_TOKEN'; | |
| const SET_USER_DATA = 'AUTH/SET_USER_DATA'; | |
| const DESTROY = 'AUTH/DESTROY'; | |
| /** | |
| * Редьюсер для аутентификации пользователя | |
| * @param {object} state - prevent state | |
| * @param {object} action - action |