Skip to content

Commit 90d9a1d

Browse files
committed
gruntfile modifications
1 parent bfab232 commit 90d9a1d

File tree

2 files changed

+11
-24
lines changed

2 files changed

+11
-24
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ atlassian-ide-plugin.xml
99
com_crashlytics_export_strings.xml
1010
# NetBeans
1111
nbproject/private/
12-
build/
1312
nbbuild/
1413
dist/
1514
nbdist/
@@ -43,5 +42,6 @@ ehthumbs.db
4342
us.stackdump
4443

4544
### Builds ###
45+
build/
4646
svn/
4747
release/

Gruntfile.js

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,37 +24,23 @@ module.exports = function( grunt ) {
2424
pkg: pkg,
2525

2626
clean: {
27-
main: [
28-
// Clean directories before new build
29-
'svn/trunk',
30-
'release'
31-
]
27+
main: [ 'build' ]
3228
},
3329

34-
// Copy the plugin to a svn versioned build directory
30+
// Copy the plugin to build directory
3531
copy: {
36-
assets : {
37-
expand: true,
38-
src: 'assets/*.*',
39-
dest: 'svn/assets/'
40-
},
41-
tag: {
42-
expand: true,
43-
src: distFiles,
44-
dest: 'svn/tags/' + pkg.version + '/'
45-
},
46-
trunk: {
32+
main: {
4733
expand: true,
4834
src: distFiles,
49-
dest: 'svn/trunk'
35+
dest: 'build/wp-php-console'
5036
}
5137
},
5238

5339
compress: {
5440
main: {
5541
options: {
5642
mode: 'zip',
57-
archive: './release/wp-php-console.<%= pkg.version %>.zip'
43+
archive: './build/wp-php-console.<%= pkg.version %>.zip'
5844
},
5945
expand: true,
6046
src: distFiles,
@@ -66,11 +52,12 @@ module.exports = function( grunt ) {
6652
deploy: {
6753
options: {
6854
plugin_slug: 'wp-php-console',
69-
build_dir: 'svn/trunk',
70-
assets_dir: 'svn/assets'
55+
build_dir: 'build/wp-php-console',
56+
assets_dir: 'assets',
57+
svn_url: 'https://plugins.svn.wordpress.org/wp-php-console'
7158
}
7259
}
73-
},
60+
}
7461

7562
} );
7663

@@ -79,7 +66,7 @@ module.exports = function( grunt ) {
7966

8067
// Register tasks
8168

82-
grunt.registerTask( 'release', ['clean', 'copy:assets', 'copy:trunk', 'copy:tag', 'compress'] );
69+
grunt.registerTask( 'release', ['clean', 'copy', 'compress'] );
8370

8471
grunt.registerTask( 'deploy', ['release', 'wp_deploy'] );
8572

0 commit comments

Comments
 (0)