-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gruntjs, update angular-chart.js dependency to come from node.js,…
… fix jshint error. - Changed angular-chart.js to come npm rather than bower because angular-chart.js from bower grabs the latest version of the Chart.js and the Chart.js team decided to no longer provide a distribution of their library dependency. Chart.js latest update no longer provides a dist/ folder of files. Which obviously breaks support for bower. They will be readd support in the next version, until then using the dependency from npm because the support is still there. chartjs/Chart.js#3033 - Adding grunt to copy over dependency files.
- Loading branch information
Showing
7 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/*global module:false*/ | ||
module.exports = function(grunt) { | ||
|
||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
copy: { | ||
dependencies: { | ||
files: [ | ||
{ | ||
src:'node_modules/angular-chart.js/dist/angular-chart.min.js', | ||
dest: 'app/scripts/lib/angular-chart.min.js' | ||
},{ | ||
src:'node_modules/angular-chart.js/node_modules/chart.js/dist/Chart.min.js', | ||
dest: 'app/scripts/lib/Chart.min.js' | ||
} | ||
] | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-copy'); | ||
grunt.registerTask('build', ['copy:dependencies']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
{ | ||
"name": "weather_web", | ||
"version": "0.0.1", | ||
"version": "1.0.1", | ||
"description": "Display daily weather outside and inside room. And make projections.", | ||
"main": "server.js", | ||
"scripts": { | ||
"jshint": "./node_modules/.bin/jshint --config .jshintrc --exclude=node_modules,app/bower_components,test . || exit 0" | ||
"jshint": "./node_modules/.bin/jshint --config .jshintrc --exclude=node_modules,app/bower_components,app/scripts/lib,test . || exit 0" | ||
}, | ||
"author": "Clint Pitzak", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/cpitzak/weatherWeb.git" | ||
}, | ||
"dependencies": { | ||
"angular-chart.js": "^1.0.2", | ||
"body-parser": "^1.15.1", | ||
"config": "^1.21.0", | ||
"express": "^4.13.3", | ||
"express-session": "^1.13.0", | ||
"jshint": "^2.9.1-rc2", | ||
"mongoose": "^4.3.4" | ||
}, | ||
"devDependencies": { | ||
"grunt": "^1.0.1", | ||
"grunt-contrib-copy": "^1.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters