fix grunt ci error

This commit is contained in:
Hakim El Hattab 2019-04-01 13:46:08 +02:00
parent e6fa04d485
commit 2734aa3da0
3 changed files with 13 additions and 16 deletions

View File

@ -1,6 +1,6 @@
/* global module:false */ const sass = require('node-sass');
module.exports = function(grunt) {
const sass = require('node-sass'); module.exports = grunt => {
require('load-grunt-tasks')(grunt); require('load-grunt-tasks')(grunt);
@ -93,10 +93,11 @@ module.exports = function(grunt) {
console: false, console: false,
unescape: false, unescape: false,
define: false, define: false,
exports: false exports: false,
require: false
} }
}, },
files: [ 'Gruntfile.js', 'js/reveal.js' ] files: [ 'gruntfile.js', 'js/reveal.js' ]
}, },
connect: { connect: {
@ -128,7 +129,7 @@ module.exports = function(grunt) {
watch: { watch: {
js: { js: {
files: [ 'Gruntfile.js', 'js/reveal.js' ], files: [ 'gruntfile.js', 'js/reveal.js' ],
tasks: 'js' tasks: 'js'
}, },
theme: { theme: {
@ -161,6 +162,9 @@ module.exports = function(grunt) {
}); });
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
// Default task // Default task
grunt.registerTask( 'default', [ 'css', 'js' ] ); grunt.registerTask( 'default', [ 'css', 'js' ] );

6
package-lock.json generated
View File

@ -5441,12 +5441,6 @@
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
"dev": true "dev": true
}, },
"typescript": {
"version": "3.3.3333",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.3.3333.tgz",
"integrity": "sha512-JjSKsAfuHBE/fB2oZ8NxtRTk5iGcg6hkYXMnZ3Wc+b2RSqejEqTaem11mHASMnFilHrax3sLK0GDzcJrekZYLw==",
"dev": true
},
"uglify-js": { "uglify-js": {
"version": "3.3.8", "version": "3.3.8",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.3.8.tgz", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.3.8.tgz",

View File

@ -24,7 +24,7 @@
}, },
"devDependencies": { "devDependencies": {
"express": "^4.16.2", "express": "^4.16.2",
"grunt": "^1.0.3", "grunt": "^1.0.4",
"grunt-cli": "^1.3.2", "grunt-cli": "^1.3.2",
"grunt-autoprefixer": "^3.0.4", "grunt-autoprefixer": "^3.0.4",
"grunt-contrib-connect": "^2.0.0", "grunt-contrib-connect": "^2.0.0",
@ -36,10 +36,9 @@
"grunt-sass": "^3.0.2", "grunt-sass": "^3.0.2",
"grunt-zip": "~0.17.1", "grunt-zip": "~0.17.1",
"load-grunt-tasks": "^4.0.0", "load-grunt-tasks": "^4.0.0",
"node-sass": "4.11.0", "node-sass": "^4.11.0",
"mustache": "^2.3.0", "mustache": "^2.3.0",
"socket.io": "^2.2.0", "socket.io": "^2.2.0"
"typescript": "^3.3.3333"
}, },
"license": "MIT" "license": "MIT"
} }