En raison d'une défaillance matérielle, les jobs d'intégration continue peuvent échouer sans raison évidente sur les runners partagés. Les disques incriminés devraient être changés en fin de semaine. Merci de votre compréhension.

Commit cf12ace8 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Ajout de la configuration de build.

parent 7df5d605
package-lock.json binary
node_modules/ node_modules/
build/
dist/
const loadGruntTasks = require("load-grunt-tasks");
module.exports = grunt => {
const BUILD_DIR = "build/";
const DIST_DIR = "dist/";
loadGruntTasks(grunt, { pattern: ["grunt-*", "grunt-contrib-*"] });
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
copy: {
revealSources: {
expand: true,
cwd: "node_modules/reveal.js/.",
src: [
"{js,lib,plugin}/**",
"css/{reveal.scss,reset.css}",
"css/print/**",
"css/theme/template/**",
"index.html",
"package*.json",
"Gruntfile.js"
],
dest: BUILD_DIR
},
themeSources: {
expand: true,
cwd: "src/",
src: ["**"],
dest: BUILD_DIR
},
dist: {
expand: true,
cwd: BUILD_DIR,
src: ["{js,lib,plugin}/**", "css/**/*.css", "index.html"],
dest: DIST_DIR
}
},
exec: {
npmInstall: {
command: "npm install",
options: {
cwd: BUILD_DIR
}
},
buildRevealJs: {
command: "grunt css jshint",
options: {
cwd: BUILD_DIR
}
}
},
clean: [BUILD_DIR + "**", DIST_DIR + "**"]
});
grunt.registerTask("default", ["installRevealJs", "build"]);
grunt.registerTask("installRevealJs", [
"copy:revealSources",
"exec:npmInstall"
]);
grunt.registerTask("build", [
"copy:themeSources",
"exec:buildRevealJs",
"copy:dist"
]);
};
This diff is collapsed.
{
"name": "reveal.js-irstea",
"version": "0.0.1",
"description": "Thème Irstea pour reveal.js",
"scripts": {
"build": "grunt"
},
"repository": {
"type": "git",
"url": "git+ssh://git@gitlab-ssh.irstea.fr/guillaume.perreal/reveal.js"
},
"keywords": [
"reveal.js",
"irstea"
],
"author": "Guillaume Perréal",
"license": "MIT",
"devDependencies": {
"grunt": "^1.0.4",
"grunt-contrib-clean": "^2.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-exec": "^3.0.0",
"load-grunt-tasks": "^5.1.0",
"reveal.js": "^3.8.0"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment