commit
34bbe241ce
@ -0,0 +1,78 @@
|
||||
"use strict";
|
||||
|
||||
var fork = require('child_process').fork,
|
||||
env = process.env,
|
||||
worker,
|
||||
incomplete = [];
|
||||
|
||||
|
||||
module.exports = function(grunt) {
|
||||
function update(action, filepath, target) {
|
||||
var args = [],
|
||||
fromFile = '',
|
||||
compiling = '',
|
||||
time = Date.now();
|
||||
|
||||
if (!grunt.option('verbose')) {
|
||||
args.push('--log-level=info');
|
||||
}
|
||||
|
||||
if (target === 'lessUpdated') {
|
||||
fromFile = ['js','tpl'];
|
||||
compiling = 'less';
|
||||
} else if (target === 'clientUpdated') {
|
||||
fromFile = ['less','tpl'];
|
||||
compiling = 'js';
|
||||
} else if (target === 'templatesUpdated') {
|
||||
fromFile = ['js','less'];
|
||||
compiling = 'tpl';
|
||||
} else if (target === 'serverUpdated') {
|
||||
fromFile = ['less','js','tpl'];
|
||||
}
|
||||
|
||||
fromFile = fromFile.filter(function(ext) {
|
||||
return incomplete.indexOf(ext) === -1;
|
||||
});
|
||||
|
||||
args.push('--from-file=' + fromFile.join(','));
|
||||
incomplete.push(compiling);
|
||||
|
||||
worker.kill();
|
||||
worker = fork('app.js', args, { env: env });
|
||||
|
||||
worker.on('message', function() {
|
||||
if (incomplete.length) {
|
||||
incomplete = [];
|
||||
|
||||
if (grunt.option('verbose')) {
|
||||
grunt.log.writeln('NodeBB restarted in ' + (Date.now() - time) + ' ms');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
grunt.initConfig({
|
||||
watch: {
|
||||
lessUpdated: {
|
||||
files: ['public/**/*.less', 'node_modules/nodebb-*/*.less', 'node_modules/nodebb-*/*/*.less', 'node_modules/nodebb-*/*/*/*.less', 'node_modules/nodebb-*/*/*/*/*.less']
|
||||
},
|
||||
clientUpdated: {
|
||||
files: ['public/src/**/*.js', 'node_modules/nodebb-*/*.js', 'node_modules/nodebb-*/*/*.js', 'node_modules/nodebb-*/*/*/*.js', 'node_modules/nodebb-*/*/*/*/*.js']
|
||||
},
|
||||
serverUpdated: {
|
||||
files: ['*.js', 'src/**/*.js']
|
||||
},
|
||||
templatesUpdated: {
|
||||
files: ['src/views/**/*.tpl', 'node_modules/nodebb-*/*.tpl', 'node_modules/nodebb-*/*/*.tpl', 'node_modules/nodebb-*/*/*/*.tpl', 'node_modules/nodebb-*/*/*/*/*.tpl']
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.registerTask('default', ['watch']);
|
||||
|
||||
env.NODE_ENV = 'development';
|
||||
|
||||
worker = fork('app.js', [], { env: env });
|
||||
grunt.event.on('watch', update);
|
||||
};
|
@ -1,35 +1,35 @@
|
||||
{
|
||||
"results_matching": "%1 risultato(i) corrispondente(i) \"%2\", (%3 secondi)",
|
||||
"no-matches": "No matches found",
|
||||
"no-matches": "Nessuna corrispondenza trovata",
|
||||
"in": "In",
|
||||
"by": "By",
|
||||
"titles": "Titles",
|
||||
"titles-posts": "Titles and Posts",
|
||||
"posted-by": "Posted by",
|
||||
"in-categories": "In Categories",
|
||||
"by": "Da",
|
||||
"titles": "Titoli",
|
||||
"titles-posts": "Titoli e Messaggi",
|
||||
"posted-by": "Pubblicato da",
|
||||
"in-categories": "In Categorie",
|
||||
"search-child-categories": "Search child categories",
|
||||
"reply-count": "Reply Count",
|
||||
"reply-count": "Numero Risposte",
|
||||
"at-least": "At least",
|
||||
"at-most": "At most",
|
||||
"post-time": "Post time",
|
||||
"newer-than": "Newer than",
|
||||
"older-than": "Older than",
|
||||
"any-date": "Any date",
|
||||
"yesterday": "Yesterday",
|
||||
"one-week": "One week",
|
||||
"two-weeks": "Two weeks",
|
||||
"one-month": "One month",
|
||||
"three-months": "Three months",
|
||||
"six-months": "Six months",
|
||||
"one-year": "One year",
|
||||
"sort-by": "Sort by",
|
||||
"post-time": "Ora invio",
|
||||
"newer-than": "Più nuovi di",
|
||||
"older-than": "Più vecchi di",
|
||||
"any-date": "Qualsiasi data",
|
||||
"yesterday": "Ieri",
|
||||
"one-week": "Una settimana",
|
||||
"two-weeks": "Due settimane",
|
||||
"one-month": "Un mese",
|
||||
"three-months": "Tre mesi",
|
||||
"six-months": "Sei mesi",
|
||||
"one-year": "Un anno",
|
||||
"sort-by": "Ordina per",
|
||||
"last-reply-time": "Last reply time",
|
||||
"topic-title": "Topic title",
|
||||
"number-of-replies": "Number of replies",
|
||||
"number-of-views": "Number of views",
|
||||
"topic-start-date": "Topic start date",
|
||||
"username": "Username",
|
||||
"category": "Category",
|
||||
"descending": "In descending order",
|
||||
"ascending": "In ascending order"
|
||||
"topic-title": "Titolo argomento",
|
||||
"number-of-replies": "Numero di risposte",
|
||||
"number-of-views": "Numero di visite",
|
||||
"topic-start-date": "Data inizio argomento",
|
||||
"username": "Nome utente",
|
||||
"category": "Categoria",
|
||||
"descending": "In ordine decrescente",
|
||||
"ascending": "In ordine crescente"
|
||||
}
|
@ -1,23 +1,23 @@
|
||||
{
|
||||
"groups": "Grupy",
|
||||
"view_group": "Obejrzyj grupę",
|
||||
"owner": "Group Owner",
|
||||
"new_group": "Create New Group",
|
||||
"no_groups_found": "There are no groups to see",
|
||||
"cover-instructions": "Drag and Drop a photo, drag to position, and hit <strong>Save</strong>",
|
||||
"cover-change": "Change",
|
||||
"cover-save": "Save",
|
||||
"cover-saving": "Saving",
|
||||
"owner": "Właściciel grupy",
|
||||
"new_group": "Stwórz nową grupę",
|
||||
"no_groups_found": "Brak grup do wyświetlenia",
|
||||
"cover-instructions": "Przeciągnij i upuść zdjęcie, ustaw w odpowiedniej pozycji i kliknij <strong>Zapisz</strong>",
|
||||
"cover-change": "Zmień",
|
||||
"cover-save": "Zapisz",
|
||||
"cover-saving": "Zapisuję",
|
||||
"details.title": "Szczegóły grupy",
|
||||
"details.members": "Lista członków",
|
||||
"details.pending": "Pending Members",
|
||||
"details.pending": "Członkowie oczekujący",
|
||||
"details.has_no_posts": "Członkowie tej grupy nie napisali żadnych postów.",
|
||||
"details.latest_posts": "Ostatnie posty",
|
||||
"details.private": "Private Group",
|
||||
"details.public": "Public Group",
|
||||
"details.grant": "Grant/Rescind Ownership",
|
||||
"details.kick": "Kick",
|
||||
"details.owner_options": "Group Administration",
|
||||
"event.updated": "Group details have been updated",
|
||||
"event.deleted": "The group \"%1\" has been deleted"
|
||||
"details.private": "Grupa prywatna",
|
||||
"details.public": "Grupa publiczna",
|
||||
"details.grant": "Nadaj/Cofnij prawa Właściciela",
|
||||
"details.kick": "Wykop",
|
||||
"details.owner_options": "Administracja grupy",
|
||||
"event.updated": "Dane grupy zostały zaktualizowane",
|
||||
"event.deleted": "Grupa \"%1\" została skasowana"
|
||||
}
|
@ -1,35 +1,35 @@
|
||||
{
|
||||
"results_matching": "%1 wyników pasujących do \"%2\", (%3 sekund)",
|
||||
"no-matches": "No matches found",
|
||||
"in": "In",
|
||||
"by": "By",
|
||||
"titles": "Titles",
|
||||
"titles-posts": "Titles and Posts",
|
||||
"posted-by": "Posted by",
|
||||
"in-categories": "In Categories",
|
||||
"search-child-categories": "Search child categories",
|
||||
"reply-count": "Reply Count",
|
||||
"at-least": "At least",
|
||||
"at-most": "At most",
|
||||
"post-time": "Post time",
|
||||
"newer-than": "Newer than",
|
||||
"older-than": "Older than",
|
||||
"any-date": "Any date",
|
||||
"yesterday": "Yesterday",
|
||||
"one-week": "One week",
|
||||
"two-weeks": "Two weeks",
|
||||
"one-month": "One month",
|
||||
"three-months": "Three months",
|
||||
"six-months": "Six months",
|
||||
"one-year": "One year",
|
||||
"sort-by": "Sort by",
|
||||
"last-reply-time": "Last reply time",
|
||||
"topic-title": "Topic title",
|
||||
"number-of-replies": "Number of replies",
|
||||
"number-of-views": "Number of views",
|
||||
"topic-start-date": "Topic start date",
|
||||
"username": "Username",
|
||||
"category": "Category",
|
||||
"descending": "In descending order",
|
||||
"ascending": "In ascending order"
|
||||
"no-matches": "Nie znaleziono pasujących wyników",
|
||||
"in": "W",
|
||||
"by": "Przez",
|
||||
"titles": "Tytuły",
|
||||
"titles-posts": "Tytuły i posty",
|
||||
"posted-by": "Napisane przez",
|
||||
"in-categories": "W kategoriach",
|
||||
"search-child-categories": "Przeszukaj podkategorie",
|
||||
"reply-count": "Ilość odpowiedzi",
|
||||
"at-least": "Przynajmniej",
|
||||
"at-most": "Co najwyżej",
|
||||
"post-time": "Napisano",
|
||||
"newer-than": "Nowsze niż",
|
||||
"older-than": "Starsze niż",
|
||||
"any-date": "Kiedykolwiek",
|
||||
"yesterday": "Wczoraj",
|
||||
"one-week": "Jeden tydzień",
|
||||
"two-weeks": "Dwa tygodnie",
|
||||
"one-month": "Jeden miesiąc",
|
||||
"three-months": "Trzy miesiące",
|
||||
"six-months": "Sześć miesięcy",
|
||||
"one-year": "Jeden rok",
|
||||
"sort-by": "Sortuj po",
|
||||
"last-reply-time": "Odpowiedziano ostatnio",
|
||||
"topic-title": "Tytuł wątku",
|
||||
"number-of-replies": "Ilość odpowiedzi",
|
||||
"number-of-views": "Ilość wyświetleń",
|
||||
"topic-start-date": "Data utworzenia wątku",
|
||||
"username": "Nazwa użytkownika",
|
||||
"category": "Kategoria",
|
||||
"descending": "W kolejności malejącej",
|
||||
"ascending": "W kolejności rosnącej"
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue