codeblog
<a href="https://jarredsumner.com/codeblog-cli"> <img width="1236" alt="Untitled" src="https://user-images.githubusercontent.com/709451/58215499-023a3180-7caf-11e9-8509-7ab1321392f0.png"> </a>
Last updated 6 months ago by jarred .
MIT · Original npm · Tarball · package.json
$ cnpm install codeblog 
SYNC missed versions from official npm registry.

Codeblog CLI

Untitled

Read this on Codeblog

The Codeblog CLI lets you write React.js components and use them on Codeblog. When you publish a component on Codeblog, anyone else can use it immediately.

Code from your local development environment and debug/test it on https://codeblog.com/write. Codeblog will automatically reload your component as you edit it in your local text editor.

When you're ready to show it to other people, run codeblog publish and other people will be able to see and use your component.

Publishing components on Codeblog is a really easy way to make stuff and show people.

Installation

Before we get started, you'll need to you have Node.js (v8+) installed.

To install the CLI, run the following command in your terminal

npm install -g codeblog

codeblog new

codeblog new HelloCodeblog

After you enter a filename, this will create two files in the current directory:

  • HelloCodeblog.js

  • HelloCodeblog.package.js

The first file is your code. The second file is the metadata required for Codeblog to know how to use your component. You might not need to mess with the second file.

Immediately after creating the files, it will open the files in your text editor and then run codeblog dev for you, kicking off the development server.

codeblog dev

To launch the dev server, run this command:

codeblog dev

This launches a dev server with instant code reloading. You develop in your local code editor, and it shows up on https://codeblog.com/write.

Note: if you don't publish your components, they won't show up for anyone other than you.

codeblog publish

To publish your components, run this command:

codeblog publish HelloCodeblog

This will make your component show up on search and show your name as the author.

The source code for your component will be published on GitHub. For example, here's the source code for the code snippet component.

Current Tags

  • 3.3.2                                ...           latest (6 months ago)

80 Versions

  • 3.3.2                                ...           6 months ago
  • 3.3.1                                ...           7 months ago
  • 3.3.0                                ...           7 months ago
  • 3.2.10                                ...           7 months ago
  • 3.2.9                                ...           7 months ago
  • 3.2.8                                ...           7 months ago
  • 3.2.7                                ...           7 months ago
  • 3.2.6                                ...           7 months ago
  • 3.2.5                                ...           7 months ago
  • 3.2.4                                ...           7 months ago
  • 3.2.3                                ...           7 months ago
  • 3.2.2                                ...           7 months ago
  • 3.2.1                                ...           7 months ago
  • 3.2.0                                ...           7 months ago
  • 3.1.29                                ...           7 months ago
  • 3.1.28                                ...           7 months ago
  • 3.1.27                                ...           7 months ago
  • 3.1.26                                ...           7 months ago
  • 3.1.25                                ...           7 months ago
  • 3.1.24                                ...           7 months ago
  • 3.1.23                                ...           7 months ago
  • 3.1.22                                ...           7 months ago
  • 3.1.21                                ...           7 months ago
  • 3.1.20                                ...           7 months ago
  • 3.1.19                                ...           7 months ago
  • 3.1.18                                ...           7 months ago
  • 3.1.17                                ...           7 months ago
  • 3.1.16                                ...           7 months ago
  • 3.1.15                                ...           7 months ago
  • 3.1.14                                ...           7 months ago
  • 3.1.13                                ...           7 months ago
  • 3.1.12                                ...           7 months ago
  • 3.1.11                                ...           7 months ago
  • 3.1.10                                ...           7 months ago
  • 3.1.9                                ...           7 months ago
  • 3.1.8                                ...           7 months ago
  • 3.1.7                                ...           7 months ago
  • 3.1.6                                ...           7 months ago
  • 3.1.5                                ...           7 months ago
  • 3.1.4                                ...           7 months ago
  • 3.1.3                                ...           7 months ago
  • 3.1.2                                ...           7 months ago
  • 3.1.1                                ...           7 months ago
  • 3.1.0                                ...           7 months ago
  • 3.0.0                                ...           7 months ago
  • 2.4.0                                ...           8 months ago
  • 2.3.7                                ...           8 months ago
  • 2.3.6                                ...           8 months ago
  • 2.3.0                                ...           8 months ago
  • 2.2.1                                ...           8 months ago
  • 2.1.6                                ...           8 months ago
  • 2.1.5                                ...           8 months ago
  • 2.1.4                                ...           8 months ago
  • 2.1.3                                ...           8 months ago
  • 2.1.2                                ...           8 months ago
  • 2.1.1                                ...           8 months ago
  • 2.1.0                                ...           8 months ago
  • 2.0.10                                ...           8 months ago
  • 2.0.9                                ...           8 months ago
  • 2.0.8                                ...           8 months ago
  • 2.0.7                                ...           8 months ago
  • 2.0.6                                ...           8 months ago
  • 2.0.5                                ...           8 months ago
  • 2.0.4                                ...           8 months ago
  • 2.0.3                                ...           8 months ago
  • 2.0.0                                ...           8 months ago
  • 1.4.1                                ...           8 months ago
  • 1.3.2                                ...           9 months ago
  • 1.3.1                                ...           9 months ago
  • 1.3.0                                ...           9 months ago
  • 1.2.2                                ...           9 months ago
  • 1.2.0                                ...           9 months ago
  • 1.1.2                                ...           9 months ago
  • 1.1.1                                ...           9 months ago
  • 1.1.0                                ...           9 months ago
  • 1.0.4                                ...           9 months ago
  • 1.0.3                                ...           9 months ago
  • 1.0.2                                ...           9 months ago
  • 1.0.0                                ...           9 months ago
  • 0.0.1                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (11)
Dev Dependencies (89)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |