From df43012ad0b27535a0259883e7385c239592b793 Mon Sep 17 00:00:00 2001 From: Candison Date: Mon, 24 Apr 2017 10:34:54 +0800 Subject: [PATCH] Fix Bug --- composer.json | 4 ++-- system/install/composer.example.json | 5 ----- system/install/install.php | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 system/install/composer.example.json diff --git a/composer.json b/composer.json index 8bed1a9..32152b5 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "codemommy/webphp", - "version": "0.0.16", + "version": "0.0.17", "description": "Web MVC framework of light and fast", "keywords": [ "CodeMommy", @@ -30,7 +30,7 @@ "scripts": { "post-create-project-cmd": [ "php system/install/install.php", - "composer update --no-dev" + "composer require codemommy/webphp:0.0.*" ] }, "require": { diff --git a/system/install/composer.example.json b/system/install/composer.example.json deleted file mode 100644 index afd1e20..0000000 --- a/system/install/composer.example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "require": { - "codemommy/webphp": "0.0.16" - } -} \ No newline at end of file diff --git a/system/install/install.php b/system/install/install.php index 734bff8..1867aeb 100644 --- a/system/install/install.php +++ b/system/install/install.php @@ -27,7 +27,7 @@ function deleteDirectory($path) } copy('application/environment.example.yaml', 'application/environment.yaml'); -copy('system/install/composer.example.json', 'composer.json'); +file_put_contents('composer.json', '{}'); unlink('gulpfile.js'); unlink('package.json'); deleteDirectory('system'); \ No newline at end of file