From 5ac475ede37fb3abf1cb6052c99cd28dfaa6d424 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Wed, 3 Aug 2016 11:49:52 +0300 Subject: [PATCH] up version 1.1.0 --- app/code/local/TM/Testimonials/etc/config.xml | 2 +- build/README.md | 7 -- build/composer.json | 1 - build/gulpfile.js | 96 ------------------- build/package.json | 11 --- composer.json | 2 - 6 files changed, 1 insertion(+), 118 deletions(-) delete mode 100644 build/README.md delete mode 100644 build/composer.json delete mode 100644 build/gulpfile.js delete mode 100644 build/package.json diff --git a/app/code/local/TM/Testimonials/etc/config.xml b/app/code/local/TM/Testimonials/etc/config.xml index 50e9167..cfe29c7 100644 --- a/app/code/local/TM/Testimonials/etc/config.xml +++ b/app/code/local/TM/Testimonials/etc/config.xml @@ -2,7 +2,7 @@ - 1.0.4 + 1.1.0 diff --git a/build/README.md b/build/README.md deleted file mode 100644 index 4c65c5a..0000000 --- a/build/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# How to make release version -1. Install [node.js](http://nodejs.org/). -2. Run `npm install -g gulp` if you didn't run it before. -3. Run `npm install` command inside build folder. -4. Run `gulp` command from terminal. - -That's all. Archive with latest module version will be created and saved to bin folder. diff --git a/build/composer.json b/build/composer.json deleted file mode 100644 index b2ae6de..0000000 --- a/build/composer.json +++ /dev/null @@ -1 +0,0 @@ -{"minimum-stability":"dev","require":{"tm/testimonials":"*"},"repositories":[{"type":"composer","url":"http://tmhub.github.io/packages"}],"extra":{"magento-root-dir":"code/","magento-deploystrategy":"copy","magento-force":true}} \ No newline at end of file diff --git a/build/gulpfile.js b/build/gulpfile.js deleted file mode 100644 index feec032..0000000 --- a/build/gulpfile.js +++ /dev/null @@ -1,96 +0,0 @@ -var gulp = require('gulp'), - zip = require('gulp-zip'), - size = require('gulp-filesize'), - exec = require('child_process').exec, - fs = require('fs'); - -var tm = (function() { - var moduleInfo = {}; - - function loadModuleInfo() { - var data = fs.readFileSync('../composer.json', { - encoding: 'utf8' - }); - - moduleInfo = JSON.parse(data); - moduleInfo.shortname = moduleInfo.name.replace('tm/', ''); - } - - return { - getModuleInfo: function() { - if (!moduleInfo.name) { - loadModuleInfo(); - } - return moduleInfo; - }, - getArchiveName: function(suffix) { - suffix = suffix || ''; - return [ - this.getModuleInfo().shortname, - '-', - this.getModuleInfo().version, - suffix, - '.zip' - ].join(''); - } - }; -}()); - -gulp.task('composer', function(cb) { - var folders = ['vendor', 'code']; - folders.forEach(function(folder) { - if (!fs.existsSync(folder)) { - fs.mkdirSync(folder, function(e) { console.log(e); }); - } - }); - - var filename = 'composer.json'; - if (!fs.existsSync(filename)) { - var content = { - "minimum-stability": "dev", - "require": { - "%packagename%": "*" - }, - "repositories": [ - { - "type": "composer", - "url": "http://tmhub.github.io/packages" - } - ], - "extra": { - "magento-root-dir": "code/", - "magento-deploystrategy": "copy", - "magento-force": true - } - }; - content = JSON.stringify(content) - .replace('"%packagename%"', '"' + tm.getModuleInfo().name + '"'); - - fs.writeFile(filename, content, 'utf8', function(err) { - if (err) { - console.log(err); - } else { - console.log("The " + filename + " file was generated!"); - } - }); - } - - fs.exists('composer.lock', function(exists) { - var cmd = exists ? 'composer update' : 'composer install'; - console.log(cmd + ' is running'); - exec(cmd, function (err, stdout, stderr) { - console.log(stdout); - console.log(stderr); - cb(err); - }); - }); -}); - -gulp.task('full', ['composer'], function() { - gulp.src(['code/**/*']) - .pipe(zip(tm.getArchiveName())) - .pipe(size()) - .pipe(gulp.dest('bin')); -}); - -gulp.task('default', ['full']); \ No newline at end of file diff --git a/build/package.json b/build/package.json deleted file mode 100644 index 4074050..0000000 --- a/build/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "repository": { - "type": "git", - "url": "https://github.com/tmhub/testimonials.git" - }, - "dependencies": { - "gulp": "*", - "gulp-filesize": "*", - "gulp-zip": "*" - } -} diff --git a/composer.json b/composer.json index 3c17ae7..a107628 100644 --- a/composer.json +++ b/composer.json @@ -4,14 +4,12 @@ "homepage": "https://github.com/tmhub/testimonials", "license": "OSL-3.0", "description": "Customer testimonials", - "version": "1.0.4", "authors": [ { "name": "Templates-Master Team", "email": "support@templates-master.com" } ], - "minimum-stability": "dev", "require": { "tm/core": "*" },