Zenika-Training / zenika-formation-framework

Tools to build and present our training material
8 stars 25 forks source link

Compatibilité avec Node 7 #111

Closed hgwood closed 7 years ago

hgwood commented 8 years ago

Gulp 3 et Grunt 0.4 ne seront pas compatibles avec Node 7 car ils utilisent une ancienne version de graceful-fs. Si l'on ne veut pas bloquer les consultants avec une "vieille" version de Node ou les forcer à installer nvm, il faudra mettre à jour le build à Grunt 1 et Gulp 4 avant octobre (date prévue de sortie de Node 7). On pourrait d'ailleurs en profiter pour merger les 2 builds en 1.

Plus d'infos : https://github.com/isaacs/node-graceful-fs/issues/64

ggerbaud commented 8 years ago

Parfaitement en phase, mais cela nécessite des contributions.

EmmanuelDemey commented 8 years ago

Idem pour Node 6. Je viens de tester et cela ne fonctionne pas.

hgwood commented 8 years ago

@Gillespie59 Tu peux préciser ? Normalement Node 6 n'émet qu'un warning du type fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version..

EmmanuelDemey commented 8 years ago

Voici ce que j'obtiens.

Avec Grunt, j'ai :

>> Tasks directory "/home/emmanuel/Documents/workspace/formation-angular2/node_modules/zenika-formation-framework/node_modules/grunt-sed/tasks" not found.
>> Tasks directory "/home/emmanuel/Documents/workspace/formation-angular2/node_modules/zenika-formation-framework/node_modules/grunt-contrib-connect/tasks" not found.
>> Tasks directory "/home/emmanuel/Documents/workspace/formation-angular2/node_modules/zenika-formation-framework/node_modules/grunt-contrib-watch/tasks" not found.
>> Tasks directory "/home/emmanuel/Documents/workspace/formation-angular2/node_modules/zenika-formation-framework/node_modules/grunt-contrib-clean/tasks" not found.
>> Tasks directory "/home/emmanuel/Documents/workspace/formation-angular2/node_modules/zenika-formation-framework/node_modules/grunt-contrib-copy/tasks" not found.
>> Tasks directory "/home/emmanuel/Documents/workspace/formation-angular2/node_modules/zenika-formation-framework/node_modules/grunt-filerev/tasks" not found.
>> Tasks directory "/home/emmanuel/Documents/workspace/formation-angular2/node_modules/zenika-formation-framework/node_modules/grunt-filerev-replace/tasks" not found.
(node:32105) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Warning: Task "sed" not found. Use --force to continue.
hgwood commented 8 years ago

Les erreurs qui empêchent la tâche de fonctionner sont les >> Tasks directory.... Celles-ci sont du à npm 3. La tâche Grunt n'est compatible qu'avec npm 2. Utilise Gulp à la place.

Le fait qu'il y est un warning fs: re-evaluating... à cet endroit est un coincidence. C'est un warning qui n'empêche en rien l'exécution sur Node <7.

hgwood commented 8 years ago

Suite à #115 on devrait pouvoir se contenter d'upgrader Grunt à 1.0 (en attendant éventuellement #117).

hgwood commented 7 years ago

Plus qu'un mois avant la sortie de Node 7. :(

hgwood commented 7 years ago

Bonne nouvelle !

graceful-fs below version 4.0 (well, technically only 2.x and 3.x) is going to break on Node.js 7.x -- https://github.com/gulpjs/gulp/issues/1640#issue-153194839

graceful-fs@3.0.10 was released by @isaacs and that version does not trigger the warning anymore -- https://github.com/gulpjs/gulp/pull/1760#issuecomment-242213701

Grunt 0.4 dépend de graceful-fs 1.x et Gulp 3 de ^3 donc on est sauf !