Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update to latest dependencies

  • Loading branch information...
commit 4121f84c3d75751ca4adff663b4eda444a4b7e1c 1 parent 896e935
@Craga89 Craga89 authored
Showing with 21 additions and 33 deletions.
  1. +3 −17 grunt/replace.js
  2. +11 −9 grunt/tasks/init.js
  3. +7 −7 package.json
View
20 grunt/replace.js
@@ -4,26 +4,12 @@
module.exports = function(grunt) {
return {
dist: {
+ options: {
+ patterns: []
+ },
files: [
{ expand: true, flatten: true, src: ['<%=dirs.dist%>/**/*'], dest: '<%=dirs.dist%>/' }
]
- },
-
- // Fix sourceMaps on remote CDNJS/jsDelivr services by removing dist/ in source map
- sourcemap: {
- files: [
- { expand: true, flatten: true, src: ['<%=dirs.dist%>/**/*.map'], dest: '<%=dirs.dist%>/' }
- ],
- options: {
- patterns: [
- {
- match: /dist\//g,
- replacement: function() {
- return grunt.config('pkg.type') === 'stable' ? '' : 'dist/';
- }
- }
- ]
- }
}
}
};
View
20 grunt/tasks/init.js
@@ -88,15 +88,17 @@ module.exports = function(grunt) {
: '';
// Set replacement variables
- grunt.config('replace.dist.options.variables', {
- 'BUILDPROPS': buildprops,
- 'MINBUILDPROPS': minbuildprops,
- 'VERSION': stable ? version : version.substr(1),
- 'vVERSION': stable ? 'v'+version : version,
- 'DATE': grunt.template.today("dd-mm-yyyy"),
- 'STYLES': strStyles,
- 'PLUGINS': strPlugins
- });
+ grunt.config('replace.dist.options.patterns', [{
+ json: {
+ 'BUILDPROPS': buildprops,
+ 'MINBUILDPROPS': minbuildprops,
+ 'VERSION': stable ? version : version.substr(1),
+ 'vVERSION': stable ? 'v'+version : version,
+ 'DATE': grunt.template.today("dd-mm-yyyy"),
+ 'STYLES': strStyles,
+ 'PLUGINS': strPlugins
+ }
+ }]);
// Output current build properties
grunt.log.write("\nBuilding " + "qTip2".green + " "+version+" with " +
View
14 package.json
@@ -35,14 +35,14 @@
"grunt": "~0.4.5",
"grunt-cli": "~0.1.13",
"grunt-contrib-clean": "~0.6.0",
- "grunt-contrib-concat": "~0.5.0",
- "grunt-contrib-csslint": "~0.3.1",
- "grunt-contrib-cssmin": "~0.10.0",
- "grunt-contrib-jshint": "~0.10.0",
- "grunt-contrib-uglify": "~0.5.1",
+ "grunt-contrib-concat": "~0.5.1",
+ "grunt-contrib-csslint": "~0.4.0",
+ "grunt-contrib-cssmin": "~0.12.3",
+ "grunt-contrib-jshint": "~0.11.2",
+ "grunt-contrib-uglify": "~0.9.1",
"grunt-contrib-watch": "~0.6.1",
- "grunt-replace": "~0.7.9",
- "load-grunt-config": "~0.13.1"
+ "grunt-replace": "~0.9.2",
+ "load-grunt-config": "~0.17.1"
},
"scripts": {
"build": "npm install && grunt",
Please sign in to comment.
Something went wrong with that request. Please try again.