From 8746847fa8f00ab3f35f643324905575374ea73b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?zhaoda=28=E8=B5=B5=E8=BE=BE=29?= Date: Sat, 22 Mar 2014 23:48:34 +0800 Subject: [PATCH] 1.remove default CNAME file. 2.remove index.appcache and index.appcache.tmpl to cancel html5 appcache support. 3.update README. --- CNAME | 1 - Gruntfile.js | 12 +----------- README.md | 11 ----------- index.appcache | 10 ---------- index.appcache.tmpl | 10 ---------- index.html | 2 +- package.json | 2 +- 7 files changed, 3 insertions(+), 45 deletions(-) delete mode 100644 CNAME delete mode 100644 index.appcache delete mode 100644 index.appcache.tmpl diff --git a/CNAME b/CNAME deleted file mode 100644 index 2e2cc392..00000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -spring.zhaoda.net \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index 5b17e20c..554f9fcf 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -68,15 +68,6 @@ module.exports = function(grunt) { }) - // Release task. - grunt.template.addDelimiters('release', '<#', '#>') - grunt.task.registerTask('release', 'Release task.', function() { - var appcachetmpl = grunt.file.read('index.appcache.tmpl'), - version = grunt.template.today('yyyy-mm-dd HH:MM:ss') - - grunt.file.write('index.appcache', grunt.template.process(appcachetmpl, {data: {version: version}, delimiters: 'release'})) - }) - // These plugins provide necessary tasks. grunt.loadNpmTasks('grunt-contrib-concat') grunt.loadNpmTasks('grunt-contrib-jshint') @@ -93,8 +84,7 @@ module.exports = function(grunt) { 'concat', 'uglify', 'less', - 'clean', - 'release' + 'clean' ]) // // Test task. diff --git a/README.md b/README.md index 73cfb09d..5922548e 100644 --- a/README.md +++ b/README.md @@ -42,17 +42,9 @@ For the impatient, here's how to get a Spring blog site up and running. ] }) ``` -* Open the `index.appcache` appcache manifest file to modify version time. - ``` -# Version 2014-03-20 13:23:18 -``` * Put your domain into the `CNAME ` file if you have. - ``` -spring.zhaoda.net -``` - * Commit your change and push it. ### And then @@ -119,12 +111,9 @@ spring/ | ├── normalize.less #normalize style | ├── pull2refresh.less #pull2refresh widget style | └── side.html #side panel style -├── CNAME #costom domain config ├── dev.html #used to develop ├── favicon.ico #website icon ├── Gruntfile.js #Grunt task config -├── index.appcache #runtime appcache manifest -├── index.appcache.tmpl #the template of index.appcache ├── index.html #used to runtime └── package.json #nodejs install config ``` diff --git a/index.appcache b/index.appcache deleted file mode 100644 index 4237febe..00000000 --- a/index.appcache +++ /dev/null @@ -1,10 +0,0 @@ -CACHE MANIFEST - -# Version 2014-03-22 00:26:08 - -CACHE: -dist/main.min.css -dist/main.min.js - -NETWORK: -* \ No newline at end of file diff --git a/index.appcache.tmpl b/index.appcache.tmpl deleted file mode 100644 index 87f5304f..00000000 --- a/index.appcache.tmpl +++ /dev/null @@ -1,10 +0,0 @@ -CACHE MANIFEST - -# Version <#=version#> - -CACHE: -dist/main.min.css -dist/main.min.js - -NETWORK: -* \ No newline at end of file diff --git a/index.html b/index.html index 75729389..3639236e 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + diff --git a/package.json b/package.json index 032c0e6e..7c11a6bf 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "spring", "title": "Spring", - "version": "0.0.1", + "version": "0.1.0", "description": "Spring is a blog engine written by github issues", "repository": { "type": "git",