-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00fad3f
commit ec1eed9
Showing
255 changed files
with
2,422 additions
and
1,319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,116 +1,125 @@ | ||
module.exports = function( grunt ) { | ||
module.exports = function (grunt) { | ||
var pkg = grunt.file.readJSON("package.json"); | ||
|
||
var pkg = grunt.file.readJSON( 'package.json' ); | ||
console.log(pkg.title + " - " + pkg.version); | ||
|
||
console.log( pkg.title + ' - ' + pkg.version ); | ||
// Set files to include/exclude in a release. | ||
var distFiles = [ | ||
"**", | ||
"!bower_components/**", | ||
"!build/**", | ||
"!node_modules/**", | ||
"!vendor/bin/**", | ||
"!wordpress_org_assets/**", | ||
"!.editorconfig", | ||
"!.gitignore", | ||
"!.jshintrc", | ||
"!bower.json", | ||
"!composer.json", | ||
"!composer.lock", | ||
"!contributing.md", | ||
"!gruntfile.js", | ||
"!package.json", | ||
"!package-lock.json", | ||
"!readme.md", | ||
"!**/*~", | ||
]; | ||
|
||
// Set files to include/exclude in a release. | ||
var distFiles = [ | ||
'**', | ||
'!bower_components/**', | ||
'!build/**', | ||
'!node_modules/**', | ||
'!vendor/bin/**', | ||
'!wordpress_org_assets/**', | ||
'!.editorconfig', | ||
'!.gitignore', | ||
'!.jshintrc', | ||
'!bower.json', | ||
'!composer.json', | ||
'!composer.lock', | ||
'!contributing.md', | ||
'!gruntfile.js', | ||
'!package.json', | ||
'!package-lock.json', | ||
'!readme.md', | ||
'!**/*~' | ||
]; | ||
grunt.initConfig({ | ||
pkg: pkg, | ||
|
||
grunt.initConfig( { | ||
// Validates text domain. | ||
sed: { | ||
textDomain: { | ||
pattern: '"simple-pay"', | ||
replacement: '"stripe"', | ||
recursive: true, | ||
path: "includes/core/assets/js/dist", | ||
}, | ||
}, | ||
|
||
pkg: pkg, | ||
checktextdomain: { | ||
options: { | ||
text_domain: "stripe", | ||
correct_domain: true, | ||
keywords: [ | ||
"__:1,2d", | ||
"_e:1,2d", | ||
"_x:1,2c,3d", | ||
"esc_html__:1,2d", | ||
"esc_html_e:1,2d", | ||
"esc_html_x:1,2c,3d", | ||
"esc_attr__:1,2d", | ||
"esc_attr_e:1,2d", | ||
"esc_attr_x:1,2c,3d", | ||
"_ex:1,2c,3d", | ||
"_n:1,2,4d", | ||
"_nx:1,2,4c,5d", | ||
"_n_noop:1,2,3d", | ||
"_nx_noop:1,2,3c,4d", | ||
], | ||
}, | ||
files: { | ||
src: [ | ||
"includes/**/*.php", | ||
"includes/core/assets/js/dist/**.js", | ||
"views/**/*.php", | ||
"src/**/*.php", | ||
"stripe-checkout.php", | ||
"uninstall.php", | ||
], | ||
expand: true, | ||
}, | ||
}, | ||
|
||
// Validates text domain. | ||
checktextdomain: { | ||
options: { | ||
text_domain: 'stripe', | ||
correct_domain: true, | ||
keywords: [ | ||
'__:1,2d', | ||
'_e:1,2d', | ||
'_x:1,2c,3d', | ||
'esc_html__:1,2d', | ||
'esc_html_e:1,2d', | ||
'esc_html_x:1,2c,3d', | ||
'esc_attr__:1,2d', | ||
'esc_attr_e:1,2d', | ||
'esc_attr_x:1,2c,3d', | ||
'_ex:1,2c,3d', | ||
'_n:1,2,4d', | ||
'_nx:1,2,4c,5d', | ||
'_n_noop:1,2,3d', | ||
'_nx_noop:1,2,3c,4d' | ||
] | ||
}, | ||
files: { | ||
src: [ | ||
'includes/**/*.php', | ||
'views/**/*.php', | ||
'src/**/*.php', | ||
'stripe-checkout.php', | ||
'uninstall.php' | ||
], | ||
expand: true | ||
} | ||
}, | ||
// Adds/adjusts text domains. | ||
addtextdomain: { | ||
options: { | ||
textdomain: "stripe", | ||
}, | ||
target: { | ||
files: { | ||
src: ["includes/**/*.php", "stripe-checkout.php", "uninstall.php"], | ||
}, | ||
}, | ||
}, | ||
|
||
// Adds/adjusts text domains. | ||
addtextdomain: { | ||
options: { | ||
textdomain: 'stripe' | ||
}, | ||
target: { | ||
files: { | ||
src: [ | ||
'includes/**/*.php', | ||
'stripe-checkout.php', | ||
'uninstall.php' | ||
] | ||
} | ||
} | ||
}, | ||
// Wipe out build folder. | ||
clean: { | ||
build: ["build"], | ||
}, | ||
|
||
// Wipe out build folder. | ||
clean: { | ||
build: [ 'build' ] | ||
}, | ||
// Build the plugin zip file and place in build folder. | ||
compress: { | ||
main: { | ||
options: { | ||
mode: "zip", | ||
archive: "./build/stripe-<%= pkg.version %>.zip", | ||
}, | ||
expand: true, | ||
src: distFiles, | ||
dest: "/stripe", | ||
}, | ||
}, | ||
|
||
// Build the plugin zip file and place in build folder. | ||
compress: { | ||
main: { | ||
options: { | ||
mode: 'zip', | ||
archive: './build/stripe-<%= pkg.version %>.zip' | ||
}, | ||
expand: true, | ||
src: distFiles, | ||
dest: '/stripe' | ||
} | ||
}, | ||
// Copy files to build folder. | ||
copy: { | ||
main: { | ||
expand: true, | ||
src: distFiles, | ||
dest: "build/stripe", | ||
}, | ||
}, | ||
}); | ||
|
||
// Copy files to build folder. | ||
copy: { | ||
main: { | ||
expand: true, | ||
src: distFiles, | ||
dest: 'build/stripe' | ||
} | ||
}, | ||
} ); | ||
require("load-grunt-tasks")(grunt); | ||
|
||
require( 'load-grunt-tasks' )( grunt ); | ||
grunt.registerTask("build", [ | ||
"checktextdomain", | ||
"clean:build", | ||
"copy:main", | ||
"compress", | ||
]); | ||
|
||
grunt.registerTask( 'build', [ 'checktextdomain', 'clean:build', 'copy:main', 'compress' ] ); | ||
|
||
grunt.util.linefeed = '\n'; | ||
grunt.util.linefeed = "\n"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
includes/core/assets/js/dist/simpay-admin-dashboard-widget-report-css.asset.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php return array('dependencies' => array(), 'version' => '10e0c9aefff5d3a8302d317cb61bc427'); |
2 changes: 1 addition & 1 deletion
2
...min-dashboard-widget-report.min.asset.php → ...y-admin-dashboard-widget-report.asset.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => '0024d0220a1e13e29b7e2cc30458d3e4'); | ||
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => 'af7158193a243840baf147a2c1cd6f5e'); |
5 changes: 5 additions & 0 deletions
5
includes/core/assets/js/dist/simpay-admin-dashboard-widget-report.js
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
includes/core/assets/js/dist/simpay-admin-form-template-explorer-css.asset.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?php return array('dependencies' => array(), 'version' => 'f65ff075fab34cb49b6d582d31577036'); |
2 changes: 1 addition & 1 deletion
2
...dmin-form-template-explorer.min.asset.php → ...ay-admin-form-template-explorer.asset.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => '8fb0c2ee464e3ea4e3de4e92a8502b62'); | ||
<?php return array('dependencies' => array('lodash', 'wp-a11y', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-primitives', 'wp-url'), 'version' => '5dce049d9407deb8d0ff4624ab58bb21'); |
Oops, something went wrong.