-
Notifications
You must be signed in to change notification settings - Fork 22
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
d342ad1
commit 6c3273a
Showing
10 changed files
with
805 additions
and
4,348 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.* | ||
.*/ | ||
*.zip | ||
*.lock | ||
bin/ | ||
build/ | ||
CHANGELOG.txt | ||
composer.* | ||
Gruntfile.js | ||
webpack.config.js | ||
vendor/ | ||
node_modules/ | ||
none | ||
package-lock.json | ||
package.json | ||
phpcs.xml |
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,28 @@ | ||
name: Build release asset | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
build: | ||
name: Build release asset | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set env | ||
id: vars | ||
run: echo ::set-output name=tag::${GITHUB_REF:10} | ||
- name: Build | ||
id: build | ||
uses: wpeverest/action-build@master | ||
with: | ||
generate-zip: true | ||
- name: Upload release asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ${{ steps.build.outputs.zip_path }} | ||
asset_name: ${{ github.event.repository.name }}.zip | ||
asset_content_type: application/zip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,58 +153,6 @@ module.exports = function( grunt ){ | |
} | ||
}, | ||
|
||
// Generate POT files. | ||
makepot: { | ||
options: { | ||
type: 'wp-plugin', | ||
domainPath: 'languages', | ||
potHeaders: { | ||
'report-msgid-bugs-to': '[email protected]', | ||
'language-team': 'LANGUAGE <EMAIL@ADDRESS>' | ||
} | ||
}, | ||
dist: { | ||
options: { | ||
potFilename: 'user-registration.pot', | ||
exclude: [ | ||
'vendor/.*' | ||
] | ||
} | ||
} | ||
}, | ||
|
||
// Check textdomain errors. | ||
checktextdomain: { | ||
options: { | ||
text_domain: 'user-registration', | ||
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: [ | ||
'**/*.php', // Include all files | ||
'!includes/libraries/**', // Exclude libraries/ | ||
'!node_modules/**', // Exclude node_modules/ | ||
'!vendor/**' // Exclude vendor/ | ||
], | ||
expand: true | ||
} | ||
}, | ||
|
||
// PHP Code Sniffer. | ||
phpcs: { | ||
options: { | ||
|
@@ -273,8 +221,6 @@ module.exports = function( grunt ){ | |
grunt.loadNpmTasks( 'grunt-rtlcss' ); | ||
grunt.loadNpmTasks( 'grunt-postcss' ); | ||
grunt.loadNpmTasks( 'grunt-stylelint' ); | ||
grunt.loadNpmTasks( 'grunt-wp-i18n' ); | ||
grunt.loadNpmTasks( 'grunt-checktextdomain' ); | ||
grunt.loadNpmTasks( 'grunt-contrib-jshint' ); | ||
grunt.loadNpmTasks( 'grunt-contrib-uglify' ); | ||
grunt.loadNpmTasks( 'grunt-contrib-cssmin' ); | ||
|
@@ -284,9 +230,7 @@ module.exports = function( grunt ){ | |
|
||
// Register tasks. | ||
grunt.registerTask( 'default', [ | ||
'js', | ||
'css', | ||
'i18n' | ||
'uglify' | ||
]); | ||
|
||
grunt.registerTask( 'js', [ | ||
|
@@ -308,11 +252,6 @@ module.exports = function( grunt ){ | |
'default' | ||
]); | ||
|
||
grunt.registerTask( 'i18n', [ | ||
'checktextdomain', | ||
'makepot' | ||
]); | ||
|
||
grunt.registerTask( 'zip', [ | ||
'dev', | ||
'compress' | ||
|
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
Oops, something went wrong.