mirror of
https://github.com/Mibew/mibew_slack.git
synced 2025-03-14 09:44:08 +03:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
deaa955489 | |||
65680cb515 | |||
ce30efb1dd | |||
a66590c0e7 |
24
.gitignore
vendored
24
.gitignore
vendored
@ -1,13 +1,13 @@
|
|||||||
# Do not index node.js modules that are used for building
|
# Do not index node.js modules that are used for building
|
||||||
node_modules
|
node_modules
|
||||||
|
package-lock.json
|
||||||
# Do not index releases
|
|
||||||
release
|
|
||||||
|
|
||||||
# Do not include composer products
|
|
||||||
vendor/
|
|
||||||
|
|
||||||
# Do not index composer files
|
|
||||||
composer.phar
|
|
||||||
composer.lock
|
|
||||||
|
|
||||||
|
# Do not index releases
|
||||||
|
release
|
||||||
|
|
||||||
|
# Do not include composer products
|
||||||
|
vendor/
|
||||||
|
|
||||||
|
# Do not index composer files
|
||||||
|
composer.phar
|
||||||
|
composer.lock
|
||||||
|
@ -60,7 +60,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns pluing's version.
|
* Returns plugin's version.
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
@ -5,7 +5,7 @@ Provides Slack notifications when initiate a chat
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
1. Get the archive with the plugin sources. At the moment the only option is to build the plugin from sources or grab it from the zip file.
|
1. Get the archive with the plugin sources. You can download it from the [official site](https://mibew.org/plugins#mibew-slack) or build the plugin from sources.
|
||||||
|
|
||||||
2. Untar/unzip the plugin's archive.
|
2. Untar/unzip the plugin's archive.
|
||||||
|
|
||||||
|
14
gulpfile.js
14
gulpfile.js
@ -43,18 +43,18 @@ gulp.task('get-composer', function(callback) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Install Composer dependencies excluding development ones
|
// Install Composer dependencies excluding development ones
|
||||||
gulp.task('composer-install', ['get-composer'], function(callback) {
|
gulp.task('composer-install', gulp.series('get-composer', function(callback) {
|
||||||
exec(config.phpBin + ' composer.phar install --no-dev', function(error, stdout, stderr) {
|
exec(config.phpBin + ' composer.phar install --no-dev', function(error, stdout, stderr) {
|
||||||
callback(error ? stderr : null);
|
callback(error ? stderr : null);
|
||||||
});
|
});
|
||||||
});
|
}));
|
||||||
|
|
||||||
// Install all Composer dependencies
|
// Install all Composer dependencies
|
||||||
gulp.task('composer-install-dev', ['get-composer'], function(callback) {
|
gulp.task('composer-install-dev', gulp.series('get-composer', function(callback) {
|
||||||
exec(config.phpBin + ' composer.phar install', function(error, stdout, stderr) {
|
exec(config.phpBin + ' composer.phar install', function(error, stdout, stderr) {
|
||||||
callback(error ? stderr : null);
|
callback(error ? stderr : null);
|
||||||
});
|
});
|
||||||
});
|
}));
|
||||||
|
|
||||||
gulp.task('prepare-release', function() {
|
gulp.task('prepare-release', function() {
|
||||||
var version = require('./package.json').version;
|
var version = require('./package.json').version;
|
||||||
@ -66,14 +66,12 @@ gulp.task('prepare-release', function() {
|
|||||||
.pipe(tar('slack-' + version + '.tar'))
|
.pipe(tar('slack-' + version + '.tar'))
|
||||||
.pipe(gzip())
|
.pipe(gzip())
|
||||||
)
|
)
|
||||||
.pipe(chmod(644))
|
.pipe(chmod(0644))
|
||||||
.pipe(gulp.dest('release'));
|
.pipe(gulp.dest('release'));
|
||||||
});
|
});
|
||||||
|
|
||||||
// Builds and packs plugins sources
|
// Builds and packs plugins sources
|
||||||
gulp.task('default', ['composer-install','prepare-release'], function() {
|
gulp.task('default', gulp.series('composer-install','prepare-release'));
|
||||||
// The "default" task is just an alias for "prepare-release" task.
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns files stream with the plugin sources.
|
* Returns files stream with the plugin sources.
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"event-stream": "~3.1.7",
|
"event-stream": "~3.1.7",
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^4.0.0",
|
||||||
"gulp-chmod": "~1.2.0",
|
"gulp-chmod": "~3.0.0",
|
||||||
"gulp-composer": "*",
|
"gulp-composer": "*",
|
||||||
"gulp-gzip": "~0.0.8",
|
"gulp-gzip": "~0.0.8",
|
||||||
"gulp-rename": "~1.2.0",
|
"gulp-rename": "~1.2.0",
|
||||||
"gulp-tar": "~1.3.1",
|
"gulp-tar": "~3.1.0",
|
||||||
"gulp-util": "*",
|
"gulp-util": "*",
|
||||||
"gulp-zip": "~2.0.2"
|
"gulp-zip": "~2.0.2"
|
||||||
},
|
},
|
||||||
@ -15,7 +15,7 @@
|
|||||||
"description": "Provides Slack notifications when initiate a chat",
|
"description": "Provides Slack notifications when initiate a chat",
|
||||||
"main": "gulpfile.js",
|
"main": "gulpfile.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^4.0.0",
|
||||||
"graceful-fs": "^4.1.11"
|
"graceful-fs": "^4.1.11"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user