From 2632dda0f7c962f14133b4aa430a722873910f66 Mon Sep 17 00:00:00 2001 From: lavrton Date: Fri, 9 Jan 2015 22:45:45 +0700 Subject: [PATCH] move files --- Gruntfile.js | 20 +++++++++---------- README.md | 2 +- .../bower-template.json | 0 nodejs-demo.js => resources/nodejs-demo.js | 0 4 files changed, 11 insertions(+), 11 deletions(-) rename bower-template.json => resources/bower-template.json (100%) rename nodejs-demo.js => resources/nodejs-demo.js (100%) diff --git a/Gruntfile.js b/Gruntfile.js index b8c9bb80..072edbc1 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -157,7 +157,7 @@ module.exports = function(grunt) { dest: 'dist/kinetic-v<%= pkg.version %>.min.js' }] }, - prod4: { + updateBower: { options: { variables: { version: '<%= pkg.version %>' @@ -165,7 +165,7 @@ module.exports = function(grunt) { prefix: '@@' }, files: [{ - src: ['bower-template.json'], + src: ['resources/bower-template.json'], dest: 'bower.json' }] } @@ -191,12 +191,12 @@ module.exports = function(grunt) { prod1: { nonull: true, src: 'dist/kinetic-v<%= pkg.version %>.min.js', - dest: 'kinetic.min.js', + dest: 'kinetic.min.js' }, prod2: { nonull: true, src: 'dist/kinetic-v<%= pkg.version %>.js', - dest: 'kinetic.js', + dest: 'kinetic.js' } }, shell: { @@ -217,10 +217,10 @@ module.exports = function(grunt) { files: ['src/**/*.js'], tasks: ['dev'], options: { - spawn: false, - }, - }, - }, + spawn: false + } + } + } }; @@ -245,14 +245,14 @@ module.exports = function(grunt) { 'replace:prod1', 'replace:prod2', 'replace:prod3', - 'replace:prod4', + 'replace:updateBower', 'copy:prod1', 'copy:prod2' ]); grunt.registerTask('docs', 'Generate docs', [ 'full', - 'shell:jsdoc', + 'shell:jsdoc' ]); grunt.registerTask('hint', 'Check hint errors', ['jshint']); diff --git a/README.md b/README.md index 5d1ca788..1dcba38c 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ We are using [node-canvas](https://github.com/LearnBoost/node-canvas) to create 2. `npm install jsdom` 3. `npm install kinetic` -See file `nodejs-demo.js` for example. +See file `resources/nodejs-demo.js` for example. #Change log diff --git a/bower-template.json b/resources/bower-template.json similarity index 100% rename from bower-template.json rename to resources/bower-template.json diff --git a/nodejs-demo.js b/resources/nodejs-demo.js similarity index 100% rename from nodejs-demo.js rename to resources/nodejs-demo.js