Skip to content

Commit

Permalink
Merge branch 'meteor-integration' of https://github.com/MeteorPackagi…
Browse files Browse the repository at this point in the history
…ng/nvd3 into pull-request-782

Conflicts:
	GruntFile.js
  • Loading branch information
robinfhu committed Feb 16, 2015
2 parents 4c5fc4a + 83c2aa3 commit 3c3da44
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
15 changes: 14 additions & 1 deletion GruntFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ module.exports = function(grunt) {
}
}
},
replace: {
version: {
src: [
'package.js'
],
overwrite: true,
replacements: [{
from: /(version?\s?=?\:?\s\')([\d\.]*)\'/gi,
to: '$1' + _pkg.version + "'"
}]
}
},
jshint: {
foo: {
src: "src/**/*.js"
Expand Down Expand Up @@ -108,9 +120,10 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-text-replace');

grunt.registerTask('default', ['concat','copy','karma:unit']);
grunt.registerTask('production', ['concat', 'uglify', 'copy', 'cssmin']);
grunt.registerTask('production', ['concat', 'uglify', 'copy', 'cssmin', 'replace']);
grunt.registerTask('release', ['production']);
grunt.registerTask('lint', ['jshint']);
};
17 changes: 17 additions & 0 deletions package.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Package metadata for Meteor.js full stack web framework
// This file is defined in Meteor documentation at http://docs.meteor.com/#/full/packagejs
// and used by Meteor https://www.meteor.com/ and its package repository Atmosphere https://atmospherejs.com

Package.describe({
"name": 'nvd3:nvd3',
summary: 'Nvd3.org charts.',
version: '1.7.1',
git: "https://github.com/novus/nvd3.git"
});
Package.on_use(function (api) {
api.versionsFrom("[email protected]");
api.use('d3js:[email protected]', 'client');
api.add_files('build/nv.d3.js', 'client');
api.add_files('build/nv.d3.css', 'client');
api.export("nv");
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"grunt-contrib-jshint": "^0.11.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-watch": "~0.3.1",
"grunt-text-replace": "^0.4.0",
"grunt-karma": "^0.9.0",
"karma": "^0.12.23",
"karma-chrome-launcher": "^0.1.4",
Expand Down

0 comments on commit 3c3da44

Please sign in to comment.