mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 04:14:52 +08:00
hooked bower json file generation to full grunt build. added minified build so root directory
This commit is contained in:
22
Gruntfile.js
22
Gruntfile.js
@@ -151,6 +151,18 @@ module.exports = function(grunt) {
|
|||||||
src: ['dist/kinetic-v<%= pkg.version %>.min.js'],
|
src: ['dist/kinetic-v<%= pkg.version %>.min.js'],
|
||||||
dest: 'dist/kinetic-v<%= pkg.version %>.min.js'
|
dest: 'dist/kinetic-v<%= pkg.version %>.min.js'
|
||||||
}]
|
}]
|
||||||
|
},
|
||||||
|
prod4: {
|
||||||
|
options: {
|
||||||
|
variables: {
|
||||||
|
version: '<%= pkg.version %>',
|
||||||
|
},
|
||||||
|
prefix: '@@'
|
||||||
|
},
|
||||||
|
files: [{
|
||||||
|
src: ['bower-template.json'],
|
||||||
|
dest: 'bower.json'
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
uglify: {
|
uglify: {
|
||||||
@@ -171,6 +183,13 @@ module.exports = function(grunt) {
|
|||||||
laxbreak: true
|
laxbreak: true
|
||||||
},
|
},
|
||||||
all: ['src/**/*.js']
|
all: ['src/**/*.js']
|
||||||
|
},
|
||||||
|
copy: {
|
||||||
|
prod: {
|
||||||
|
nonull: true,
|
||||||
|
src: 'dist/kinetic-v<%= pkg.version %>.min.js',
|
||||||
|
dest: 'kinetic-v<%= pkg.version %>.min.js',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -191,10 +210,11 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||||
|
|
||||||
// Tasks
|
// Tasks
|
||||||
grunt.registerTask('dev', ['clean', 'concat:dev', 'replace:dev']);
|
grunt.registerTask('dev', ['clean', 'concat:dev', 'replace:dev']);
|
||||||
grunt.registerTask('beta', ['clean', 'concat:beta', 'replace:beta']);
|
grunt.registerTask('beta', ['clean', 'concat:beta', 'replace:beta']);
|
||||||
grunt.registerTask('full', ['clean', 'concat:prod', 'uglify', 'replace:prod1', 'replace:prod2', 'replace:prod3']);
|
grunt.registerTask('full', ['clean', 'concat:prod', 'uglify', 'replace:prod1', 'replace:prod2', 'replace:prod3', 'copy', 'replace:prod4']);
|
||||||
grunt.registerTask('hint', ['clean', 'concat:dev', 'replace:dev', 'jshint']);
|
grunt.registerTask('hint', ['clean', 'concat:dev', 'replace:dev', 'jshint']);
|
||||||
};
|
};
|
||||||
|
22
bower-template.json
Normal file
22
bower-template.json
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"name": "KineticJS",
|
||||||
|
"version": "@@version",
|
||||||
|
"homepage": "http://kineticjs.com/",
|
||||||
|
"authors": [
|
||||||
|
"Eric Rowell"
|
||||||
|
],
|
||||||
|
"description": "KineticJS is an HTML5 Canvas JavaScript framework that enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling for desktop and mobile applications, and much more.",
|
||||||
|
"keywords": [
|
||||||
|
"canvas",
|
||||||
|
"animations"
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"ignore": [
|
||||||
|
"**/.*",
|
||||||
|
"node_modules",
|
||||||
|
"bower_components",
|
||||||
|
"test",
|
||||||
|
"tests"
|
||||||
|
],
|
||||||
|
"main": "kinetic-v@@version.min.js"
|
||||||
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "KineticJS",
|
"name": "KineticJS",
|
||||||
"version": "4.7.0",
|
"version": "5.0.1",
|
||||||
"homepage": "http://kineticjs.com/",
|
"homepage": "http://kineticjs.com/",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Eric Rowell"
|
"Eric Rowell"
|
||||||
@@ -18,5 +18,5 @@
|
|||||||
"test",
|
"test",
|
||||||
"tests"
|
"tests"
|
||||||
],
|
],
|
||||||
"main": "./src/Global.js"
|
"main": "kinetic-v5.0.1.min.js"
|
||||||
}
|
}
|
5
kinetic-v5.0.1.min.js
vendored
Normal file
5
kinetic-v5.0.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "KineticJS",
|
"name": "KineticJS",
|
||||||
"version": "5.0.0",
|
"version": "5.0.1",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt-contrib-jshint": "0.5.4",
|
"grunt-contrib-jshint": "0.5.4",
|
||||||
"grunt-contrib-nodeunit": "0.1.2",
|
"grunt-contrib-nodeunit": "0.1.2",
|
||||||
@@ -14,7 +14,8 @@
|
|||||||
"mocha-phantomjs": "3.1.2",
|
"mocha-phantomjs": "3.1.2",
|
||||||
"grunt-cli": "0.1.9",
|
"grunt-cli": "0.1.9",
|
||||||
"grunt": "0.4.1",
|
"grunt": "0.4.1",
|
||||||
"connect": "2.9.0"
|
"connect": "2.9.0",
|
||||||
|
"grunt-contrib-copy": "~0.5.0"
|
||||||
},
|
},
|
||||||
"readmeFilename": "README.md",
|
"readmeFilename": "README.md",
|
||||||
"main": "Gruntfile.js",
|
"main": "Gruntfile.js",
|
||||||
|
Reference in New Issue
Block a user