Compare commits
577 Commits
0.0.45
...
3.0.0-beta
Author | SHA1 | Date | |
---|---|---|---|
|
b90d7894ca | ||
|
a0b37eb08c | ||
|
44b83436bc | ||
|
0d75ee0e12 | ||
|
50d77f2aff | ||
|
cb813171ce | ||
|
3f188e3690 | ||
|
e74938df90 | ||
|
93f7739f46 | ||
|
a918091977 | ||
|
b539eae7f9 | ||
|
228a671749 | ||
|
70fe253db3 | ||
|
bdb97261fd | ||
|
8507c77699 | ||
|
771ff134a8 | ||
|
9c1cbba163 | ||
|
f51122b58f | ||
|
e8fd992235 | ||
|
e126278e32 | ||
|
9d2651083d | ||
|
1e1ae4c3cf | ||
|
385f5ab535 | ||
|
dc371d76ca | ||
|
be0c9b71d8 | ||
|
6e250d9317 | ||
|
afeaa00fc7 | ||
|
6575d1579d | ||
|
282199d362 | ||
|
3e5c46e8f3 | ||
|
71515f3ff0 | ||
|
934a8d5bf8 | ||
|
6be2464c86 | ||
|
ace8a52262 | ||
|
7d37d279cd | ||
|
5525a959a8 | ||
|
a421dbd674 | ||
|
bedfc4f80c | ||
|
af2a6b2559 | ||
|
cb8c32e171 | ||
|
8abec208fc | ||
|
5264cb1cf4 | ||
|
47e0e1a836 | ||
|
e602612cd6 | ||
|
9f7ae122e3 | ||
|
22caba31e3 | ||
|
82ab4acb8d | ||
|
9466be4793 | ||
|
a2e2090cbb | ||
|
d100d61403 | ||
|
d781ef6d01 | ||
|
1dafc4da04 | ||
|
063c271e40 | ||
|
a53007e30b | ||
|
c616b3299a | ||
|
86eab0d8f8 | ||
|
bfd35b1cdc | ||
|
461203279b | ||
|
b9c45b46ba | ||
|
1a42ae4cca | ||
|
f2ad7ee34c | ||
|
37017ef69d | ||
|
157725c300 | ||
|
98d6f55a6e | ||
|
425d45a862 | ||
|
438b4fb1ec | ||
|
1f91d40def | ||
|
c5e1def2f9 | ||
|
65ba834742 | ||
|
19dc048858 | ||
|
938279bf8f | ||
|
dd2df429ef | ||
|
c4e05912ff | ||
|
bb34e8477f | ||
|
32f7d7771f | ||
|
e77717c4c2 | ||
|
d27d5ae5dd | ||
|
168263f0ea | ||
|
f1ced11809 | ||
|
c2546e8aed | ||
|
b7ef191641 | ||
|
2220a13399 | ||
|
31ec7475c8 | ||
|
bfdc13a8d1 | ||
|
9a3c4ff7de | ||
|
25410eb09c | ||
|
122f88668a | ||
|
9c35eb9723 | ||
|
fa528ed1ff | ||
|
1a7623bc4a | ||
|
3a4a37e1af | ||
|
888a566dda | ||
|
3567779faf | ||
|
cb5b0bd753 | ||
|
88d0511adb | ||
|
a4a654cfd5 | ||
|
4d3c90ce0d | ||
|
f51aba4dbd | ||
|
f651c06cb9 | ||
|
940328c608 | ||
|
ce85600753 | ||
|
5666116645 | ||
|
815461a851 | ||
|
1102467e39 | ||
|
a5ee865271 | ||
|
59bda6cf6c | ||
|
a4d9d55b09 | ||
|
8cf918013d | ||
|
7789a10026 | ||
|
ce0ad33c32 | ||
|
63d1fe17a9 | ||
|
da92795635 | ||
|
915f8b5865 | ||
|
8ae939080b | ||
|
610f74343c | ||
|
4de03db125 | ||
|
f734d47b26 | ||
|
9e879d0539 | ||
|
ff6dffd626 | ||
|
efe187953c | ||
|
ab8a503a48 | ||
|
81d91188ac | ||
|
d3353b793f | ||
|
625f828cce | ||
|
c90dd94cf3 | ||
|
a851527ff5 | ||
|
76e292f494 | ||
|
ed886280de | ||
|
f3b2db48c4 | ||
|
b60c758281 | ||
|
b758284df7 | ||
|
c6d43099a1 | ||
|
fde283dd56 | ||
|
5800883416 | ||
|
39a6318105 | ||
|
4196d35e35 | ||
|
c0653ce26c | ||
|
131f12d19e | ||
|
3e734b5c44 | ||
|
76a41d53d6 | ||
|
43cb03105b | ||
|
3647f70daa | ||
|
5956a200ea | ||
|
449eb28b2a | ||
|
912fca0e73 | ||
|
a3f2c32a6d | ||
|
e175e63a7c | ||
|
bfe898aae8 | ||
|
099c2a390d | ||
|
8fe57ff57f | ||
|
6dc9f9d2ab | ||
|
5463dd10e2 | ||
|
b8c56623a6 | ||
|
a6b00e1ba7 | ||
|
aa0078e5e4 | ||
|
714f81d936 | ||
|
497c2fb595 | ||
|
c291fada74 | ||
|
e4166cecba | ||
|
3a1568a31d | ||
|
02a5de0cd6 | ||
|
f5dce907ff | ||
|
2692c7c7dd | ||
|
4cfe3c534c | ||
|
f8d78d87af | ||
|
3b6e06eccb | ||
|
09b2246186 | ||
|
af83b02129 | ||
|
093fd2f082 | ||
|
c24d8135aa | ||
|
41fdc3af13 | ||
|
ec9417d293 | ||
|
6eb78b5bf7 | ||
|
877e110188 | ||
|
e6d909da21 | ||
|
c26a3f704b | ||
|
9425e390c5 | ||
|
698cdecbfe | ||
|
d5a1d94bca | ||
|
4f37a44363 | ||
|
95f8f130ea | ||
|
fb29800c7d | ||
|
d2b41a5b90 | ||
|
71db3e569d | ||
|
9a8f028a01 | ||
|
2c5e73305a | ||
|
90e7026355 | ||
|
d63ab6a927 | ||
|
e5cf57e4f8 | ||
|
6beada63de | ||
|
6699b52184 | ||
|
c651a8bbe8 | ||
|
4a171dca2d | ||
|
f821a60a2c | ||
|
24a3866e2a | ||
|
fc54f31d3d | ||
|
616883ed63 | ||
|
b6ce513927 | ||
|
456152b5cb | ||
|
0be790971a | ||
|
e255484bc8 | ||
|
fc53aca31d | ||
|
31116a7cf6 | ||
|
ee0c824126 | ||
|
9ee66160ec | ||
|
bc91b12cf3 | ||
|
457c43cd77 | ||
|
949d6033d7 | ||
|
cad6391fc6 | ||
|
e5e5e7b426 | ||
|
9095482af2 | ||
|
9698cf2d2e | ||
|
707afc2ae0 | ||
|
3b795a3e58 | ||
|
062f849fc8 | ||
|
98c6c29716 | ||
|
b4da3ecfb3 | ||
|
709f45941a | ||
|
9ac4c3de72 | ||
|
eee22227b3 | ||
|
edcce542c3 | ||
|
a354a380ba | ||
|
54eb667654 | ||
|
10207112bc | ||
|
892eea238f | ||
|
e6bb1666ee | ||
|
2be9985d20 | ||
|
f4b7acca1e | ||
|
de9d3655f0 | ||
|
dfa13726e7 | ||
|
61ab583030 | ||
|
6954501915 | ||
|
45a8103322 | ||
|
c4896f4662 | ||
|
71711b4a0d | ||
|
2634b606f6 | ||
|
0aa48b9121 | ||
|
1157cc8b9a | ||
|
88599963e0 | ||
|
57706dc1b3 | ||
|
694402e9f2 | ||
|
891239bf4e | ||
|
232494e1a2 | ||
|
4ae55230da | ||
|
eda4a9edcc | ||
|
5fb699fd5b | ||
|
7c5e0212ad | ||
|
44a77e097b | ||
|
22fd9e31f7 | ||
|
bbe3d48ec1 | ||
|
449978d7c1 | ||
|
0535e1eaeb | ||
|
4dfe4e4997 | ||
|
33a184fc4a | ||
|
19b34ed838 | ||
|
ca17e0c4da | ||
|
347e491865 | ||
|
59b6877675 | ||
|
6728203672 | ||
|
058ba53622 | ||
|
8a1450d7d6 | ||
|
49f2b147be | ||
|
8f3b2e6c0b | ||
|
baf0d374ae | ||
|
465665271d | ||
|
663f39d749 | ||
|
62349900b9 | ||
|
9ccf2a9294 | ||
|
b2f662c1d5 | ||
|
43b23994a9 | ||
|
9708019ab6 | ||
|
8819d9154a | ||
|
5e23aacdca | ||
|
398109dcf7 | ||
|
b7c1594cf6 | ||
|
3d24f0c77b | ||
|
13001008c4 | ||
|
4b8caccb46 | ||
|
04ae6efaf6 | ||
|
98812834f6 | ||
|
732ea59e34 | ||
|
9b9e31fcc8 | ||
|
9b44becc7d | ||
|
82e153a2e8 | ||
|
dc981b23e4 | ||
|
eb3f872dc6 | ||
|
3f9b41f042 | ||
|
9e4762cbd7 | ||
|
249824b83c | ||
|
0b89a6d2ff | ||
|
b074b01b9f | ||
|
9a0bb52860 | ||
|
bf36deccb2 | ||
|
f77e24105d | ||
|
f90ba712ee | ||
|
c658778476 | ||
|
c221e52cc4 | ||
|
556803af5d | ||
|
5bc17f5e76 | ||
|
fe537a0445 | ||
|
08ec4e83c8 | ||
|
e72a8efbd4 | ||
|
c49d96d63a | ||
|
36b935b9ae | ||
|
f1985f7e81 | ||
|
8c14df6c1f | ||
|
181c0cab36 | ||
|
2a04c3c054 | ||
|
80efc3c12d | ||
|
8b96806b11 | ||
|
a2f7fbac33 | ||
|
981cb91a13 | ||
|
89545ba104 | ||
|
709b76d01e | ||
|
da2d6dd405 | ||
|
28f5375609 | ||
|
37a259f73b | ||
|
cdb3b94cbd | ||
|
72f696e834 | ||
|
57dff5ff00 | ||
|
90a0061233 | ||
|
2955b6d5a0 | ||
|
1d03482463 | ||
|
d1def923f8 | ||
|
8a278360f4 | ||
|
5d12de8ec0 | ||
|
daa36c833f | ||
|
a9e02f745f | ||
|
a04f5a2d25 | ||
|
71fbc1a7b0 | ||
|
677060491d | ||
|
03fec11947 | ||
|
a0817a1e97 | ||
|
1926b7ba29 | ||
|
aec6d241e8 | ||
|
75602be304 | ||
|
299c922cef | ||
|
29673d0799 | ||
|
7c236e6209 | ||
|
8e438e1819 | ||
|
0c8cc27ea2 | ||
|
6f49201393 | ||
|
7bf9e8b06e | ||
|
96eaafe012 | ||
|
9a82e718ce | ||
|
f9e4f3f584 | ||
|
d8b1be9ccc | ||
|
7c61fa2c81 | ||
|
0af99c771e | ||
|
c5488571be | ||
|
e0aeeb29d9 | ||
|
d5a9b84ca3 | ||
|
fd417d8d95 | ||
|
0291c3a9a0 | ||
|
fd6e6de547 | ||
|
bf54eeb345 | ||
|
697afcbeba | ||
|
5773fa7994 | ||
|
b59785c4b6 | ||
|
fbf9f6f902 | ||
|
adc232fc3f | ||
|
e3c1ff6c8c | ||
|
77edd93965 | ||
|
7d15c391ea | ||
|
8fb29e2418 | ||
|
b348c350c0 | ||
|
fbeddb8af2 | ||
|
54f6ab0c79 | ||
|
8c3525589c | ||
|
58f97ea43d | ||
|
8e4c3ea7ea | ||
|
3865a8e8cd | ||
|
02221f6833 | ||
|
b63ef8cca0 | ||
|
aabe71d473 | ||
|
1405249712 | ||
|
16ee5e934a | ||
|
74276b45c5 | ||
|
b046c9ea4b | ||
|
8bd7f5f169 | ||
|
ee119215c0 | ||
|
c22d3c8957 | ||
|
0dd7a3990f | ||
|
1a6b032943 | ||
|
1220f47d87 | ||
|
583b34a5c1 | ||
|
b36d13a087 | ||
|
1a3aa7a4e4 | ||
|
70a13a4774 | ||
|
6ce13df2f3 | ||
|
4eb85c5d7e | ||
|
6eb6636e8b | ||
|
9635fb5365 | ||
|
d4b39cb1f4 | ||
|
af36e7a0d9 | ||
|
1db8626e35 | ||
|
61c255564f | ||
|
7e5047d98f | ||
|
4698d5a4db | ||
|
864c9cbe95 | ||
|
011b6f9b3c | ||
|
e45fc0c0a0 | ||
|
6bebdd6e95 | ||
|
8df4da768a | ||
|
67f4c21aa8 | ||
|
5eba0e2731 | ||
|
3efa429a1b | ||
|
3a78441a83 | ||
|
c05be7d987 | ||
|
b8cb1da777 | ||
|
ac8d1d808f | ||
|
9cd7b1a204 | ||
|
0d32c09df3 | ||
|
9f288ae11a | ||
|
e87ccd6b92 | ||
|
8a2b6ac69b | ||
|
43bd2d4413 | ||
|
9fdb99a06b | ||
|
f3c69c8353 | ||
|
29a32d3da9 | ||
|
8412cc852d | ||
|
b4e4320508 | ||
|
dbd6e6f310 | ||
|
bdcb7f0e58 | ||
|
85c9b121f5 | ||
|
069bc95297 | ||
|
0b711e6341 | ||
|
2a961cca01 | ||
|
e855fdbbaf | ||
|
288464e8cb | ||
|
1331ed70f1 | ||
|
411188c345 | ||
|
ee275532b1 | ||
|
b2eef93516 | ||
|
40ca54c447 | ||
|
b65db1afbf | ||
|
c258b1c3a2 | ||
|
7a5a726400 | ||
|
e553922eca | ||
|
04e9e8a45d | ||
|
f037e1271d | ||
|
f4563e18cd | ||
|
feaac5eb54 | ||
|
a6059d5bc3 | ||
|
f2104ef30f | ||
|
e7f760328e | ||
|
c09bcd51ad | ||
|
01af4d3401 | ||
|
2ba9d95a2e | ||
|
b2d4bfc760 | ||
|
57f5f16bb6 | ||
|
7d2e13b9a3 | ||
|
6d39f9fa78 | ||
|
a4395f2350 | ||
|
411969b3eb | ||
|
1868ca3155 | ||
|
e765471f5d | ||
|
bdce7c5e5a | ||
|
773be9f5c8 | ||
|
6ae46b05e5 | ||
|
217894745d | ||
|
a03891895c | ||
|
3368e84a99 | ||
|
e90df2f08d | ||
|
2391ae1cad | ||
|
83114a8be4 | ||
|
d08d5a3b6c | ||
|
8330bfc884 | ||
|
ef21a8cca7 | ||
|
e32c46a755 | ||
|
092f69538a | ||
|
7a75367d75 | ||
|
0b2701ade2 | ||
|
1ac288d286 | ||
|
516bc73092 | ||
|
4088abef68 | ||
|
f6cefc3f5c | ||
|
202e4b90e1 | ||
|
ee89bf0722 | ||
|
876d21300a | ||
|
0ca5b7a79f | ||
|
5d0ee43921 | ||
|
cc523a3c0b | ||
|
2787998d32 | ||
|
38f6c95059 | ||
|
cc03b631ff | ||
|
a3c77fb685 | ||
|
3817e28960 | ||
|
c3a78b1ea3 | ||
|
42877236c8 | ||
|
6e87f3539c | ||
|
7704ea4b68 | ||
|
12a3931b7b | ||
|
25a55dbb67 | ||
|
6758f60a81 | ||
|
5e9e53ec41 | ||
|
1285252a8c | ||
|
98f95f72ad | ||
|
09ca788371 | ||
|
b48cc5a959 | ||
|
812d138c4e | ||
|
07bc35d4cd | ||
|
90b95a2c25 | ||
|
78c50c41e3 | ||
|
7eee7def63 | ||
|
9ba6e9806f | ||
|
8c28dc3d8a | ||
|
9197e39fb4 | ||
|
37f59814e5 | ||
|
bf894fc26f | ||
|
0b2b42cf4d | ||
|
542015a4f6 | ||
|
f5a8323f5d | ||
|
55942cd88b | ||
|
f26a2cbd26 | ||
|
4402f826c3 | ||
|
b9745b555a | ||
|
f923a8063b | ||
|
f4367b9146 | ||
|
a3395e41c9 | ||
|
be61135daf | ||
|
21b4187a11 | ||
|
1c3c1e35e7 | ||
|
ded373557e | ||
|
280c4762bb | ||
|
bbd02260be | ||
|
1b1e9abd68 | ||
|
b0ab9e0408 | ||
|
d32abff78d | ||
|
7fbf84db1f | ||
|
8c5aebc7d6 | ||
|
42202f676a | ||
|
ba6198f956 | ||
|
120af4170b | ||
|
1faa53b978 | ||
|
e565a7a234 | ||
|
90b6b57a8d | ||
|
548253d68e | ||
|
e1c5f609ff | ||
|
226befdef6 | ||
|
a9d57654b4 | ||
|
ed00ae0516 | ||
|
48d738e8c4 | ||
|
132b4ed2e8 | ||
|
9a513cb27b | ||
|
5d692c0395 | ||
|
991ab67fff | ||
|
dd00640119 | ||
|
fa04173cfb | ||
|
a328d3b48a | ||
|
d5cff4f0d3 | ||
|
52bf24b6db | ||
|
50e134d696 | ||
|
ea5c73721b | ||
|
4799882b80 | ||
|
2e4c5ca39a | ||
|
13ed3aa3b9 | ||
|
6091751a4b | ||
|
c4d9e85dff | ||
|
1a85914c1b | ||
|
0ba48234de | ||
|
1c2a532949 | ||
|
9087be6ee8 | ||
|
2fa5e5ead2 | ||
|
d5107be65e | ||
|
379dfb5f6e | ||
|
8360377992 | ||
|
4538cab6c8 | ||
|
1bf0988297 | ||
|
e1caf49ea5 | ||
|
0dfae97b32 | ||
|
ef2187c175 | ||
|
6157d17c5b | ||
|
8e879047c2 | ||
|
e11fd66fec | ||
|
b37e85eeb5 | ||
|
f88dabffe8 |
@@ -8,8 +8,7 @@ Listen 8080
|
||||
LogLevel notice
|
||||
|
||||
<Directory /home/ubuntu/mailpoet/wordpress>
|
||||
AllowOverride All
|
||||
Allow from All
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
|
||||
|
8
.circle_ci/fake-sendmail.rb
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/ruby
|
||||
path = "/tmp"
|
||||
Dir.mkdir(path) if !File.exists?(path)
|
||||
File.open("#{path}/mailpoet-#{Time.now.to_f}.txt", "w") do |f|
|
||||
sleep 5
|
||||
f.puts ARGV.inspect
|
||||
$stdin.each_line { |line| f.puts line }
|
||||
end
|
3
.circle_ci/mailpoet_php.ini
Normal file
@@ -0,0 +1,3 @@
|
||||
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
|
||||
; http://php.net/sendmail-path
|
||||
sendmail_path = /home/ubuntu/mailpoet/.circle_ci/fake-sendmail.rb
|
@@ -13,4 +13,6 @@ WP_TEST_MAILER_MAILPOET_API=""
|
||||
WP_TEST_MAILER_SENDGRID_API=""
|
||||
WP_TEST_MAILER_SMTP_HOST=""
|
||||
WP_TEST_MAILER_SMTP_LOGIN=""
|
||||
WP_TEST_MAILER_SMTP_PASSWORD=""
|
||||
WP_TEST_MAILER_SMTP_PASSWORD=""
|
||||
WP_SVN_USERNAME=""
|
||||
WP_SVN_PASSWORD=""
|
||||
|
2
.gitignore
vendored
@@ -17,3 +17,5 @@ tests/javascript/testBundles
|
||||
assets/css/*.css
|
||||
assets/js/*.js
|
||||
.vagrant
|
||||
lang
|
||||
.mp_svn
|
||||
|
17
README.md
@@ -128,3 +128,20 @@ _n()
|
||||
- Handlebars.
|
||||
|
||||
You can use Twig i18n functions in Handlebars, just load your template from a Twig view.
|
||||
|
||||
# Publish
|
||||
|
||||
Before you run a publishing command, you need to:
|
||||
1. Ensure there is an up-to-date local copy of MailPoet SVN repository in `.mp_svn` directory by running `./do svn:checkout`.
|
||||
2. Have all your features merged in Git `master`, your `mailpoet.php` and `readme.txt` tagged with a new version.
|
||||
3. Run `./build.sh` to produce a `mailpoet.zip` distributable archive.
|
||||
|
||||
Everything's ready? Then run `./do svn:publish`.
|
||||
If the job goes fine, you'll get a message like this:
|
||||
```
|
||||
Go to '.mp_svn' and run 'svn ci -m "Release 3.0.0-beta.9"' to publish the
|
||||
release
|
||||
```
|
||||
It's quite literal: you can review the changes to be pushed and if you're satisfied, run the suggested command to finish the release publishing process.
|
||||
|
||||
If you're confident, execute `./do svn:publish --force` and your release will be published to the remote SVN repository without manual intervention (automatically). For easier authentication you might want to set `WP_SVN_USERNAME` and `WP_SVN_PASSWORD` environment variables.
|
||||
|
163
RoboFile.php
@@ -3,14 +3,21 @@
|
||||
class RoboFile extends \Robo\Tasks {
|
||||
|
||||
function install() {
|
||||
$this->_exec('./composer.phar install');
|
||||
$this->_exec('npm install');
|
||||
return $this->taskExecStack()
|
||||
->stopOnFail()
|
||||
->exec('./composer.phar install')
|
||||
->exec('npm install')
|
||||
->run();
|
||||
}
|
||||
|
||||
function update() {
|
||||
$this->say(getenv('WP_TEST_URL'));
|
||||
$this->_exec('./composer.phar update');
|
||||
$this->_exec('npm update');
|
||||
|
||||
return $this->taskExecStack()
|
||||
->stopOnFail()
|
||||
->exec('./composer.phar update')
|
||||
->exec('npm update')
|
||||
->run();
|
||||
}
|
||||
|
||||
protected function rsearch($folder, $extensions = array()) {
|
||||
@@ -61,12 +68,14 @@ class RoboFile extends \Robo\Tasks {
|
||||
}
|
||||
|
||||
function compileAll() {
|
||||
$this->compileJs();
|
||||
$this->compileCss();
|
||||
$collection = $this->collectionBuilder();
|
||||
$collection->addCode(array($this, 'compileJs'));
|
||||
$collection->addCode(array($this, 'compileCss'));
|
||||
return $collection->run();
|
||||
}
|
||||
|
||||
function compileJs() {
|
||||
$this->_exec('./node_modules/webpack/bin/webpack.js');
|
||||
return $this->_exec('./node_modules/webpack/bin/webpack.js --bail');
|
||||
}
|
||||
|
||||
function compileCss() {
|
||||
@@ -78,7 +87,7 @@ class RoboFile extends \Robo\Tasks {
|
||||
'assets/css/src/importExport.styl'
|
||||
);
|
||||
|
||||
$this->_exec(join(' ', array(
|
||||
return $this->_exec(join(' ', array(
|
||||
'./node_modules/stylus/bin/stylus',
|
||||
'--include ./node_modules',
|
||||
'--include-css',
|
||||
@@ -89,16 +98,9 @@ class RoboFile extends \Robo\Tasks {
|
||||
}
|
||||
|
||||
function makepot() {
|
||||
$this->_exec('./node_modules/.bin/grunt makepot'.
|
||||
' --gruntfile '.__DIR__.'/tasks/makepot/makepot.js'.
|
||||
' --base_path '.__DIR__
|
||||
);
|
||||
}
|
||||
|
||||
function pushpot() {
|
||||
$this->_exec('./node_modules/.bin/grunt pushpot'.
|
||||
' --gruntfile '.__DIR__.'/tasks/makepot/makepot.js'.
|
||||
' --base_path '.__DIR__
|
||||
return $this->_exec('./node_modules/.bin/grunt makepot'.
|
||||
' --gruntfile='.__DIR__.'/tasks/makepot/makepot.js'.
|
||||
' --base_path='.__DIR__
|
||||
);
|
||||
}
|
||||
|
||||
@@ -152,22 +154,26 @@ class RoboFile extends \Robo\Tasks {
|
||||
function testDebug() {
|
||||
$this->_exec('vendor/bin/codecept build');
|
||||
$this->loadEnv();
|
||||
$this->_exec('vendor/bin/codecept run unit --debug');
|
||||
return $this->_exec('vendor/bin/codecept run unit --debug');
|
||||
}
|
||||
|
||||
function testFailed() {
|
||||
$this->loadEnv();
|
||||
$this->_exec('vendor/bin/codecept build');
|
||||
$this->_exec('vendor/bin/codecept run -g failed');
|
||||
return $this->_exec('vendor/bin/codecept run -g failed');
|
||||
}
|
||||
|
||||
function qa() {
|
||||
$this->qaLint();
|
||||
$this->qaCodeSniffer('all');
|
||||
$collection = $this->collectionBuilder();
|
||||
$collection->addCode(array($this, 'qaLint'));
|
||||
$collection->addCode(function() {
|
||||
return $this->qaCodeSniffer('all');
|
||||
});
|
||||
return $collection->run();
|
||||
}
|
||||
|
||||
function qaLint() {
|
||||
$this->_exec('./tasks/php_lint.sh lib/ tests/ mailpoet.php');
|
||||
return $this->_exec('./tasks/php_lint.sh lib/ tests/ mailpoet.php');
|
||||
}
|
||||
|
||||
function qaCodeSniffer($severity='errors') {
|
||||
@@ -176,18 +182,125 @@ class RoboFile extends \Robo\Tasks {
|
||||
} else {
|
||||
$severityFlag = '-n';
|
||||
}
|
||||
$this->_exec(
|
||||
return $this->_exec(
|
||||
'./vendor/bin/phpcs '.
|
||||
'--standard=./tasks/code_sniffer/MailPoet '.
|
||||
'--ignore=./lib/Util/Sudzy/*,./lib/Util/CSS.php,./lib/Util/XLSXWriter.php,'.
|
||||
'./lib/Config/PopulatorData/Templates/* '.
|
||||
'./lib/Util/pQuery/*,./lib/Config/PopulatorData/Templates/* '.
|
||||
'lib/ '.
|
||||
$severityFlag
|
||||
);
|
||||
}
|
||||
|
||||
function svnCheckout() {
|
||||
return $this->_exec('svn co https://plugins.svn.wordpress.org/mailpoet/ .mp_svn');
|
||||
}
|
||||
|
||||
function svnPublish($opts = ['force' => false]) {
|
||||
$this->loadWPFunctions();
|
||||
|
||||
$svn_dir = ".mp_svn";
|
||||
$plugin_data = get_plugin_data('mailpoet.php', false, false);
|
||||
$plugin_version = $plugin_data['Version'];
|
||||
$plugin_dist_name = sanitize_title_with_dashes($plugin_data['Name']);
|
||||
$plugin_dist_file = $plugin_dist_name . '.zip';
|
||||
|
||||
$this->say('Publishing version: ' . $plugin_version);
|
||||
|
||||
// Sanity checks
|
||||
if(!is_readable($plugin_dist_file)) {
|
||||
$this->say("Failed to access " . $plugin_dist_file);
|
||||
return;
|
||||
} elseif(!file_exists($svn_dir . "/.svn/")) {
|
||||
$this->say("$svn_dir/.svn/ dir not found, is it a SVN repository?");
|
||||
return;
|
||||
} elseif(file_exists($svn_dir . "/tags/" . $plugin_version)) {
|
||||
$this->say("A SVN tag already exists: " . $plugin_version);
|
||||
return;
|
||||
}
|
||||
|
||||
$collection = $this->collectionBuilder();
|
||||
|
||||
// Clean up tmp dirs if the previous run was halted
|
||||
if(file_exists("$svn_dir/trunk_new") || file_exists("$svn_dir/trunk_old")) {
|
||||
$collection->taskFileSystemStack()
|
||||
->stopOnFail()
|
||||
->remove(array("$svn_dir/trunk_new", "$svn_dir/trunk_old"));
|
||||
}
|
||||
|
||||
// Extract the distributable zip to tmp trunk dir
|
||||
$collection->taskExtract($plugin_dist_file)
|
||||
->to("$svn_dir/trunk_new")
|
||||
->preserveTopDirectory(false);
|
||||
|
||||
// Rename current trunk
|
||||
if(file_exists("$svn_dir/trunk")) {
|
||||
$collection->taskFileSystemStack()
|
||||
->rename("$svn_dir/trunk", "$svn_dir/trunk_old");
|
||||
}
|
||||
|
||||
// Replace old trunk with a new one
|
||||
$collection->taskFileSystemStack()
|
||||
->stopOnFail()
|
||||
->rename("$svn_dir/trunk_new", "$svn_dir/trunk")
|
||||
->remove("$svn_dir/trunk_old");
|
||||
|
||||
// Windows compatibility
|
||||
$awkCmd = '{print " --force \""$2"\""}';
|
||||
// Mac OS X compatibility
|
||||
$xargsFlag = (stripos(PHP_OS, 'Darwin') !== false) ? '' : '-r';
|
||||
|
||||
$collection->taskExecStack()
|
||||
->stopOnFail()
|
||||
// Set SVN repo as working directory
|
||||
->dir($svn_dir)
|
||||
// Remove files from SVN repo that have already been removed locally
|
||||
->exec("svn st | grep ^! | awk '$awkCmd' | xargs $xargsFlag svn rm")
|
||||
// Recursively add files to SVN that haven't been added yet
|
||||
->exec("svn add --force * --auto-props --parents --depth infinity -q")
|
||||
// Tag the release
|
||||
->exec("svn cp trunk tags/$plugin_version");
|
||||
|
||||
$result = $collection->run();
|
||||
|
||||
if($result->wasSuccessful()) {
|
||||
// Run or suggest release command depending on a flag
|
||||
$release_cmd = "svn ci -m \"Release $plugin_version\"";
|
||||
if(!empty($opts['force'])) {
|
||||
$svn_login = getenv('WP_SVN_USERNAME');
|
||||
$svn_password = getenv('WP_SVN_PASSWORD');
|
||||
if ($svn_login && $svn_password) {
|
||||
$release_cmd .= " --username $svn_login --password $svn_password";
|
||||
} else {
|
||||
$release_cmd .= ' --force-interactive';
|
||||
}
|
||||
$result = $this->taskExecStack()
|
||||
->stopOnFail()
|
||||
->dir($svn_dir)
|
||||
->exec($release_cmd)
|
||||
->run();
|
||||
} else {
|
||||
$this->yell(
|
||||
"Go to '$svn_dir' and run '$release_cmd' to publish the release"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
protected function loadEnv() {
|
||||
$dotenv = new Dotenv\Dotenv(__DIR__);
|
||||
$dotenv->load();
|
||||
}
|
||||
|
||||
protected function loadWPFunctions() {
|
||||
$this->loadEnv();
|
||||
define('ABSPATH', getenv('WP_TEST_PATH') . '/');
|
||||
define('WPINC', 'wp-includes');
|
||||
require_once(ABSPATH . WPINC . '/functions.php');
|
||||
require_once(ABSPATH . WPINC . '/formatting.php');
|
||||
require_once(ABSPATH . WPINC . '/plugin.php');
|
||||
require_once(ABSPATH . 'wp-admin/includes/plugin.php');
|
||||
}
|
||||
}
|
||||
|
@@ -1,3 +1,15 @@
|
||||
$box-width = 425px
|
||||
$box-height = 150px
|
||||
$thumbnail-width = $box-height
|
||||
$thumbnail-height = $thumbnail-width
|
||||
$box-description-space-between-heading-and-paragraph = 5px
|
||||
$box-description-height = 110px
|
||||
$box-description-text-height = $box-description-height - $box-description-space-between-heading-and-paragraph
|
||||
$box-heading-line-height = $box-description-text-height / 4
|
||||
$box-heading-font-size = $box-heading-line-height * 5/7
|
||||
$box-description-line-height = $box-heading-line-height / 2
|
||||
$box-description-font-size = $box-description-line-height
|
||||
|
||||
.mailpoet_boxes.mailpoet_boxes_loading
|
||||
opacity: 0.2
|
||||
|
||||
@@ -6,8 +18,8 @@
|
||||
position: relative
|
||||
padding: 15px
|
||||
margin: 15px 25px 0 0
|
||||
width: 425px
|
||||
height: 150px
|
||||
width: $box-width
|
||||
height: $box-height
|
||||
border: 1px solid #dedede
|
||||
background-color: #fff
|
||||
|
||||
@@ -18,15 +30,15 @@
|
||||
background-position: center
|
||||
color: #222
|
||||
border: 1px solid #ccc
|
||||
width: 150px
|
||||
height: 150px
|
||||
width: $thumbnail-height
|
||||
height: $thumbnail-width
|
||||
margin-right: 15px
|
||||
float: left
|
||||
overflow: hidden
|
||||
position: relative
|
||||
|
||||
img
|
||||
min-width: 150px
|
||||
min-width: $thumbnail-width
|
||||
height: auto
|
||||
width: 110%
|
||||
position: relative
|
||||
@@ -60,20 +72,21 @@
|
||||
.mailpoet_boxes .mailpoet_description
|
||||
float:left
|
||||
width: 245px
|
||||
max-height: calc(115px - 2em)
|
||||
padding-bottom: 2em
|
||||
max-height: $box-description-height
|
||||
padding-bottom: 0
|
||||
overflow: hidden
|
||||
|
||||
h3
|
||||
margin: 0 0 0.7em 0
|
||||
margin: 0 0 $box-description-space-between-heading-and-paragraph 0
|
||||
overflow: hidden
|
||||
max-width: 210px
|
||||
line-height: 1.4em
|
||||
line-height: $box-heading-line-height
|
||||
font-size: $box-heading-font-size
|
||||
|
||||
p
|
||||
font-size: 13px
|
||||
line-height: 1.5
|
||||
margin: 1em 0
|
||||
font-size: $box-description-font-size
|
||||
line-height: $box-description-line-height
|
||||
margin: 0
|
||||
|
||||
.mailpoet_boxes .mailpoet_actions
|
||||
position: absolute
|
||||
|
@@ -9,12 +9,13 @@
|
||||
background: rgba(255, 255, 255, 0)
|
||||
transition: background .15s ease-out
|
||||
|
||||
&:hover
|
||||
.mailpoet_automated_latest_content_block:hover &
|
||||
background: rgba(255, 255, 255, 0.7)
|
||||
cursor: pointer
|
||||
|
||||
.mailpoet_automated_latest_content_block_posts
|
||||
overflow: auto
|
||||
pointer-events: none
|
||||
|
||||
& > .mailpoet_block
|
||||
width: 100%
|
||||
|
@@ -34,7 +34,7 @@ $block-text-line-height = $text-line-height
|
||||
position: relative
|
||||
line-height: $block-text-line-height
|
||||
|
||||
p, h1, h2, h3, h4, h5, h6
|
||||
h1, h2, h3, h4, h5, h6
|
||||
line-height: $block-text-line-height
|
||||
padding: 0
|
||||
margin: 0
|
||||
@@ -44,9 +44,15 @@ $block-text-line-height = $text-line-height
|
||||
h1, h2, h3, h4, h5, h6
|
||||
margin-bottom: 0.3em
|
||||
|
||||
p
|
||||
p:not(.mailpoet_wp_post)
|
||||
margin-top: 0
|
||||
margin-bottom: 0
|
||||
padding: 0
|
||||
margin: 0
|
||||
|
||||
p
|
||||
line-height: $block-text-line-height
|
||||
font-style: normal
|
||||
font-weight: normal
|
||||
|
||||
ul
|
||||
|
@@ -15,7 +15,7 @@
|
||||
padding 15px 15px 0 15px
|
||||
margin 0 25px 25px 0
|
||||
width 300px
|
||||
height 250px
|
||||
height 300px
|
||||
border 1px solid #dedede
|
||||
background-color #fff
|
||||
h3
|
||||
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 779 B |
BIN
assets/img/datepicker/animated-overlay.gif
Executable file → Normal file
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 985 B |
BIN
assets/img/datepicker/ui-bg_diagonals-thick_18_b81900_40x40.png
Executable file → Normal file
Before Width: | Height: | Size: 418 B After Width: | Height: | Size: 140 B |
BIN
assets/img/datepicker/ui-bg_diagonals-thick_20_666666_40x40.png
Executable file → Normal file
Before Width: | Height: | Size: 312 B After Width: | Height: | Size: 140 B |
BIN
assets/img/datepicker/ui-bg_flat_10_000000_40x100.png
Executable file → Normal file
Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 83 B |
BIN
assets/img/datepicker/ui-bg_glass_100_f6f6f6_1x400.png
Executable file → Normal file
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 85 B |
BIN
assets/img/datepicker/ui-bg_glass_100_fdf5ce_1x400.png
Executable file → Normal file
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 139 B |
BIN
assets/img/datepicker/ui-bg_glass_65_ffffff_1x400.png
Executable file → Normal file
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 74 B |
BIN
assets/img/datepicker/ui-bg_gloss-wave_35_f6a828_500x100.png
Executable file → Normal file
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
assets/img/datepicker/ui-bg_highlight-soft_100_eeeeee_1x100.png
Executable file → Normal file
Before Width: | Height: | Size: 278 B After Width: | Height: | Size: 79 B |
BIN
assets/img/datepicker/ui-bg_highlight-soft_75_ffe45c_1x100.png
Executable file → Normal file
Before Width: | Height: | Size: 328 B After Width: | Height: | Size: 161 B |
BIN
assets/img/datepicker/ui-icons_222222_256x240.png
Executable file → Normal file
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 3.8 KiB |
BIN
assets/img/datepicker/ui-icons_228ef1_256x240.png
Executable file → Normal file
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 3.8 KiB |
BIN
assets/img/datepicker/ui-icons_454545_256x240.png
Executable file → Normal file
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 3.7 KiB |
BIN
assets/img/datepicker/ui-icons_ef8c08_256x240.png
Executable file → Normal file
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 3.8 KiB |
BIN
assets/img/datepicker/ui-icons_ffd27a_256x240.png
Executable file → Normal file
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 3.8 KiB |
BIN
assets/img/datepicker/ui-icons_ffffff_256x240.png
Executable file → Normal file
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 925 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 1016 B After Width: | Height: | Size: 542 B |
Before Width: | Height: | Size: 767 B After Width: | Height: | Size: 423 B |
Before Width: | Height: | Size: 397 B After Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 735 B |
Before Width: | Height: | Size: 678 B After Width: | Height: | Size: 403 B |
Before Width: | Height: | Size: 634 B After Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 709 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 601 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 835 B |
Before Width: | Height: | Size: 683 B After Width: | Height: | Size: 434 B |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 435 B |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 400 B |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 706 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 603 B |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 832 B |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 433 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 909 B After Width: | Height: | Size: 460 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 687 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 524 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 527 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 687 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 718 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 566 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 662 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 751 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 552 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 776 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 848 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 471 B |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 753 B |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 522 B After Width: | Height: | Size: 335 B |
BIN
assets/img/post_notifications_template/ALC-widget-icon.png
Executable file → Normal file
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 2.4 KiB |
BIN
assets/img/post_notifications_template/settings-icon-highlight.png
Executable file → Normal file
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 178 KiB After Width: | Height: | Size: 143 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 124 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 303 KiB After Width: | Height: | Size: 262 KiB |
Before Width: | Height: | Size: 289 KiB After Width: | Height: | Size: 276 KiB |