Watch command.
This commit is contained in:
37
README.md
37
README.md
@ -10,33 +10,20 @@ Not another MP2 a.k.a MP3 done the right way.
|
||||
# Install.
|
||||
|
||||
- Clone the repo in wp-content/plugins.
|
||||
- Install PHP (OSX comes with it).
|
||||
- Install NodeJS.
|
||||
- Install system dependencies:
|
||||
PHP, NodeJS, PhantomJS.
|
||||
- Install composer.
|
||||
```sh
|
||||
$ curl -sS https://getcomposer.org/installer | php
|
||||
$ php composer.phar install
|
||||
```
|
||||
- Install dependencies.
|
||||
- Install PHP dependencies.
|
||||
```sh
|
||||
$ php composer.phar install
|
||||
```
|
||||
- Instal NPM
|
||||
- Instal JS dependencies
|
||||
```sh
|
||||
$ npm install npm -g
|
||||
```
|
||||
- Install Bower
|
||||
```
|
||||
$ npm install bower -g
|
||||
```
|
||||
- Install Stylus
|
||||
```sh
|
||||
$ npm install stylus -g
|
||||
```
|
||||
- Install Nib (Stylus extension)
|
||||
```sh
|
||||
$ npm install nib -g
|
||||
```
|
||||
$ npm install
|
||||
|
||||
# Structure.
|
||||
|
||||
@ -67,21 +54,11 @@ Kickstart file.
|
||||
Unit tests are in /tests/unit. You can just duplicate a Cest file and start testing. Methods available for testing come from Verify:
|
||||
https://github.com/Codeception/Verify
|
||||
```
|
||||
$ vendor/bin/codecept run
|
||||
$ ./do test:unit
|
||||
```
|
||||
|
||||
# Acceptance testing.
|
||||
|
||||
- Install PhantomJS:
|
||||
```
|
||||
$ brew|aptitude install phantomjs
|
||||
```
|
||||
|
||||
- Run PhantomJS:
|
||||
```
|
||||
$ phantomjs --webdriver=4444
|
||||
```
|
||||
|
||||
- Run a WordPress install at:
|
||||
```
|
||||
127.0.0.1:8888
|
||||
@ -89,7 +66,7 @@ $ phantomjs --webdriver=4444
|
||||
|
||||
- Run tests:
|
||||
```
|
||||
$ vendor/bin/codecept run
|
||||
$ ./do tes:acceptance
|
||||
```
|
||||
|
||||
# Stylus command
|
||||
|
@ -19,10 +19,14 @@ class RoboFile extends \Robo\Tasks {
|
||||
|
||||
function testAll() {
|
||||
$this
|
||||
->taskExec('phantomjs --webdriver=4444')
|
||||
->taskexec('phantomjs --webdriver=4444')
|
||||
->background()
|
||||
->run();
|
||||
sleep(2);
|
||||
$this->_exec('vendor/bin/codecept run');
|
||||
}
|
||||
|
||||
function watch() {
|
||||
$this->_exec('./node_modules/stylus/bin/stylus -u nib -w assets/css/src/admin.styl -o assets/css/');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user