Improve import alias
@file/ and @export/ instead of file/ and export/ etc
This commit is contained in:
@ -2,9 +2,9 @@ import { assert, expect } from "chai";
|
||||
import * as sinon from "sinon";
|
||||
|
||||
import { Formatter } from "@export/formatter";
|
||||
import { Paragraph, TextRun } from "file";
|
||||
import { CoreProperties } from "file/core-properties";
|
||||
import { Attributes } from "file/xml-components";
|
||||
import { CoreProperties } from "@file/core-properties";
|
||||
import { Paragraph, TextRun } from "@file/paragraph";
|
||||
import { Attributes } from "@file/xml-components";
|
||||
|
||||
describe("Formatter", () => {
|
||||
let formatter: Formatter;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { BaseXmlComponent, IContext, IXmlableObject } from "file/xml-components";
|
||||
import { BaseXmlComponent, IContext, IXmlableObject } from "@file/xml-components";
|
||||
|
||||
export class Formatter {
|
||||
// tslint:disable-next-line: no-object-literal-type-assertion
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { expect } from "chai";
|
||||
|
||||
import { Media } from "file";
|
||||
import { Media } from "@file/media";
|
||||
|
||||
import { ImageReplacer } from "./image-replacer";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { IMediaData, Media } from "file/media";
|
||||
import { IMediaData, Media } from "@file/media";
|
||||
|
||||
export class ImageReplacer {
|
||||
public replace(xmlData: string, mediaData: IMediaData[], offset: number): string {
|
||||
|
@ -2,7 +2,9 @@
|
||||
import { expect } from "chai";
|
||||
import * as sinon from "sinon";
|
||||
|
||||
import { File, Footer, Header, Paragraph } from "file";
|
||||
import { File } from "@file/file";
|
||||
import { Footer, Header } from "@file/header";
|
||||
import { Paragraph } from "@file/paragraph";
|
||||
|
||||
import { Compiler } from "./next-compiler";
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
import * as JSZip from "jszip";
|
||||
import * as xml from "xml";
|
||||
|
||||
import { File } from "file";
|
||||
import { File } from "@file/file";
|
||||
|
||||
import { Formatter } from "../formatter";
|
||||
import { ImageReplacer } from "./image-replacer";
|
||||
import { NumberingReplacer } from "./numbering-replacer";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { ConcreteNumbering } from "file";
|
||||
import { ConcreteNumbering } from "@file/numbering";
|
||||
|
||||
export class NumberingReplacer {
|
||||
public replace(xmlData: string, concreteNumberings: ConcreteNumbering[]): string {
|
||||
|
@ -2,7 +2,8 @@
|
||||
import { assert } from "chai";
|
||||
import { mock, stub } from "sinon";
|
||||
|
||||
import { File, HeadingLevel, Paragraph } from "file";
|
||||
import { File } from "@file/file";
|
||||
import { HeadingLevel, Paragraph } from "@file/paragraph";
|
||||
|
||||
import { Packer } from "./packer";
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { File } from "file";
|
||||
import { File } from "@file/file";
|
||||
|
||||
import { Compiler } from "./next-compiler";
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user