Skip to content

Commit 0d2b29e

Browse files
author
Chris Hutchinson
authored
Merge pull request #60 from times/feature/yeoman
Add details of Yeoman generator
2 parents ce989a4 + 9560d4e commit 0d2b29e

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,16 @@ Additionally, a base class allows you to create your own renderers. See more in
1919
`$ npm install cardkit --save`
2020

2121

22-
## Running locally
23-
24-
To run a sample UI locally, run: `$ npm start`
25-
26-
You can optionally pass a port like so: `$ npm start -- --port=8080`
27-
22+
## Usage
2823

29-
## Configuring
24+
CardKit 2 requires a configuration object in order to render an image. Each renderer (CardKitDOM and CardKitServer) uses this configuration and converts it into an output. Below are simple implementations for CardKit depending on your use case.
3025

31-
See the Wiki for all the available options for your configuration.
26+
In addition to these, you may also want to try the [CardKit Yeoman Generator](https://www.github.com/times/generator-cardkit), which can help you scaffold an entire project in just a few moments. It brings with it the latest version of CardKit, a recommended directory structure, and a build process that helps you get your CardKit project deployed.
3227

28+
#### Yeoman generator
3329

34-
## Usage
30+
$ npm install -g yo generator-cardkit
31+
$ yo cardkit
3532

3633
#### Browser with Webpack / Browserify usage
3734

@@ -230,6 +227,13 @@ CardKit allows you to load in custom fonts for use on your cards, see the Wiki f
230227
Upgrading from v1.x to v2 should be a fairly straightforward process if you haven't made any major modifications to the v1.x user interface. Your configuration object from v1.x should be compatible with v2 with a few minor tweaks. Specific variations are available in the Wiki.
231228

232229

230+
## Running locally
231+
232+
To run a sample UI locally, run: `$ npm start`
233+
234+
You can optionally pass a port like so: `$ npm start -- --port=8080`
235+
236+
233237
## Tests
234238

235239
To trigger the test suite, run `$ npm run test`

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cardkit",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "A simple, powerful and fully configurable image editor for web browsers and servers. Optional UI included.",
55
"main": "cardkit.js",
66
"homepage": "https://times.github.io/cardkit",
@@ -68,6 +68,6 @@
6868
"react-color": "^2.3.2",
6969
"react-dom": "^15.3.2",
7070
"rvg.js": "^1.0.5",
71-
"svg2png": "^4.0.0"
71+
"svg2png": "4.0.0"
7272
}
7373
}

0 commit comments

Comments
 (0)