9af3977ff9134306a57180b64d4974f39c45d4f7
namp2
Not another MP2 a.k.a MP3 done the right way.
Requirements.
- PHP >=5.3.6 (production).
- PHP >=5.5 (dev).
Install.
- Clone the repo in wp-content/plugins.
- Install PHP (OSX comes with it).
- Install NodeJS.
- Install composer.
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
- Install dependencies.
$ php composer.phar install
- Instal NPM
$ npm install npm -g
- Install Stylus
$ npm install stylus -g
Structure.
-
/assets CSS and JS.
-
/lang Language files.
-
/lib MailPoet classes. All classes are autoloaded, under the MailPoet namespace.
namespace \MailPoet\Models;
class Subscriber {}
$subscriber = new \MailPoet\Models\Subscriber();
-
/tests Acceptance and spec tests.
-
/mailpoet.php Kickstart file.
Unit testing.
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
Acceptance testing.
You just need phantomjs installed. Tests are in /tests/acceptance. You can run tests with:
$ vendor/bin/codecept run
Stylus command
stylus -w assets/css/src/*.styl -o assets/css/
Description
5.12.4-pirate
Latest
Languages
PHP
73.2%
TypeScript
12.8%
JavaScript
7.7%
SCSS
2.5%
HTML
2%
Other
1.7%