EN module.exports = function(grunt) { // measures the time each task takes require('time-grunt')(grunt); // load grunt config require('load-grunt-config')(grunt); };
EN module.exports = function(grunt) { // measures the time each task takes require('time-grunt')(grunt); // load grunt config require('load-grunt-config')(grunt); };
IT module.exports = function(grunt) { // misura il tempo di ciascun task require('time-grunt')(grunt); // carica le configurazioni di grunt require('load-grunt-config')(grunt); };
tiếng Anh | người Ý |
---|---|
module | module |
task | task |
config | config |
function | function |
each | di |
time | tempo |
measures | misura |
load | load |
the | le |
EN // tell Grunt to load that plugin grunt.loadNpmTasks('grunt-contrib-concat');
IT // dici a Grunt di caricare il plugin grunt.loadNpmTasks('grunt-contrib-concat');
tiếng Anh | người Ý |
---|---|
plugin | plugin |
load | caricare |
to | a |
EN Hint: load-grunt-config includes load-grunt-tasks, so if you don’t want to learn about what it does in detail and skip this block, it won’t hurt my feelings.
IT Suggerimento: load-grunt-config include load-grunt-tasks, quindi se non sei interessato a imparare nel dettaglio quello che fa e vuoi saltare questo paragrafo, non ferirai i miei sentimenti.
tiếng Anh | người Ý |
---|---|
hint | suggerimento |
includes | include |
detail | dettaglio |
skip | saltare |
feelings | sentimenti |
if | se |
about | interessato |
dont | non |
my | miei |
want | vuoi |
to | a |
so | quindi |
this | questo |
in | nel |
and | imparare |
what | quello |
EN While before, we’ve had to manually load our Grunt plugins, like so:
IT Mentre prima dovevamo caricare manualmente i plugin Grunt, in questo modo:
tiếng Anh | người Ý |
---|---|
manually | manualmente |
load | caricare |
plugins | plugin |
so | modo |
EN With load-grunt-tasks, you can collapse that down to the following one-liner:
IT con load-grunt-tasks questi comandi collassano in una singola riga:
tiếng Anh | người Ý |
---|---|
with | con |
EN After requiring the plugin, it will analyze your package.json file, determine which of the dependencies are Grunt plugins and load them all automatically.
IT Dopo aver richiesto il plugin, questo analizza il file package.json e determina quali tra le dipendenze sono plugin Grunt per caricarli automaticamente.
tiếng Anh | người Ý |
---|---|
requiring | richiesto |
analyze | analizza |
json | json |
file | file |
dependencies | dipendenze |
automatically | automaticamente |
package | package |
are | sono |
and | e |
after | dopo |
plugin | plugin |
determine | determina |
the | le |
EN If JavaScript configuration blocks are not really your thing, load-grunt-tasks even allows you to use YAML or CoffeeScript syntax instead
IT Se le configurazioni in JavaScript non sono proprio il tuo forte, load-grunt-tasks consente addirittura di usare la sintassi YAML o CoffeeScript
tiếng Anh | người Ý |
---|---|
javascript | javascript |
configuration | configurazioni |
allows | consente |
syntax | sintassi |
if | se |
or | o |
your | tuo |
are | sono |
instead | di |
to use | usare |
not | non |
EN Grunt-newer has a local cache in which it stores information about what files have actually changed, and only executes your tasks for the files that did, in fact, change. Let’s take a look on how to activate it.
IT Grunt-newer dispone di una cache locale nella quale mantiene informazioni su quali file sono effettivamente cambiati, e solo per questi file esegue i task opportuni. Vediamo come attivarlo.
tiếng Anh | người Ý |
---|---|
cache | cache |
actually | effettivamente |
executes | esegue |
local | locale |
files | file |
information | informazioni |
tasks | task |
the | i |
a | una |
to | nella |
how | come |
have | dispone |
only | solo |
on | su |
what | quali |
and | e |
for | di |
EN Simply prepending “newer:” to any of your tasks pipes your source and destination files through the grunt-newer plugin first, which then determines for what files, if any, the task should run.
IT La semplice anteposizione di “newer:” per ciascuno dei task indirizza i file sorgente e destinazione verso il plugin grunt-newer, il quale determina per quali file, se ce ne sono, il task debba essere eseguito.
EN If you now rerun your grunt build, the concurrent plugin will run the concat task first, and then spawn two threads on two different CPU cores to run both imagemin and uglify in parallel. Yay!
IT Se si esegue di nuovo un build grunt, il plugin concorrente esegue per primo il task concat, e dopo genera due thread su due core differenti della CPU per eseguire in parallelo imagemin e uglify. Wow!
tiếng Anh | người Ý |
---|---|
plugin | plugin |
threads | thread |
cpu | cpu |
cores | core |
parallel | parallelo |
now | nuovo |
if | se |
build | build |
task | task |
on | su |
the | il |
in | in |
and | e |
two | due |
different | un |
to | dopo |
EN How much time did it take? time-grunt
IT Quanto tempo ci ha messo? time-grunt
tiếng Anh | người Ý |
---|---|
time | tempo |
did | ha |
how | quanto |
EN Now that we’re optimizing every of our tasks, it would be really helpful to understand how much time every individual task required to execute. Fortunately, there’s a plugin for that as well: time-grunt.
IT Ora che abbiamo ottimizzato ognuno dei nostri task, sarebbe molto utile capire quanto tempo ciascun task impiega per essere eseguito. Per fortuna, esiste un plugin anche per questo: time-grunt.
tiếng Anh | người Ý |
---|---|
helpful | utile |
fortunately | per fortuna |
plugin | plugin |
a | un |
now | ora |
time | tempo |
task | task |
of | dei |
our | nostri |
understand | capire |
EN And I’m sorry to disappoint, but that’s it – try rerunning Grunt from your Terminal and for every task (and additionally the total build), you should see a nicely formatted info panel on execution time:
IT Mi dispiace deluderti, ma si tratta solo di questo - prova ad eseguire di nuovo Grunt da terminale, e per ciascun task (compreso l'intero processo di build) dovresti vedere un pannello di controllo ben formattato contenente i tempi di esecuzione:
tiếng Anh | người Ý |
---|---|
try | prova |
terminal | terminale |
task | task |
panel | pannello |
formatted | formattato |
time | tempi |
execution | esecuzione |
but | ma |
the | i |
to | ad |
build | build |
see | vedere |
and | e |
should | dovresti |
a | un |
every | ciascun |
from | da |
on | eseguire |
EN If you discover another gem that improves Grunt and its plugins further, please do let us know! Until then, happy grunting!
IT Se ti capita di scoprire qualche altra perla in grado di migliorare ulteriormente Grunt e i suoi plugin, per favore faccelo sapere! Fino ad allora, buon grunting!
tiếng Anh | người Ý |
---|---|
another | altra |
improves | migliorare |
plugins | plugin |
if | se |
discover | scoprire |
know | sapere |
please | favore |
and | e |
its | di |
EN Update (2/14/2014): To grab a copy of the full, working example Grunt project, click here.
IT Aggiornamento (14/2/2014): se vuoi ottenere una copia completa e funzionante del progetto Grunt di esempio, clicca qui.
tiếng Anh | người Ý |
---|---|
full | completa |
update | aggiornamento |
example | esempio |
copy | copia |
project | progetto |
here | qui |
working | funzionante |
a | una |
of | di |
EN Focus on engaging top talent creatively rather than on the grunt work that slows you down. monday.com makes it easy to stay on top of potential candidates with automatic reminders.
IT Concentrati sul coinvolgimento creativo di menti brillanti, piuttosto che sul lavoro tedioso che ti rallenta. monday.com rende facile stare al passo coi potenziali candidati, grazie a promemoria automatici.
tiếng Anh | người Ý |
---|---|
focus | concentrati |
creatively | creativo |
work | lavoro |
slows | rallenta |
potential | potenziali |
candidates | candidati |
automatic | automatici |
reminders | promemoria |
monday | monday |
easy | facile |
to | a |
the | passo |
makes | rende |
of | di |
with | coi |
EN Focus on engaging top talent creatively rather than on the grunt work that slows you down. monday.com makes it easy to stay on top of potential candidates with automatic reminders.
IT Concentrati sul coinvolgimento creativo di menti brillanti, piuttosto che sul lavoro tedioso che ti rallenta. monday.com rende facile stare al passo coi potenziali candidati, grazie a promemoria automatici.
tiếng Anh | người Ý |
---|---|
focus | concentrati |
creatively | creativo |
work | lavoro |
slows | rallenta |
potential | potenziali |
candidates | candidati |
automatic | automatici |
reminders | promemoria |
monday | monday |
easy | facile |
to | a |
the | passo |
makes | rende |
of | di |
with | coi |
EN Focus on engaging top talent creatively rather than on the grunt work that slows you down. monday.com makes it easy to stay on top of potential candidates with automatic reminders.
IT Concentrati sul coinvolgimento creativo di menti brillanti, piuttosto che sul lavoro tedioso che ti rallenta. monday.com rende facile stare al passo coi potenziali candidati, grazie a promemoria automatici.
tiếng Anh | người Ý |
---|---|
focus | concentrati |
creatively | creativo |
work | lavoro |
slows | rallenta |
potential | potenziali |
candidates | candidati |
automatic | automatici |
reminders | promemoria |
monday | monday |
easy | facile |
to | a |
the | passo |
makes | rende |
of | di |
with | coi |
Hiển thị 18 trong số 18 bản dịch