-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompilekit.php
More file actions
38 lines (35 loc) · 1.64 KB
/
Copy pathcompilekit.php
File metadata and controls
38 lines (35 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* Plugin Name: CompileKit - Tailwind CSS Compiler
* Description: Compile Tailwind CSS with a server-side compiler. Provides an admin UI, auto-compilation mode, and environment-aware output.
* Version: 3.0.3
* Author: Denis Stetsenko
* Author URI: https://github.com/DenisStetsenko/
* Plugin URI: https://github.com/DenisStetsenko/compilekit
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Requires at least: 6.0
* Tested up to: 7.0
* Requires PHP: 7.4
* Text Domain: compilekit
*/
if ( !defined( 'ABSPATH' ) ) {
exit;
}
define( 'COMPILEKIT_VERSION', '3.0.3' );
define( 'COMPILEKIT_PATH', plugin_dir_path( __FILE__ ) );
define( 'COMPILEKIT_URL', plugin_dir_url( __FILE__ ) );
define( 'COMPILEKIT_WORKER_THREADS_DEFAULT', 33 );
define( 'COMPILEKIT_CSS_SCAN_MAX_DEPTH', 3 );
define( 'COMPILEKIT_COMPILE_DEBOUNCE', 5 );
define( 'COMPILEKIT_STATUS_TTL', 30 );
// Transient keys.
// NOTE: uninstall.php runs in a separate process without these constants and mirrors these literal strings — keep both in sync.
define( 'COMPILEKIT_TRANSIENT_PREFLIGHT', 'compilekit_cli_preflight_ok' );
define( 'COMPILEKIT_TRANSIENT_CLI_VERSION', 'compilekit_standalone_cli_version' );
define( 'COMPILEKIT_TRANSIENT_NODE_VERSION', 'compilekit_tailwindcss_cli_version' );
define( 'COMPILEKIT_TRANSIENT_STATUS_PREFIX', 'compilekit_compilation_status_' );
require_once COMPILEKIT_PATH . 'includes/class-compilekit-helpers.php';
require_once COMPILEKIT_PATH . 'includes/class-compilekit-compiler.php';
require_once COMPILEKIT_PATH . 'includes/class-compilekit-environment.php';
require_once COMPILEKIT_PATH . 'admin/class-compilekit-admin.php';