Skip to content

Commit

Permalink
make changes for angular 13
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuzuld committed Nov 15, 2021
1 parent 56457c7 commit 2af42ba
Show file tree
Hide file tree
Showing 75 changed files with 1,413 additions and 159 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ npm-debug.log*
.DS_Store

# Compiled files
dist
src/**/*.js
tests/**/*.js

Expand Down
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#! /usr/bin/env node

require('../dist/cli/cli.js');
import('../dist/cli/cli.js');
1 change: 1 addition & 0 deletions dist/cli/cli.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export declare const cli: any;
147 changes: 147 additions & 0 deletions dist/cli/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions dist/cli/tasks/extract.task.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { TranslationCollection } from '../../utils/translation.collection.js';
import { TaskInterface } from './task.interface.js';
import { ParserInterface } from '../../parsers/parser.interface.js';
import { PostProcessorInterface } from '../../post-processors/post-processor.interface.js';
import { CompilerInterface } from '../../compilers/compiler.interface.js';
export interface ExtractTaskOptionsInterface {
replace?: boolean;
}
export declare class ExtractTask implements TaskInterface {
protected inputs: string[];
protected outputs: string[];
protected options: ExtractTaskOptionsInterface;
protected parsers: ParserInterface[];
protected postProcessors: PostProcessorInterface[];
protected compiler: CompilerInterface;
constructor(inputs: string[], outputs: string[], options?: ExtractTaskOptionsInterface);
execute(): void;
setParsers(parsers: ParserInterface[]): this;
setPostProcessors(postProcessors: PostProcessorInterface[]): this;
setCompiler(compiler: CompilerInterface): this;
protected extract(): TranslationCollection;
protected process(draft: TranslationCollection, extracted: TranslationCollection, existing: TranslationCollection): TranslationCollection;
protected save(output: string, collection: TranslationCollection): void;
protected getFiles(pattern: string): string[];
protected out(...args: any[]): void;
protected printEnabledParsers(): void;
protected printEnabledPostProcessors(): void;
protected printEnabledCompiler(): void;
}
142 changes: 142 additions & 0 deletions dist/cli/tasks/extract.task.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/cli/tasks/task.interface.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export interface TaskInterface {
execute(): void;
}
2 changes: 2 additions & 0 deletions dist/cli/tasks/task.interface.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/compilers/compiler.factory.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { CompilerInterface } from '../compilers/compiler.interface.js';
export declare class CompilerFactory {
static create(format: string, options?: {}): CompilerInterface;
}
18 changes: 18 additions & 0 deletions dist/compilers/compiler.factory.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions dist/compilers/compiler.interface.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { TranslationCollection } from '../utils/translation.collection.js';
export interface CompilerInterface {
extension: string;
compile(collection: TranslationCollection): string;
parse(contents: string): TranslationCollection;
}
2 changes: 2 additions & 0 deletions dist/compilers/compiler.interface.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions dist/compilers/json.compiler.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { CompilerInterface } from './compiler.interface.js';
import { TranslationCollection } from '../utils/translation.collection.js';
export declare class JsonCompiler implements CompilerInterface {
indentation: string;
extension: string;
constructor(options?: any);
compile(collection: TranslationCollection): string;
parse(contents: string): TranslationCollection;
protected isNamespacedJsonFormat(values: any): boolean;
}
Loading

0 comments on commit 2af42ba

Please sign in to comment.