Coder Social home page Coder Social logo

bb's Introduction

BB

Installation

Run in terminal

git clone https://github.com/tadatuta/bb.git
cd bb
npm i

Rebuild and start the server

npm start

Rebuild content

npm run build

Content

To generate static pages put markdown files into content/pages with lang.md suffixes (e.g. index.en.md).

To generate blog roll put markdowns into content/blog folder. You may use yaml header to set title and tags like this:

---
title: Post title
tags:
    - tag1
    - tag2
    - tag3
---

Open http://localhost:8080/ in browser to see the result.

bb's People

Contributors

awinogradov avatar tadatuta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bb's Issues

YAMLException: JS-YAML: incomplete explicit mapping pair

/Users/voischev/Projects/bb/node_modules/meta-marked/node_modules/js-yaml/lib/js-yaml/loader.js:149
  throw generateError(state, message);
        ^
YAMLException: JS-YAML: incomplete explicit mapping pair; a key node is missed at line 2, column 22:
    title: Новый bem.info: теперь на node.js и bemtree
                         ^

Build failed

Попробовал собрать проект, свалился.

Еще не разобрался, предположу, что некоторые места надо актуализировать.

@tadatuta уточни в каком направлении посмотреть актуализацию, чтобы я сильно в сторону не ушел, разбираясь со сборкой?

npm start

> [email protected] start /space/projects/Dokerware/Dokerware/tmp/bb
> npm run build && bem server


> [email protected] build /space/projects/Dokerware/Dokerware/tmp/bb
> enb make && node grab.js && node generate.js && cp desktop.bundles/index/index.min.css output/ && cp desktop.bundles/index/index.min.js output/

14:57:48.024 - build started
14:57:48.065 - [rebuild] [desktop.bundles/index/index.bemdecl.js] file-provider
14:57:48.181 - [rebuild] [desktop.bundles/index/index.levels] levels
14:57:48.186 - [isValid] [desktop.bundles/index/index.deps.js] deps
14:57:48.202 - [rebuild] [desktop.bundles/index/index.files] files
14:57:48.202 - [rebuild] [desktop.bundles/index/index.dirs] files
14:57:48.205 - [isValid] [desktop.bundles/index/index.bemhtml.bemdecl.js] deps-by-tech-to-bemdecl
14:57:48.206 - [isValid] [desktop.bundles/index/index.bemtree.js] bemtree
14:57:48.206 - [isValid] [desktop.bundles/index/index.css] stylus
14:57:48.207 - [isValid] [desktop.bundles/index/index.browser.js] browser-js
14:57:48.209 - [isValid] [desktop.bundles/index/index.bemhtml.deps.js] deps
14:57:48.218 - [isValid] [desktop.bundles/index/index.min.css] borschik
14:57:48.218 - [rebuild] [desktop.bundles/index/index.bemhtml.files] files
14:57:48.218 - [rebuild] [desktop.bundles/index/index.bemhtml.dirs] files
14:57:48.218 - [isValid] [desktop.bundles/index/index.browser.bemhtml.js] bemhtml
14:57:48.219 - [isValid] [desktop.bundles/index/index.js] file-merge
14:57:48.219 - [isValid] [desktop.bundles/index/index.min.js] borschik
14:57:48.220 - build finished - 1163ms
module.js:471
    throw err;
    ^

Error: Cannot find module './desktop.bundles/index/index.bemhtml.js'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/space/projects/Dokerware/Dokerware/tmp/bb/generate.js:4:66)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `enb make && node grab.js && node generate.js && cp desktop.bundles/index/index.min.css output/ && cp desktop.bundles/index/index.min.js output/`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ilyar/.npm/_logs/2017-08-19T11_57_48_751Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `npm run build && bem server`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ilyar/.npm/_logs/2017-08-19T11_57_48_772Z-debug.log

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.