fourpixels / ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kirby Next: UI

Build Status Code Coverage Code Quality

Build Setup

# install dependencies
npm install

# prepare Kirby installation
cd kirby
composer install

# run fractal and webpack
cd ../
npm run start

# build for production with minification
npm run build

Troubleshooting

If installing Fractal fails, please try installing it globally.

Fractal

We use Clearleft's Fractal to develop and preview our UI components. After running fractal start --sync components can be viewed in your browser at: http://localhost:3000/

Development

To work on components, start webpack with npm run dev. Fractal will automatically watch for changes as well as webpack, so your component previews should automatically update.

Adding Components

When you add new components in Fractal, you also have to import them in the main.js and register them in Vue's components array.

Testing

Karma, PhantomJS are used as the test environment. The tests themselves are written with Jasmine.

The watcher will look for files ending with .spec.js inside of ./components/.

# to run the tests once
npm test

# to run the tests and watch the files
npm run test:watch

License

http://www.opensource.org/licenses/mit-license.php

Author

Bastian Allgeier bastian@getkirby.com http://getkirby.com http://twitter.com/getkirby

About

License:MIT License


Languages

Language:Vue 57.8%Language:JavaScript 20.3%Language:HTML 14.0%Language:PHP 7.0%Language:CSS 0.9%