From 904eb88ab666c84e7d36f13bd9e38e264713f86e Mon Sep 17 00:00:00 2001 From: Michael Aufreiter Date: Fri, 7 Oct 2016 17:40:12 +0200 Subject: [PATCH 1/2] Bundling for NPM. Much improved build process. Better file structure. --- {examples/data => data}/elife-15278.xml | 0 {examples/data => data}/example.xml | 0 .../data => data}/kitchen-sink-author.xml | 0 {examples/data => data}/vanilla.xml | 0 {examples/data => data}/with-xref.xml | 0 examples/author.html | 45 +++++ examples/author/app.css | 11 -- examples/author/index.html | 11 -- examples/config.js | 6 - examples/index.html | 7 - examples/publisher.html | 45 +++++ examples/publisher/app.css | 11 -- examples/publisher/app.js | 23 --- examples/publisher/index.html | 12 -- examples/tagging.html | 47 +++++ examples/tagging/app.css | 11 -- examples/tagging/app.js | 25 --- examples/tagging/index.html | 11 -- index.es.js | 16 ++ index.html | 7 + {packages => lib}/_index.css | 0 {packages => lib}/author/Author.js | 0 {packages => lib}/author/AuthorExporter.js | 0 {packages => lib}/author/AuthorImporter.js | 0 {packages => lib}/author/AuthorPackage.js | 0 {packages => lib}/author/AuthorTOCProvider.js | 0 {packages => lib}/author/JATSTransformer.js | 0 {packages => lib}/author/_index.css | 0 {examples => lib}/author/app.js | 6 +- {packages => lib}/author/heading/Heading.js | 0 .../author/heading/HeadingComponent.js | 0 {packages => lib}/author/heading/package.js | 0 {packages => lib}/common/AbstractWriter.js | 0 {packages => lib}/common/EditXML.js | 0 {packages => lib}/common/SaveHandler.js | 0 .../common/XMLAttributeEditor.js | 0 {packages => lib}/common/XMLEditor.js | 0 {packages => lib}/common/_edit-xml.css | 0 {packages => lib}/common/_index.css | 0 {packages => lib}/common/_isolated-node.css | 0 {packages => lib}/common/_toolbar.css | 0 {packages => lib}/common/package.js | 0 .../InlineWrapperJATSConverter.js | 0 .../inline-wrapper/InlineWrapperPackage.js | 0 {packages => lib}/jats/JATS.js | 0 {packages => lib}/jats/JATSExporter.js | 0 {packages => lib}/jats/JATSImporter.js | 0 {packages => lib}/jats/TextNodeConverter.js | 0 {packages => lib}/jats/_index.css | 0 {packages => lib}/jats/aff/Aff.js | 0 {packages => lib}/jats/aff/AffComponent.js | 0 {packages => lib}/jats/aff/AffConverter.js | 0 {packages => lib}/jats/aff/_aff.css | 0 {packages => lib}/jats/aff/_index.css | 0 {packages => lib}/jats/aff/affUtils.js | 2 +- {packages => lib}/jats/aff/package.js | 0 .../jats/article-meta/ArticleMeta.js | 0 .../jats/article-meta/ArticleMetaComponent.js | 2 +- .../jats/article-meta/ArticleMetaConverter.js | 2 +- .../jats/article-meta/package.js | 0 .../jats/article-title/ArticleTitle.js | 0 .../article-title/ArticleTitleComponent.js | 0 .../article-title/ArticleTitleConverter.js | 0 .../jats/article-title/_index.css | 0 .../jats/article-title/package.js | 0 .../jats/article/ArticleComponent.js | 2 +- .../jats/article/ArticleConverter.js | 2 +- {packages => lib}/jats/article/ArticleNode.js | 0 .../jats/article/TextureArticle.js | 0 {packages => lib}/jats/article/_index.css | 0 {packages => lib}/jats/article/package.js | 0 {packages => lib}/jats/back/Back.js | 0 {packages => lib}/jats/back/BackComponent.js | 2 +- {packages => lib}/jats/back/BackConverter.js | 2 +- {packages => lib}/jats/back/_index.css | 0 {packages => lib}/jats/back/package.js | 0 {packages => lib}/jats/body/Body.js | 0 {packages => lib}/jats/body/BodyComponent.js | 0 {packages => lib}/jats/body/BodyConverter.js | 2 +- {packages => lib}/jats/body/package.js | 0 {packages => lib}/jats/bold/Bold.js | 0 {packages => lib}/jats/bold/BoldCommand.js | 0 {packages => lib}/jats/bold/BoldConverter.js | 0 {packages => lib}/jats/bold/BoldTool.js | 0 {packages => lib}/jats/bold/_index.css | 0 {packages => lib}/jats/bold/package.js | 0 {packages => lib}/jats/caption/Caption.js | 0 .../jats/caption/CaptionComponent.js | 0 .../jats/caption/CaptionConverter.js | 2 +- {packages => lib}/jats/caption/package.js | 0 .../jats/contrib-group/ContribGroup.js | 0 .../contrib-group/ContribGroupComponent.js | 2 +- .../contrib-group/ContribGroupConverter.js | 2 +- .../jats/contrib-group/_index.css | 0 .../jats/contrib-group/package.js | 0 {packages => lib}/jats/contrib/Contrib.js | 0 .../jats/contrib/ContribComponent.js | 0 .../jats/contrib/ContribConverter.js | 0 {packages => lib}/jats/contrib/EditContrib.js | 0 {packages => lib}/jats/contrib/_contrib.css | 0 .../jats/contrib/_edit-contrib.css | 0 {packages => lib}/jats/contrib/_index.css | 0 .../jats/contrib/contribUtils.js | 4 +- {packages => lib}/jats/contrib/package.js | 0 .../jats/ext-link/EditExtLinkTool.js | 0 {packages => lib}/jats/ext-link/ExtLink.js | 0 .../jats/ext-link/ExtLinkComponent.js | 0 .../jats/ext-link/ExtLinkConverter.js | 0 .../jats/ext-link/ExtLinkTool.js | 0 {packages => lib}/jats/ext-link/_index.css | 0 {packages => lib}/jats/ext-link/package.js | 0 {packages => lib}/jats/figure/Figure.js | 0 .../jats/figure/FigureComponent.js | 2 +- .../jats/figure/FigureConverter.js | 2 +- {packages => lib}/jats/figure/FigureTarget.js | 2 +- .../jats/figure/_figure-target.css | 0 {packages => lib}/jats/figure/_index.css | 0 {packages => lib}/jats/figure/package.js | 0 {packages => lib}/jats/footnote/Footnote.js | 0 .../jats/footnote/FootnoteComponent.js | 2 +- .../jats/footnote/FootnoteConverter.js | 2 +- {packages => lib}/jats/footnote/_index.css | 0 {packages => lib}/jats/footnote/package.js | 0 {packages => lib}/jats/front/Front.js | 0 .../jats/front/FrontComponent.js | 2 +- .../jats/front/FrontConverter.js | 2 +- {packages => lib}/jats/front/package.js | 0 {packages => lib}/jats/graphic/Graphic.js | 0 .../jats/graphic/GraphicComponent.js | 0 .../jats/graphic/GraphicConverter.js | 2 +- {packages => lib}/jats/graphic/_index.css | 0 {packages => lib}/jats/graphic/package.js | 0 {packages => lib}/jats/italic/Italic.js | 0 .../jats/italic/ItalicCommand.js | 0 .../jats/italic/ItalicConverter.js | 0 {packages => lib}/jats/italic/ItalicTool.js | 0 {packages => lib}/jats/italic/_index.css | 0 {packages => lib}/jats/italic/package.js | 0 {packages => lib}/jats/label/Label.js | 0 .../jats/label/LabelComponent.js | 0 .../jats/label/LabelConverter.js | 0 {packages => lib}/jats/label/package.js | 0 {packages => lib}/jats/monospace/Monospace.js | 0 .../jats/monospace/MonospaceConverter.js | 0 {packages => lib}/jats/monospace/_index.css | 0 {packages => lib}/jats/monospace/package.js | 0 {packages => lib}/jats/package.js | 0 {packages => lib}/jats/paragraph/Paragraph.js | 0 .../jats/paragraph/ParagraphComponent.js | 0 .../jats/paragraph/ParagraphConverter.js | 0 {packages => lib}/jats/paragraph/package.js | 0 {packages => lib}/jats/ref-list/RefList.js | 0 .../jats/ref-list/RefListComponent.js | 2 +- .../jats/ref-list/RefListConverter.js | 2 +- {packages => lib}/jats/ref-list/_index.css | 0 {packages => lib}/jats/ref-list/package.js | 0 {packages => lib}/jats/ref/Ref.js | 0 {packages => lib}/jats/ref/RefComponent.js | 0 {packages => lib}/jats/ref/RefConverter.js | 0 {packages => lib}/jats/ref/RefTarget.js | 0 {packages => lib}/jats/ref/_index.css | 0 {packages => lib}/jats/ref/package.js | 0 {packages => lib}/jats/ref/refToHTML.js | 0 {packages => lib}/jats/section/Section.js | 0 .../jats/section/SectionComponent.js | 0 .../jats/section/SectionConverter.js | 2 +- {packages => lib}/jats/section/_index.css | 0 {packages => lib}/jats/section/package.js | 0 {packages => lib}/jats/subscript/Subscript.js | 0 .../jats/subscript/SubscriptConverter.js | 0 {packages => lib}/jats/subscript/_index.css | 0 {packages => lib}/jats/subscript/package.js | 0 .../jats/superscript/Superscript.js | 0 .../jats/superscript/SuperscriptConverter.js | 0 {packages => lib}/jats/superscript/_index.css | 0 {packages => lib}/jats/superscript/package.js | 0 .../jats/table-wrap/TableWrap.js | 0 .../jats/table-wrap/TableWrapComponent.js | 0 .../jats/table-wrap/TableWrapConverter.js | 0 {packages => lib}/jats/table-wrap/package.js | 0 {packages => lib}/jats/table/Table.js | 0 .../jats/table/TableComponent.js | 0 .../jats/table/TableConverter.js | 0 {packages => lib}/jats/table/package.js | 0 .../jats/title-group/TitleGroup.js | 0 .../jats/title-group/TitleGroupComponent.js | 2 +- .../jats/title-group/TitleGroupConverter.js | 2 +- {packages => lib}/jats/title-group/package.js | 0 {packages => lib}/jats/title/Title.js | 0 .../jats/title/TitleComponent.js | 0 .../jats/title/TitleConverter.js | 0 {packages => lib}/jats/title/_index.css | 0 {packages => lib}/jats/title/package.js | 0 {packages => lib}/jats/xref/AddXRefCommand.js | 0 {packages => lib}/jats/xref/AddXRefTool.js | 0 .../jats/xref/EditXRefCommand.js | 0 {packages => lib}/jats/xref/EditXRefTool.js | 0 {packages => lib}/jats/xref/XRef.js | 0 {packages => lib}/jats/xref/XRefComponent.js | 0 {packages => lib}/jats/xref/XRefConverter.js | 0 {packages => lib}/jats/xref/XRefTargets.js | 0 .../jats/xref/_edit-xref-tool.css | 0 {packages => lib}/jats/xref/_index.css | 0 .../jats/xref/_scrollbar-highlights.css | 0 {packages => lib}/jats/xref/_xref-targets.css | 0 {packages => lib}/jats/xref/_xref.css | 0 {packages => lib}/jats/xref/getXRefTargets.js | 0 {packages => lib}/jats/xref/package.js | 0 {packages => lib}/publisher/Publisher.js | 0 .../publisher/PublisherPackage.js | 0 .../publisher/PublisherTOCProvider.js | 0 {packages => lib}/publisher/_index.css | 0 {examples => lib}/tagging/README.md | 0 {packages => lib}/tagging/TaggingPackage.js | 0 .../tagging/aff/TagAffCommand.js | 0 {packages => lib}/tagging/aff/TagAffTool.js | 0 .../tagging/contrib/TagContribCommand.js | 0 .../tagging/contrib/TagContribTool.js | 0 .../tagging/ref/TagRefCommand.js | 0 {packages => lib}/tagging/ref/TagRefTool.js | 0 {examples => lib/texture}/ExampleXMLStore.js | 8 +- {packages => lib}/texture/FileClientStub.js | 0 {packages => lib}/texture/SaveHandlerStub.js | 0 {packages => lib}/texture/Texture.js | 0 .../texture/TextureConfigurator.js | 14 +- {packages => lib}/texture/package.js | 0 .../unsupported/UnsupportedInlineNode.js | 0 .../UnsupportedInlineNodeCommand.js | 0 .../UnsupportedInlineNodeComponent.js | 0 .../UnsupportedInlineNodeJATSConverter.js | 0 .../unsupported/UnsupportedInlineNodeTool.js | 0 .../unsupported/UnsupportedNode.js | 0 .../unsupported/UnsupportedNodeComponent.js | 0 .../UnsupportedNodeJATSConverter.js | 0 .../unsupported/UnsupportedNodePackage.js | 0 {packages => lib}/unsupported/_index.css | 0 {util => lib/util}/XMLIterator.js | 0 {util => lib/util}/diff.html | 0 {util => lib/util}/getFullName.js | 0 {util => lib/util}/renderNodeComponent.js | 0 {util => lib/util}/toDOM.js | 0 make.js | 178 +++++++++++------- package.json | 4 +- packages/tagging/README.md | 7 - test/jats/createJATSConfigurator.js | 6 +- test/jats/test.js | 2 +- texture.css | 2 +- 247 files changed, 321 insertions(+), 246 deletions(-) rename {examples/data => data}/elife-15278.xml (100%) rename {examples/data => data}/example.xml (100%) rename {examples/data => data}/kitchen-sink-author.xml (100%) rename {examples/data => data}/vanilla.xml (100%) rename {examples/data => data}/with-xref.xml (100%) create mode 100644 examples/author.html delete mode 100644 examples/author/app.css delete mode 100644 examples/author/index.html delete mode 100644 examples/config.js delete mode 100644 examples/index.html create mode 100644 examples/publisher.html delete mode 100644 examples/publisher/app.css delete mode 100644 examples/publisher/app.js delete mode 100644 examples/publisher/index.html create mode 100644 examples/tagging.html delete mode 100644 examples/tagging/app.css delete mode 100644 examples/tagging/app.js delete mode 100644 examples/tagging/index.html create mode 100644 index.es.js create mode 100644 index.html rename {packages => lib}/_index.css (100%) rename {packages => lib}/author/Author.js (100%) rename {packages => lib}/author/AuthorExporter.js (100%) rename {packages => lib}/author/AuthorImporter.js (100%) rename {packages => lib}/author/AuthorPackage.js (100%) rename {packages => lib}/author/AuthorTOCProvider.js (100%) rename {packages => lib}/author/JATSTransformer.js (100%) rename {packages => lib}/author/_index.css (100%) rename {examples => lib}/author/app.js (71%) rename {packages => lib}/author/heading/Heading.js (100%) rename {packages => lib}/author/heading/HeadingComponent.js (100%) rename {packages => lib}/author/heading/package.js (100%) rename {packages => lib}/common/AbstractWriter.js (100%) rename {packages => lib}/common/EditXML.js (100%) rename {packages => lib}/common/SaveHandler.js (100%) rename {packages => lib}/common/XMLAttributeEditor.js (100%) rename {packages => lib}/common/XMLEditor.js (100%) rename {packages => lib}/common/_edit-xml.css (100%) rename {packages => lib}/common/_index.css (100%) rename {packages => lib}/common/_isolated-node.css (100%) rename {packages => lib}/common/_toolbar.css (100%) rename {packages => lib}/common/package.js (100%) rename {packages => lib}/inline-wrapper/InlineWrapperJATSConverter.js (100%) rename {packages => lib}/inline-wrapper/InlineWrapperPackage.js (100%) rename {packages => lib}/jats/JATS.js (100%) rename {packages => lib}/jats/JATSExporter.js (100%) rename {packages => lib}/jats/JATSImporter.js (100%) rename {packages => lib}/jats/TextNodeConverter.js (100%) rename {packages => lib}/jats/_index.css (100%) rename {packages => lib}/jats/aff/Aff.js (100%) rename {packages => lib}/jats/aff/AffComponent.js (100%) rename {packages => lib}/jats/aff/AffConverter.js (100%) rename {packages => lib}/jats/aff/_aff.css (100%) rename {packages => lib}/jats/aff/_index.css (100%) rename {packages => lib}/jats/aff/affUtils.js (92%) rename {packages => lib}/jats/aff/package.js (100%) rename {packages => lib}/jats/article-meta/ArticleMeta.js (100%) rename {packages => lib}/jats/article-meta/ArticleMetaComponent.js (90%) rename {packages => lib}/jats/article-meta/ArticleMetaConverter.js (98%) rename {packages => lib}/jats/article-meta/package.js (100%) rename {packages => lib}/jats/article-title/ArticleTitle.js (100%) rename {packages => lib}/jats/article-title/ArticleTitleComponent.js (100%) rename {packages => lib}/jats/article-title/ArticleTitleConverter.js (100%) rename {packages => lib}/jats/article-title/_index.css (100%) rename {packages => lib}/jats/article-title/package.js (100%) rename {packages => lib}/jats/article/ArticleComponent.js (94%) rename {packages => lib}/jats/article/ArticleConverter.js (97%) rename {packages => lib}/jats/article/ArticleNode.js (100%) rename {packages => lib}/jats/article/TextureArticle.js (100%) rename {packages => lib}/jats/article/_index.css (100%) rename {packages => lib}/jats/article/package.js (100%) rename {packages => lib}/jats/back/Back.js (100%) rename {packages => lib}/jats/back/BackComponent.js (91%) rename {packages => lib}/jats/back/BackConverter.js (95%) rename {packages => lib}/jats/back/_index.css (100%) rename {packages => lib}/jats/back/package.js (100%) rename {packages => lib}/jats/body/Body.js (100%) rename {packages => lib}/jats/body/BodyComponent.js (100%) rename {packages => lib}/jats/body/BodyConverter.js (95%) rename {packages => lib}/jats/body/package.js (100%) rename {packages => lib}/jats/bold/Bold.js (100%) rename {packages => lib}/jats/bold/BoldCommand.js (100%) rename {packages => lib}/jats/bold/BoldConverter.js (100%) rename {packages => lib}/jats/bold/BoldTool.js (100%) rename {packages => lib}/jats/bold/_index.css (100%) rename {packages => lib}/jats/bold/package.js (100%) rename {packages => lib}/jats/caption/Caption.js (100%) rename {packages => lib}/jats/caption/CaptionComponent.js (100%) rename {packages => lib}/jats/caption/CaptionConverter.js (95%) rename {packages => lib}/jats/caption/package.js (100%) rename {packages => lib}/jats/contrib-group/ContribGroup.js (100%) rename {packages => lib}/jats/contrib-group/ContribGroupComponent.js (93%) rename {packages => lib}/jats/contrib-group/ContribGroupConverter.js (94%) rename {packages => lib}/jats/contrib-group/_index.css (100%) rename {packages => lib}/jats/contrib-group/package.js (100%) rename {packages => lib}/jats/contrib/Contrib.js (100%) rename {packages => lib}/jats/contrib/ContribComponent.js (100%) rename {packages => lib}/jats/contrib/ContribConverter.js (100%) rename {packages => lib}/jats/contrib/EditContrib.js (100%) rename {packages => lib}/jats/contrib/_contrib.css (100%) rename {packages => lib}/jats/contrib/_edit-contrib.css (100%) rename {packages => lib}/jats/contrib/_index.css (100%) rename {packages => lib}/jats/contrib/contribUtils.js (93%) rename {packages => lib}/jats/contrib/package.js (100%) rename {packages => lib}/jats/ext-link/EditExtLinkTool.js (100%) rename {packages => lib}/jats/ext-link/ExtLink.js (100%) rename {packages => lib}/jats/ext-link/ExtLinkComponent.js (100%) rename {packages => lib}/jats/ext-link/ExtLinkConverter.js (100%) rename {packages => lib}/jats/ext-link/ExtLinkTool.js (100%) rename {packages => lib}/jats/ext-link/_index.css (100%) rename {packages => lib}/jats/ext-link/package.js (100%) rename {packages => lib}/jats/figure/Figure.js (100%) rename {packages => lib}/jats/figure/FigureComponent.js (94%) rename {packages => lib}/jats/figure/FigureConverter.js (98%) rename {packages => lib}/jats/figure/FigureTarget.js (95%) rename {packages => lib}/jats/figure/_figure-target.css (100%) rename {packages => lib}/jats/figure/_index.css (100%) rename {packages => lib}/jats/figure/package.js (100%) rename {packages => lib}/jats/footnote/Footnote.js (100%) rename {packages => lib}/jats/footnote/FootnoteComponent.js (91%) rename {packages => lib}/jats/footnote/FootnoteConverter.js (94%) rename {packages => lib}/jats/footnote/_index.css (100%) rename {packages => lib}/jats/footnote/package.js (100%) rename {packages => lib}/jats/front/Front.js (100%) rename {packages => lib}/jats/front/FrontComponent.js (88%) rename {packages => lib}/jats/front/FrontConverter.js (95%) rename {packages => lib}/jats/front/package.js (100%) rename {packages => lib}/jats/graphic/Graphic.js (100%) rename {packages => lib}/jats/graphic/GraphicComponent.js (100%) rename {packages => lib}/jats/graphic/GraphicConverter.js (96%) rename {packages => lib}/jats/graphic/_index.css (100%) rename {packages => lib}/jats/graphic/package.js (100%) rename {packages => lib}/jats/italic/Italic.js (100%) rename {packages => lib}/jats/italic/ItalicCommand.js (100%) rename {packages => lib}/jats/italic/ItalicConverter.js (100%) rename {packages => lib}/jats/italic/ItalicTool.js (100%) rename {packages => lib}/jats/italic/_index.css (100%) rename {packages => lib}/jats/italic/package.js (100%) rename {packages => lib}/jats/label/Label.js (100%) rename {packages => lib}/jats/label/LabelComponent.js (100%) rename {packages => lib}/jats/label/LabelConverter.js (100%) rename {packages => lib}/jats/label/package.js (100%) rename {packages => lib}/jats/monospace/Monospace.js (100%) rename {packages => lib}/jats/monospace/MonospaceConverter.js (100%) rename {packages => lib}/jats/monospace/_index.css (100%) rename {packages => lib}/jats/monospace/package.js (100%) rename {packages => lib}/jats/package.js (100%) rename {packages => lib}/jats/paragraph/Paragraph.js (100%) rename {packages => lib}/jats/paragraph/ParagraphComponent.js (100%) rename {packages => lib}/jats/paragraph/ParagraphConverter.js (100%) rename {packages => lib}/jats/paragraph/package.js (100%) rename {packages => lib}/jats/ref-list/RefList.js (100%) rename {packages => lib}/jats/ref-list/RefListComponent.js (94%) rename {packages => lib}/jats/ref-list/RefListConverter.js (96%) rename {packages => lib}/jats/ref-list/_index.css (100%) rename {packages => lib}/jats/ref-list/package.js (100%) rename {packages => lib}/jats/ref/Ref.js (100%) rename {packages => lib}/jats/ref/RefComponent.js (100%) rename {packages => lib}/jats/ref/RefConverter.js (100%) rename {packages => lib}/jats/ref/RefTarget.js (100%) rename {packages => lib}/jats/ref/_index.css (100%) rename {packages => lib}/jats/ref/package.js (100%) rename {packages => lib}/jats/ref/refToHTML.js (100%) rename {packages => lib}/jats/section/Section.js (100%) rename {packages => lib}/jats/section/SectionComponent.js (100%) rename {packages => lib}/jats/section/SectionConverter.js (97%) rename {packages => lib}/jats/section/_index.css (100%) rename {packages => lib}/jats/section/package.js (100%) rename {packages => lib}/jats/subscript/Subscript.js (100%) rename {packages => lib}/jats/subscript/SubscriptConverter.js (100%) rename {packages => lib}/jats/subscript/_index.css (100%) rename {packages => lib}/jats/subscript/package.js (100%) rename {packages => lib}/jats/superscript/Superscript.js (100%) rename {packages => lib}/jats/superscript/SuperscriptConverter.js (100%) rename {packages => lib}/jats/superscript/_index.css (100%) rename {packages => lib}/jats/superscript/package.js (100%) rename {packages => lib}/jats/table-wrap/TableWrap.js (100%) rename {packages => lib}/jats/table-wrap/TableWrapComponent.js (100%) rename {packages => lib}/jats/table-wrap/TableWrapConverter.js (100%) rename {packages => lib}/jats/table-wrap/package.js (100%) rename {packages => lib}/jats/table/Table.js (100%) rename {packages => lib}/jats/table/TableComponent.js (100%) rename {packages => lib}/jats/table/TableConverter.js (100%) rename {packages => lib}/jats/table/package.js (100%) rename {packages => lib}/jats/title-group/TitleGroup.js (100%) rename {packages => lib}/jats/title-group/TitleGroupComponent.js (90%) rename {packages => lib}/jats/title-group/TitleGroupConverter.js (95%) rename {packages => lib}/jats/title-group/package.js (100%) rename {packages => lib}/jats/title/Title.js (100%) rename {packages => lib}/jats/title/TitleComponent.js (100%) rename {packages => lib}/jats/title/TitleConverter.js (100%) rename {packages => lib}/jats/title/_index.css (100%) rename {packages => lib}/jats/title/package.js (100%) rename {packages => lib}/jats/xref/AddXRefCommand.js (100%) rename {packages => lib}/jats/xref/AddXRefTool.js (100%) rename {packages => lib}/jats/xref/EditXRefCommand.js (100%) rename {packages => lib}/jats/xref/EditXRefTool.js (100%) rename {packages => lib}/jats/xref/XRef.js (100%) rename {packages => lib}/jats/xref/XRefComponent.js (100%) rename {packages => lib}/jats/xref/XRefConverter.js (100%) rename {packages => lib}/jats/xref/XRefTargets.js (100%) rename {packages => lib}/jats/xref/_edit-xref-tool.css (100%) rename {packages => lib}/jats/xref/_index.css (100%) rename {packages => lib}/jats/xref/_scrollbar-highlights.css (100%) rename {packages => lib}/jats/xref/_xref-targets.css (100%) rename {packages => lib}/jats/xref/_xref.css (100%) rename {packages => lib}/jats/xref/getXRefTargets.js (100%) rename {packages => lib}/jats/xref/package.js (100%) rename {packages => lib}/publisher/Publisher.js (100%) rename {packages => lib}/publisher/PublisherPackage.js (100%) rename {packages => lib}/publisher/PublisherTOCProvider.js (100%) rename {packages => lib}/publisher/_index.css (100%) rename {examples => lib}/tagging/README.md (100%) rename {packages => lib}/tagging/TaggingPackage.js (100%) rename {packages => lib}/tagging/aff/TagAffCommand.js (100%) rename {packages => lib}/tagging/aff/TagAffTool.js (100%) rename {packages => lib}/tagging/contrib/TagContribCommand.js (100%) rename {packages => lib}/tagging/contrib/TagContribTool.js (100%) rename {packages => lib}/tagging/ref/TagRefCommand.js (100%) rename {packages => lib}/tagging/ref/TagRefTool.js (100%) rename {examples => lib/texture}/ExampleXMLStore.js (79%) rename {packages => lib}/texture/FileClientStub.js (100%) rename {packages => lib}/texture/SaveHandlerStub.js (100%) rename {packages => lib}/texture/Texture.js (100%) rename {packages => lib}/texture/TextureConfigurator.js (77%) rename {packages => lib}/texture/package.js (100%) rename {packages => lib}/unsupported/UnsupportedInlineNode.js (100%) rename {packages => lib}/unsupported/UnsupportedInlineNodeCommand.js (100%) rename {packages => lib}/unsupported/UnsupportedInlineNodeComponent.js (100%) rename {packages => lib}/unsupported/UnsupportedInlineNodeJATSConverter.js (100%) rename {packages => lib}/unsupported/UnsupportedInlineNodeTool.js (100%) rename {packages => lib}/unsupported/UnsupportedNode.js (100%) rename {packages => lib}/unsupported/UnsupportedNodeComponent.js (100%) rename {packages => lib}/unsupported/UnsupportedNodeJATSConverter.js (100%) rename {packages => lib}/unsupported/UnsupportedNodePackage.js (100%) rename {packages => lib}/unsupported/_index.css (100%) rename {util => lib/util}/XMLIterator.js (100%) rename {util => lib/util}/diff.html (100%) rename {util => lib/util}/getFullName.js (100%) rename {util => lib/util}/renderNodeComponent.js (100%) rename {util => lib/util}/toDOM.js (100%) delete mode 100644 packages/tagging/README.md diff --git a/examples/data/elife-15278.xml b/data/elife-15278.xml similarity index 100% rename from examples/data/elife-15278.xml rename to data/elife-15278.xml diff --git a/examples/data/example.xml b/data/example.xml similarity index 100% rename from examples/data/example.xml rename to data/example.xml diff --git a/examples/data/kitchen-sink-author.xml b/data/kitchen-sink-author.xml similarity index 100% rename from examples/data/kitchen-sink-author.xml rename to data/kitchen-sink-author.xml diff --git a/examples/data/vanilla.xml b/data/vanilla.xml similarity index 100% rename from examples/data/vanilla.xml rename to data/vanilla.xml diff --git a/examples/data/with-xref.xml b/data/with-xref.xml similarity index 100% rename from examples/data/with-xref.xml rename to data/with-xref.xml diff --git a/examples/author.html b/examples/author.html new file mode 100644 index 000000000..47d3423cb --- /dev/null +++ b/examples/author.html @@ -0,0 +1,45 @@ + + + Texture Author + + + + + + + + + + + diff --git a/examples/author/app.css b/examples/author/app.css deleted file mode 100644 index d994158d6..000000000 --- a/examples/author/app.css +++ /dev/null @@ -1,11 +0,0 @@ -/* Substance Component styles */ -@import '../substance/substance.css'; -/* Texture Component styles */ -@import '../texture.css'; -/* You may want to use your own reset and pagestyle */ -@import '../substance/substance-reset.css'; -@import '../substance/substance-pagestyle.css'; -/* Using url here, so font-awesome does not get bundled. */ -@import url('../font-awesome/css/font-awesome.min.css'); -body { overflow: hidden; } -.sc-author { position: absolute; left: 0px; right: 0px; bottom: 0px; top: 0px; } \ No newline at end of file diff --git a/examples/author/index.html b/examples/author/index.html deleted file mode 100644 index 6f4321aa9..000000000 --- a/examples/author/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - Texture Author - - - - - - - - diff --git a/examples/config.js b/examples/config.js deleted file mode 100644 index 77a36d62e..000000000 --- a/examples/config.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -// this needs to stay commonjs as it is used only during build -module.exports = { - examples: ['author', 'publisher'] -}; diff --git a/examples/index.html b/examples/index.html deleted file mode 100644 index d2f8e273a..000000000 --- a/examples/index.html +++ /dev/null @@ -1,7 +0,0 @@ -

Texture Examples

- - diff --git a/examples/publisher.html b/examples/publisher.html new file mode 100644 index 000000000..9330d95c9 --- /dev/null +++ b/examples/publisher.html @@ -0,0 +1,45 @@ + + + Texture Publisher + + + + + + + + + + + diff --git a/examples/publisher/app.css b/examples/publisher/app.css deleted file mode 100644 index 52dc7c5d5..000000000 --- a/examples/publisher/app.css +++ /dev/null @@ -1,11 +0,0 @@ -/* Substance Component styles */ -@import '../substance/substance.css'; -/* Texture Component styles */ -@import '../texture.css'; -/* You may want to use your own reset and pagestyle */ -@import '../substance/substance-reset.css'; -@import '../substance/substance-pagestyle.css'; -/* Using url here, so font-awesome does not get bundled. */ -@import url('../font-awesome/css/font-awesome.min.css'); -body { overflow: hidden; } -.sc-publisher { position: absolute; left: 0px; right: 0px; bottom: 0px; top: 0px; } \ No newline at end of file diff --git a/examples/publisher/app.js b/examples/publisher/app.js deleted file mode 100644 index 0cf375f95..000000000 --- a/examples/publisher/app.js +++ /dev/null @@ -1,23 +0,0 @@ -import { substanceGlobals } from 'substance' -import Texture from '../../packages/texture/Texture' -import TextureConfigurator from '../../packages/texture/TextureConfigurator' -import PublisherPackage from '../../packages/publisher/PublisherPackage' -import ExampleXMLStore from '../ExampleXMLStore' - -substanceGlobals.DEBUG_RENDERING = true - -/* Configure example */ -let configurator = new TextureConfigurator() - .import(PublisherPackage) - .setXMLStore(ExampleXMLStore) - -if (typeof window !== 'undefined') { - window.onload = function() { - var app = Texture.mount({ - configurator: configurator, - documentId: 'elife-15278' - }, document.body) - window.app = app - } -} - diff --git a/examples/publisher/index.html b/examples/publisher/index.html deleted file mode 100644 index 8e0654481..000000000 --- a/examples/publisher/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - Texture Publisher - - - - - - - - - diff --git a/examples/tagging.html b/examples/tagging.html new file mode 100644 index 000000000..324129843 --- /dev/null +++ b/examples/tagging.html @@ -0,0 +1,47 @@ + + + Texture Publisher + + + + + + + + + + + diff --git a/examples/tagging/app.css b/examples/tagging/app.css deleted file mode 100644 index d994158d6..000000000 --- a/examples/tagging/app.css +++ /dev/null @@ -1,11 +0,0 @@ -/* Substance Component styles */ -@import '../substance/substance.css'; -/* Texture Component styles */ -@import '../texture.css'; -/* You may want to use your own reset and pagestyle */ -@import '../substance/substance-reset.css'; -@import '../substance/substance-pagestyle.css'; -/* Using url here, so font-awesome does not get bundled. */ -@import url('../font-awesome/css/font-awesome.min.css'); -body { overflow: hidden; } -.sc-author { position: absolute; left: 0px; right: 0px; bottom: 0px; top: 0px; } \ No newline at end of file diff --git a/examples/tagging/app.js b/examples/tagging/app.js deleted file mode 100644 index 2040f3744..000000000 --- a/examples/tagging/app.js +++ /dev/null @@ -1,25 +0,0 @@ -import { substanceGlobals } from 'substance' -import Texture from '../../packages/texture/Texture' -import TextureConfigurator from '../../packages/texture/TextureConfigurator' -import AuthorPackage from '../../packages/author/AuthorPackage' -import TaggingPackage from '../../packages/tagging/TaggingPackage' -import ExampleXMLStore from '../ExampleXMLStore' - -substanceGlobals.DEBUG_RENDERING = true - -/* Configure example */ -let configurator = new TextureConfigurator() - .import(AuthorPackage) - // enable tagging abilities - .import(TaggingPackage) - .setXMLStore(ExampleXMLStore) - -if (typeof window !== 'undefined') { - window.onload = function() { - let app = Texture.mount({ - configurator: configurator, - documentId: 'elife-15278' - }, document.body) - window.app = app - } -} diff --git a/examples/tagging/index.html b/examples/tagging/index.html deleted file mode 100644 index 23acde600..000000000 --- a/examples/tagging/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - Texture -- Tagging - - - - - - - - diff --git a/index.es.js b/index.es.js new file mode 100644 index 000000000..106a8a5b7 --- /dev/null +++ b/index.es.js @@ -0,0 +1,16 @@ +// texture +export { default as Texture } from './lib/texture/Texture' +export { default as TextureConfigurator } from './lib/texture/TextureConfigurator' +export { default as ExampleXMLStore } from './lib/texture/ExampleXMLStore' + +// author +export { default as Author } from './lib/author/Author' +export { default as AuthorPackage } from './lib/author/AuthorPackage' + +// publisher +export { default as Publisher } from './lib/publisher/Publisher' +export { default as PublisherPackage } from './lib/publisher/PublisherPackage' + +// tagging +export { default as TaggingPackage } from './lib/tagging/TaggingPackage' + diff --git a/index.html b/index.html new file mode 100644 index 000000000..97ee26db9 --- /dev/null +++ b/index.html @@ -0,0 +1,7 @@ +

Texture Examples

+ + diff --git a/packages/_index.css b/lib/_index.css similarity index 100% rename from packages/_index.css rename to lib/_index.css diff --git a/packages/author/Author.js b/lib/author/Author.js similarity index 100% rename from packages/author/Author.js rename to lib/author/Author.js diff --git a/packages/author/AuthorExporter.js b/lib/author/AuthorExporter.js similarity index 100% rename from packages/author/AuthorExporter.js rename to lib/author/AuthorExporter.js diff --git a/packages/author/AuthorImporter.js b/lib/author/AuthorImporter.js similarity index 100% rename from packages/author/AuthorImporter.js rename to lib/author/AuthorImporter.js diff --git a/packages/author/AuthorPackage.js b/lib/author/AuthorPackage.js similarity index 100% rename from packages/author/AuthorPackage.js rename to lib/author/AuthorPackage.js diff --git a/packages/author/AuthorTOCProvider.js b/lib/author/AuthorTOCProvider.js similarity index 100% rename from packages/author/AuthorTOCProvider.js rename to lib/author/AuthorTOCProvider.js diff --git a/packages/author/JATSTransformer.js b/lib/author/JATSTransformer.js similarity index 100% rename from packages/author/JATSTransformer.js rename to lib/author/JATSTransformer.js diff --git a/packages/author/_index.css b/lib/author/_index.css similarity index 100% rename from packages/author/_index.css rename to lib/author/_index.css diff --git a/examples/author/app.js b/lib/author/app.js similarity index 71% rename from examples/author/app.js rename to lib/author/app.js index 3398e849f..c836b3d65 100644 --- a/examples/author/app.js +++ b/lib/author/app.js @@ -1,7 +1,7 @@ import { substanceGlobals } from 'substance' -import Texture from '../../packages/texture/Texture' -import TextureConfigurator from '../../packages/texture/TextureConfigurator' -import AuthorPackage from '../../packages/author/AuthorPackage' +import Texture from '../../lib/texture/Texture' +import TextureConfigurator from '../../lib/texture/TextureConfigurator' +import AuthorPackage from '../../lib/author/AuthorPackage' import ExampleXMLStore from '../ExampleXMLStore' substanceGlobals.DEBUG_RENDERING = true; diff --git a/packages/author/heading/Heading.js b/lib/author/heading/Heading.js similarity index 100% rename from packages/author/heading/Heading.js rename to lib/author/heading/Heading.js diff --git a/packages/author/heading/HeadingComponent.js b/lib/author/heading/HeadingComponent.js similarity index 100% rename from packages/author/heading/HeadingComponent.js rename to lib/author/heading/HeadingComponent.js diff --git a/packages/author/heading/package.js b/lib/author/heading/package.js similarity index 100% rename from packages/author/heading/package.js rename to lib/author/heading/package.js diff --git a/packages/common/AbstractWriter.js b/lib/common/AbstractWriter.js similarity index 100% rename from packages/common/AbstractWriter.js rename to lib/common/AbstractWriter.js diff --git a/packages/common/EditXML.js b/lib/common/EditXML.js similarity index 100% rename from packages/common/EditXML.js rename to lib/common/EditXML.js diff --git a/packages/common/SaveHandler.js b/lib/common/SaveHandler.js similarity index 100% rename from packages/common/SaveHandler.js rename to lib/common/SaveHandler.js diff --git a/packages/common/XMLAttributeEditor.js b/lib/common/XMLAttributeEditor.js similarity index 100% rename from packages/common/XMLAttributeEditor.js rename to lib/common/XMLAttributeEditor.js diff --git a/packages/common/XMLEditor.js b/lib/common/XMLEditor.js similarity index 100% rename from packages/common/XMLEditor.js rename to lib/common/XMLEditor.js diff --git a/packages/common/_edit-xml.css b/lib/common/_edit-xml.css similarity index 100% rename from packages/common/_edit-xml.css rename to lib/common/_edit-xml.css diff --git a/packages/common/_index.css b/lib/common/_index.css similarity index 100% rename from packages/common/_index.css rename to lib/common/_index.css diff --git a/packages/common/_isolated-node.css b/lib/common/_isolated-node.css similarity index 100% rename from packages/common/_isolated-node.css rename to lib/common/_isolated-node.css diff --git a/packages/common/_toolbar.css b/lib/common/_toolbar.css similarity index 100% rename from packages/common/_toolbar.css rename to lib/common/_toolbar.css diff --git a/packages/common/package.js b/lib/common/package.js similarity index 100% rename from packages/common/package.js rename to lib/common/package.js diff --git a/packages/inline-wrapper/InlineWrapperJATSConverter.js b/lib/inline-wrapper/InlineWrapperJATSConverter.js similarity index 100% rename from packages/inline-wrapper/InlineWrapperJATSConverter.js rename to lib/inline-wrapper/InlineWrapperJATSConverter.js diff --git a/packages/inline-wrapper/InlineWrapperPackage.js b/lib/inline-wrapper/InlineWrapperPackage.js similarity index 100% rename from packages/inline-wrapper/InlineWrapperPackage.js rename to lib/inline-wrapper/InlineWrapperPackage.js diff --git a/packages/jats/JATS.js b/lib/jats/JATS.js similarity index 100% rename from packages/jats/JATS.js rename to lib/jats/JATS.js diff --git a/packages/jats/JATSExporter.js b/lib/jats/JATSExporter.js similarity index 100% rename from packages/jats/JATSExporter.js rename to lib/jats/JATSExporter.js diff --git a/packages/jats/JATSImporter.js b/lib/jats/JATSImporter.js similarity index 100% rename from packages/jats/JATSImporter.js rename to lib/jats/JATSImporter.js diff --git a/packages/jats/TextNodeConverter.js b/lib/jats/TextNodeConverter.js similarity index 100% rename from packages/jats/TextNodeConverter.js rename to lib/jats/TextNodeConverter.js diff --git a/packages/jats/_index.css b/lib/jats/_index.css similarity index 100% rename from packages/jats/_index.css rename to lib/jats/_index.css diff --git a/packages/jats/aff/Aff.js b/lib/jats/aff/Aff.js similarity index 100% rename from packages/jats/aff/Aff.js rename to lib/jats/aff/Aff.js diff --git a/packages/jats/aff/AffComponent.js b/lib/jats/aff/AffComponent.js similarity index 100% rename from packages/jats/aff/AffComponent.js rename to lib/jats/aff/AffComponent.js diff --git a/packages/jats/aff/AffConverter.js b/lib/jats/aff/AffConverter.js similarity index 100% rename from packages/jats/aff/AffConverter.js rename to lib/jats/aff/AffConverter.js diff --git a/packages/jats/aff/_aff.css b/lib/jats/aff/_aff.css similarity index 100% rename from packages/jats/aff/_aff.css rename to lib/jats/aff/_aff.css diff --git a/packages/jats/aff/_index.css b/lib/jats/aff/_index.css similarity index 100% rename from packages/jats/aff/_index.css rename to lib/jats/aff/_index.css diff --git a/packages/jats/aff/affUtils.js b/lib/jats/aff/affUtils.js similarity index 92% rename from packages/jats/aff/affUtils.js rename to lib/jats/aff/affUtils.js index 50caefc13..823f6338e 100644 --- a/packages/jats/aff/affUtils.js +++ b/lib/jats/aff/affUtils.js @@ -1,4 +1,4 @@ -import toDOM from '../../../util/toDOM' +import toDOM from '../../util/toDOM' /* Get all affiliations for a doc diff --git a/packages/jats/aff/package.js b/lib/jats/aff/package.js similarity index 100% rename from packages/jats/aff/package.js rename to lib/jats/aff/package.js diff --git a/packages/jats/article-meta/ArticleMeta.js b/lib/jats/article-meta/ArticleMeta.js similarity index 100% rename from packages/jats/article-meta/ArticleMeta.js rename to lib/jats/article-meta/ArticleMeta.js diff --git a/packages/jats/article-meta/ArticleMetaComponent.js b/lib/jats/article-meta/ArticleMetaComponent.js similarity index 90% rename from packages/jats/article-meta/ArticleMetaComponent.js rename to lib/jats/article-meta/ArticleMetaComponent.js index ec7a71e2a..164a6b903 100644 --- a/packages/jats/article-meta/ArticleMetaComponent.js +++ b/lib/jats/article-meta/ArticleMetaComponent.js @@ -1,5 +1,5 @@ import { Component } from 'substance' -import renderNodeComponent from '../../../util/renderNodeComponent' +import renderNodeComponent from '../../util/renderNodeComponent' class ArticleMetaComponent extends Component { render($$) { diff --git a/packages/jats/article-meta/ArticleMetaConverter.js b/lib/jats/article-meta/ArticleMetaConverter.js similarity index 98% rename from packages/jats/article-meta/ArticleMetaConverter.js rename to lib/jats/article-meta/ArticleMetaConverter.js index 5bfcc923a..2ae0ca1e1 100644 --- a/packages/jats/article-meta/ArticleMetaConverter.js +++ b/lib/jats/article-meta/ArticleMetaConverter.js @@ -1,4 +1,4 @@ -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' import JATS from '../JATS' export default { diff --git a/packages/jats/article-meta/package.js b/lib/jats/article-meta/package.js similarity index 100% rename from packages/jats/article-meta/package.js rename to lib/jats/article-meta/package.js diff --git a/packages/jats/article-title/ArticleTitle.js b/lib/jats/article-title/ArticleTitle.js similarity index 100% rename from packages/jats/article-title/ArticleTitle.js rename to lib/jats/article-title/ArticleTitle.js diff --git a/packages/jats/article-title/ArticleTitleComponent.js b/lib/jats/article-title/ArticleTitleComponent.js similarity index 100% rename from packages/jats/article-title/ArticleTitleComponent.js rename to lib/jats/article-title/ArticleTitleComponent.js diff --git a/packages/jats/article-title/ArticleTitleConverter.js b/lib/jats/article-title/ArticleTitleConverter.js similarity index 100% rename from packages/jats/article-title/ArticleTitleConverter.js rename to lib/jats/article-title/ArticleTitleConverter.js diff --git a/packages/jats/article-title/_index.css b/lib/jats/article-title/_index.css similarity index 100% rename from packages/jats/article-title/_index.css rename to lib/jats/article-title/_index.css diff --git a/packages/jats/article-title/package.js b/lib/jats/article-title/package.js similarity index 100% rename from packages/jats/article-title/package.js rename to lib/jats/article-title/package.js diff --git a/packages/jats/article/ArticleComponent.js b/lib/jats/article/ArticleComponent.js similarity index 94% rename from packages/jats/article/ArticleComponent.js rename to lib/jats/article/ArticleComponent.js index 310876454..79a46960f 100644 --- a/packages/jats/article/ArticleComponent.js +++ b/lib/jats/article/ArticleComponent.js @@ -1,5 +1,5 @@ import { Component } from 'substance' -import renderNodeComponent from '../../../util/renderNodeComponent' +import renderNodeComponent from '../../util/renderNodeComponent' class ArticleComponent extends Component { diff --git a/packages/jats/article/ArticleConverter.js b/lib/jats/article/ArticleConverter.js similarity index 97% rename from packages/jats/article/ArticleConverter.js rename to lib/jats/article/ArticleConverter.js index 39952592e..563ad75bb 100644 --- a/packages/jats/article/ArticleConverter.js +++ b/lib/jats/article/ArticleConverter.js @@ -1,4 +1,4 @@ -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' export default { diff --git a/packages/jats/article/ArticleNode.js b/lib/jats/article/ArticleNode.js similarity index 100% rename from packages/jats/article/ArticleNode.js rename to lib/jats/article/ArticleNode.js diff --git a/packages/jats/article/TextureArticle.js b/lib/jats/article/TextureArticle.js similarity index 100% rename from packages/jats/article/TextureArticle.js rename to lib/jats/article/TextureArticle.js diff --git a/packages/jats/article/_index.css b/lib/jats/article/_index.css similarity index 100% rename from packages/jats/article/_index.css rename to lib/jats/article/_index.css diff --git a/packages/jats/article/package.js b/lib/jats/article/package.js similarity index 100% rename from packages/jats/article/package.js rename to lib/jats/article/package.js diff --git a/packages/jats/back/Back.js b/lib/jats/back/Back.js similarity index 100% rename from packages/jats/back/Back.js rename to lib/jats/back/Back.js diff --git a/packages/jats/back/BackComponent.js b/lib/jats/back/BackComponent.js similarity index 91% rename from packages/jats/back/BackComponent.js rename to lib/jats/back/BackComponent.js index 6a0d234a3..3eb513590 100644 --- a/packages/jats/back/BackComponent.js +++ b/lib/jats/back/BackComponent.js @@ -1,5 +1,5 @@ import { Component } from 'substance' -import renderNodeComponent from '../../../util/renderNodeComponent' +import renderNodeComponent from '../../util/renderNodeComponent' class BackComponent extends Component { diff --git a/packages/jats/back/BackConverter.js b/lib/jats/back/BackConverter.js similarity index 95% rename from packages/jats/back/BackConverter.js rename to lib/jats/back/BackConverter.js index c7d584692..0b054dfde 100644 --- a/packages/jats/back/BackConverter.js +++ b/lib/jats/back/BackConverter.js @@ -1,4 +1,4 @@ -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' let BACK_CONTENT = ["ack", "app-group", "bio", "fn-group", "glossary", "ref-list", "notes", "sec"] export default { diff --git a/packages/jats/back/_index.css b/lib/jats/back/_index.css similarity index 100% rename from packages/jats/back/_index.css rename to lib/jats/back/_index.css diff --git a/packages/jats/back/package.js b/lib/jats/back/package.js similarity index 100% rename from packages/jats/back/package.js rename to lib/jats/back/package.js diff --git a/packages/jats/body/Body.js b/lib/jats/body/Body.js similarity index 100% rename from packages/jats/body/Body.js rename to lib/jats/body/Body.js diff --git a/packages/jats/body/BodyComponent.js b/lib/jats/body/BodyComponent.js similarity index 100% rename from packages/jats/body/BodyComponent.js rename to lib/jats/body/BodyComponent.js diff --git a/packages/jats/body/BodyConverter.js b/lib/jats/body/BodyConverter.js similarity index 95% rename from packages/jats/body/BodyConverter.js rename to lib/jats/body/BodyConverter.js index f8c0cad26..0bf8c59fa 100644 --- a/packages/jats/body/BodyConverter.js +++ b/lib/jats/body/BodyConverter.js @@ -1,5 +1,5 @@ import JATS from '../JATS' -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' export default { diff --git a/packages/jats/body/package.js b/lib/jats/body/package.js similarity index 100% rename from packages/jats/body/package.js rename to lib/jats/body/package.js diff --git a/packages/jats/bold/Bold.js b/lib/jats/bold/Bold.js similarity index 100% rename from packages/jats/bold/Bold.js rename to lib/jats/bold/Bold.js diff --git a/packages/jats/bold/BoldCommand.js b/lib/jats/bold/BoldCommand.js similarity index 100% rename from packages/jats/bold/BoldCommand.js rename to lib/jats/bold/BoldCommand.js diff --git a/packages/jats/bold/BoldConverter.js b/lib/jats/bold/BoldConverter.js similarity index 100% rename from packages/jats/bold/BoldConverter.js rename to lib/jats/bold/BoldConverter.js diff --git a/packages/jats/bold/BoldTool.js b/lib/jats/bold/BoldTool.js similarity index 100% rename from packages/jats/bold/BoldTool.js rename to lib/jats/bold/BoldTool.js diff --git a/packages/jats/bold/_index.css b/lib/jats/bold/_index.css similarity index 100% rename from packages/jats/bold/_index.css rename to lib/jats/bold/_index.css diff --git a/packages/jats/bold/package.js b/lib/jats/bold/package.js similarity index 100% rename from packages/jats/bold/package.js rename to lib/jats/bold/package.js diff --git a/packages/jats/caption/Caption.js b/lib/jats/caption/Caption.js similarity index 100% rename from packages/jats/caption/Caption.js rename to lib/jats/caption/Caption.js diff --git a/packages/jats/caption/CaptionComponent.js b/lib/jats/caption/CaptionComponent.js similarity index 100% rename from packages/jats/caption/CaptionComponent.js rename to lib/jats/caption/CaptionComponent.js diff --git a/packages/jats/caption/CaptionConverter.js b/lib/jats/caption/CaptionConverter.js similarity index 95% rename from packages/jats/caption/CaptionConverter.js rename to lib/jats/caption/CaptionConverter.js index bbab175bb..f30b6724b 100644 --- a/packages/jats/caption/CaptionConverter.js +++ b/lib/jats/caption/CaptionConverter.js @@ -1,4 +1,4 @@ -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' export default { diff --git a/packages/jats/caption/package.js b/lib/jats/caption/package.js similarity index 100% rename from packages/jats/caption/package.js rename to lib/jats/caption/package.js diff --git a/packages/jats/contrib-group/ContribGroup.js b/lib/jats/contrib-group/ContribGroup.js similarity index 100% rename from packages/jats/contrib-group/ContribGroup.js rename to lib/jats/contrib-group/ContribGroup.js diff --git a/packages/jats/contrib-group/ContribGroupComponent.js b/lib/jats/contrib-group/ContribGroupComponent.js similarity index 93% rename from packages/jats/contrib-group/ContribGroupComponent.js rename to lib/jats/contrib-group/ContribGroupComponent.js index 309470aac..a242339a0 100644 --- a/packages/jats/contrib-group/ContribGroupComponent.js +++ b/lib/jats/contrib-group/ContribGroupComponent.js @@ -1,5 +1,5 @@ import { Component } from 'substance' -import renderNodeComponent from '../../../util/renderNodeComponent' +import renderNodeComponent from '../../util/renderNodeComponent' class ContribGroupComponent extends Component { didMount() { diff --git a/packages/jats/contrib-group/ContribGroupConverter.js b/lib/jats/contrib-group/ContribGroupConverter.js similarity index 94% rename from packages/jats/contrib-group/ContribGroupConverter.js rename to lib/jats/contrib-group/ContribGroupConverter.js index 2cd421ce2..e22357163 100644 --- a/packages/jats/contrib-group/ContribGroupConverter.js +++ b/lib/jats/contrib-group/ContribGroupConverter.js @@ -1,4 +1,4 @@ -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' let CONTRIB_GROUP = ['contrib', 'address', 'aff', 'aff-alternatives', 'author-comment', 'bio', 'email', 'etal', 'ext-link', 'fn', 'on-behalf-of', 'role', 'uri', 'xref', 'x'] diff --git a/packages/jats/contrib-group/_index.css b/lib/jats/contrib-group/_index.css similarity index 100% rename from packages/jats/contrib-group/_index.css rename to lib/jats/contrib-group/_index.css diff --git a/packages/jats/contrib-group/package.js b/lib/jats/contrib-group/package.js similarity index 100% rename from packages/jats/contrib-group/package.js rename to lib/jats/contrib-group/package.js diff --git a/packages/jats/contrib/Contrib.js b/lib/jats/contrib/Contrib.js similarity index 100% rename from packages/jats/contrib/Contrib.js rename to lib/jats/contrib/Contrib.js diff --git a/packages/jats/contrib/ContribComponent.js b/lib/jats/contrib/ContribComponent.js similarity index 100% rename from packages/jats/contrib/ContribComponent.js rename to lib/jats/contrib/ContribComponent.js diff --git a/packages/jats/contrib/ContribConverter.js b/lib/jats/contrib/ContribConverter.js similarity index 100% rename from packages/jats/contrib/ContribConverter.js rename to lib/jats/contrib/ContribConverter.js diff --git a/packages/jats/contrib/EditContrib.js b/lib/jats/contrib/EditContrib.js similarity index 100% rename from packages/jats/contrib/EditContrib.js rename to lib/jats/contrib/EditContrib.js diff --git a/packages/jats/contrib/_contrib.css b/lib/jats/contrib/_contrib.css similarity index 100% rename from packages/jats/contrib/_contrib.css rename to lib/jats/contrib/_contrib.css diff --git a/packages/jats/contrib/_edit-contrib.css b/lib/jats/contrib/_edit-contrib.css similarity index 100% rename from packages/jats/contrib/_edit-contrib.css rename to lib/jats/contrib/_edit-contrib.css diff --git a/packages/jats/contrib/_index.css b/lib/jats/contrib/_index.css similarity index 100% rename from packages/jats/contrib/_index.css rename to lib/jats/contrib/_index.css diff --git a/packages/jats/contrib/contribUtils.js b/lib/jats/contrib/contribUtils.js similarity index 93% rename from packages/jats/contrib/contribUtils.js rename to lib/jats/contrib/contribUtils.js index b121bd132..08a0752f9 100644 --- a/packages/jats/contrib/contribUtils.js +++ b/lib/jats/contrib/contribUtils.js @@ -1,5 +1,5 @@ -import toDOM from '../../../util/toDOM' -import getFullName from '../../../util/getFullName' +import toDOM from '../../util/toDOM' +import getFullName from '../../util/getFullName' import { getAffs } from '../aff/affUtils' /* diff --git a/packages/jats/contrib/package.js b/lib/jats/contrib/package.js similarity index 100% rename from packages/jats/contrib/package.js rename to lib/jats/contrib/package.js diff --git a/packages/jats/ext-link/EditExtLinkTool.js b/lib/jats/ext-link/EditExtLinkTool.js similarity index 100% rename from packages/jats/ext-link/EditExtLinkTool.js rename to lib/jats/ext-link/EditExtLinkTool.js diff --git a/packages/jats/ext-link/ExtLink.js b/lib/jats/ext-link/ExtLink.js similarity index 100% rename from packages/jats/ext-link/ExtLink.js rename to lib/jats/ext-link/ExtLink.js diff --git a/packages/jats/ext-link/ExtLinkComponent.js b/lib/jats/ext-link/ExtLinkComponent.js similarity index 100% rename from packages/jats/ext-link/ExtLinkComponent.js rename to lib/jats/ext-link/ExtLinkComponent.js diff --git a/packages/jats/ext-link/ExtLinkConverter.js b/lib/jats/ext-link/ExtLinkConverter.js similarity index 100% rename from packages/jats/ext-link/ExtLinkConverter.js rename to lib/jats/ext-link/ExtLinkConverter.js diff --git a/packages/jats/ext-link/ExtLinkTool.js b/lib/jats/ext-link/ExtLinkTool.js similarity index 100% rename from packages/jats/ext-link/ExtLinkTool.js rename to lib/jats/ext-link/ExtLinkTool.js diff --git a/packages/jats/ext-link/_index.css b/lib/jats/ext-link/_index.css similarity index 100% rename from packages/jats/ext-link/_index.css rename to lib/jats/ext-link/_index.css diff --git a/packages/jats/ext-link/package.js b/lib/jats/ext-link/package.js similarity index 100% rename from packages/jats/ext-link/package.js rename to lib/jats/ext-link/package.js diff --git a/packages/jats/figure/Figure.js b/lib/jats/figure/Figure.js similarity index 100% rename from packages/jats/figure/Figure.js rename to lib/jats/figure/Figure.js diff --git a/packages/jats/figure/FigureComponent.js b/lib/jats/figure/FigureComponent.js similarity index 94% rename from packages/jats/figure/FigureComponent.js rename to lib/jats/figure/FigureComponent.js index bdfd878bc..a2dd0cf9d 100644 --- a/packages/jats/figure/FigureComponent.js +++ b/lib/jats/figure/FigureComponent.js @@ -1,5 +1,5 @@ import { Component } from 'substance' -import renderNodeComponent from '../../../util/renderNodeComponent' +import renderNodeComponent from '../../util/renderNodeComponent' class FigureComponent extends Component { diff --git a/packages/jats/figure/FigureConverter.js b/lib/jats/figure/FigureConverter.js similarity index 98% rename from packages/jats/figure/FigureConverter.js rename to lib/jats/figure/FigureConverter.js index 958236298..04e40bf7b 100644 --- a/packages/jats/figure/FigureConverter.js +++ b/lib/jats/figure/FigureConverter.js @@ -1,5 +1,5 @@ import JATS from '../JATS' -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' let ACCESS_OR_LINK = JATS.ACCESS.concat(JATS.ADDRESS_LINK) let FIGURE_CONTENT = JATS.BLOCK_MATH diff --git a/packages/jats/figure/FigureTarget.js b/lib/jats/figure/FigureTarget.js similarity index 95% rename from packages/jats/figure/FigureTarget.js rename to lib/jats/figure/FigureTarget.js index f005d10ba..5b6e94717 100644 --- a/packages/jats/figure/FigureTarget.js +++ b/lib/jats/figure/FigureTarget.js @@ -1,5 +1,5 @@ import { Component } from 'substance' -import renderNodeComponent from '../../../util/renderNodeComponent' +import renderNodeComponent from '../../util/renderNodeComponent' /* Renders a keyboard-selectable figure target item diff --git a/packages/jats/figure/_figure-target.css b/lib/jats/figure/_figure-target.css similarity index 100% rename from packages/jats/figure/_figure-target.css rename to lib/jats/figure/_figure-target.css diff --git a/packages/jats/figure/_index.css b/lib/jats/figure/_index.css similarity index 100% rename from packages/jats/figure/_index.css rename to lib/jats/figure/_index.css diff --git a/packages/jats/figure/package.js b/lib/jats/figure/package.js similarity index 100% rename from packages/jats/figure/package.js rename to lib/jats/figure/package.js diff --git a/packages/jats/footnote/Footnote.js b/lib/jats/footnote/Footnote.js similarity index 100% rename from packages/jats/footnote/Footnote.js rename to lib/jats/footnote/Footnote.js diff --git a/packages/jats/footnote/FootnoteComponent.js b/lib/jats/footnote/FootnoteComponent.js similarity index 91% rename from packages/jats/footnote/FootnoteComponent.js rename to lib/jats/footnote/FootnoteComponent.js index bef24087a..1303781f1 100644 --- a/packages/jats/footnote/FootnoteComponent.js +++ b/lib/jats/footnote/FootnoteComponent.js @@ -1,5 +1,5 @@ import { Component, TextPropertyComponent } from 'substance' -import renderNodeComponent from '../../../util/renderNodeComponent' +import renderNodeComponent from '../../util/renderNodeComponent' class FootnoteComponent extends Component { diff --git a/packages/jats/footnote/FootnoteConverter.js b/lib/jats/footnote/FootnoteConverter.js similarity index 94% rename from packages/jats/footnote/FootnoteConverter.js rename to lib/jats/footnote/FootnoteConverter.js index 6194bf3ec..7afc0c237 100644 --- a/packages/jats/footnote/FootnoteConverter.js +++ b/lib/jats/footnote/FootnoteConverter.js @@ -1,4 +1,4 @@ -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' export default { diff --git a/packages/jats/footnote/_index.css b/lib/jats/footnote/_index.css similarity index 100% rename from packages/jats/footnote/_index.css rename to lib/jats/footnote/_index.css diff --git a/packages/jats/footnote/package.js b/lib/jats/footnote/package.js similarity index 100% rename from packages/jats/footnote/package.js rename to lib/jats/footnote/package.js diff --git a/packages/jats/front/Front.js b/lib/jats/front/Front.js similarity index 100% rename from packages/jats/front/Front.js rename to lib/jats/front/Front.js diff --git a/packages/jats/front/FrontComponent.js b/lib/jats/front/FrontComponent.js similarity index 88% rename from packages/jats/front/FrontComponent.js rename to lib/jats/front/FrontComponent.js index 4cf9abb65..5a03ea683 100644 --- a/packages/jats/front/FrontComponent.js +++ b/lib/jats/front/FrontComponent.js @@ -1,5 +1,5 @@ import { Component } from 'substance' -import renderNodeComponent from '../../../util/renderNodeComponent' +import renderNodeComponent from '../../util/renderNodeComponent' class FrontComponent extends Component { diff --git a/packages/jats/front/FrontConverter.js b/lib/jats/front/FrontConverter.js similarity index 95% rename from packages/jats/front/FrontConverter.js rename to lib/jats/front/FrontConverter.js index f3587a934..16952dbdc 100644 --- a/packages/jats/front/FrontConverter.js +++ b/lib/jats/front/FrontConverter.js @@ -1,4 +1,4 @@ -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' let FRONT_CONTENT = ['def-list', 'list', 'ack', 'bio', 'fn-group', 'glossary', 'notes'] diff --git a/packages/jats/front/package.js b/lib/jats/front/package.js similarity index 100% rename from packages/jats/front/package.js rename to lib/jats/front/package.js diff --git a/packages/jats/graphic/Graphic.js b/lib/jats/graphic/Graphic.js similarity index 100% rename from packages/jats/graphic/Graphic.js rename to lib/jats/graphic/Graphic.js diff --git a/packages/jats/graphic/GraphicComponent.js b/lib/jats/graphic/GraphicComponent.js similarity index 100% rename from packages/jats/graphic/GraphicComponent.js rename to lib/jats/graphic/GraphicComponent.js diff --git a/packages/jats/graphic/GraphicConverter.js b/lib/jats/graphic/GraphicConverter.js similarity index 96% rename from packages/jats/graphic/GraphicConverter.js rename to lib/jats/graphic/GraphicConverter.js index 5e04245ed..82c7fa98c 100644 --- a/packages/jats/graphic/GraphicConverter.js +++ b/lib/jats/graphic/GraphicConverter.js @@ -1,5 +1,5 @@ import JATS from '../JATS' -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' let GRAPHIC_ELEMENTS = JATS.ACCESS .concat(JATS.ADDRESS_LINK) diff --git a/packages/jats/graphic/_index.css b/lib/jats/graphic/_index.css similarity index 100% rename from packages/jats/graphic/_index.css rename to lib/jats/graphic/_index.css diff --git a/packages/jats/graphic/package.js b/lib/jats/graphic/package.js similarity index 100% rename from packages/jats/graphic/package.js rename to lib/jats/graphic/package.js diff --git a/packages/jats/italic/Italic.js b/lib/jats/italic/Italic.js similarity index 100% rename from packages/jats/italic/Italic.js rename to lib/jats/italic/Italic.js diff --git a/packages/jats/italic/ItalicCommand.js b/lib/jats/italic/ItalicCommand.js similarity index 100% rename from packages/jats/italic/ItalicCommand.js rename to lib/jats/italic/ItalicCommand.js diff --git a/packages/jats/italic/ItalicConverter.js b/lib/jats/italic/ItalicConverter.js similarity index 100% rename from packages/jats/italic/ItalicConverter.js rename to lib/jats/italic/ItalicConverter.js diff --git a/packages/jats/italic/ItalicTool.js b/lib/jats/italic/ItalicTool.js similarity index 100% rename from packages/jats/italic/ItalicTool.js rename to lib/jats/italic/ItalicTool.js diff --git a/packages/jats/italic/_index.css b/lib/jats/italic/_index.css similarity index 100% rename from packages/jats/italic/_index.css rename to lib/jats/italic/_index.css diff --git a/packages/jats/italic/package.js b/lib/jats/italic/package.js similarity index 100% rename from packages/jats/italic/package.js rename to lib/jats/italic/package.js diff --git a/packages/jats/label/Label.js b/lib/jats/label/Label.js similarity index 100% rename from packages/jats/label/Label.js rename to lib/jats/label/Label.js diff --git a/packages/jats/label/LabelComponent.js b/lib/jats/label/LabelComponent.js similarity index 100% rename from packages/jats/label/LabelComponent.js rename to lib/jats/label/LabelComponent.js diff --git a/packages/jats/label/LabelConverter.js b/lib/jats/label/LabelConverter.js similarity index 100% rename from packages/jats/label/LabelConverter.js rename to lib/jats/label/LabelConverter.js diff --git a/packages/jats/label/package.js b/lib/jats/label/package.js similarity index 100% rename from packages/jats/label/package.js rename to lib/jats/label/package.js diff --git a/packages/jats/monospace/Monospace.js b/lib/jats/monospace/Monospace.js similarity index 100% rename from packages/jats/monospace/Monospace.js rename to lib/jats/monospace/Monospace.js diff --git a/packages/jats/monospace/MonospaceConverter.js b/lib/jats/monospace/MonospaceConverter.js similarity index 100% rename from packages/jats/monospace/MonospaceConverter.js rename to lib/jats/monospace/MonospaceConverter.js diff --git a/packages/jats/monospace/_index.css b/lib/jats/monospace/_index.css similarity index 100% rename from packages/jats/monospace/_index.css rename to lib/jats/monospace/_index.css diff --git a/packages/jats/monospace/package.js b/lib/jats/monospace/package.js similarity index 100% rename from packages/jats/monospace/package.js rename to lib/jats/monospace/package.js diff --git a/packages/jats/package.js b/lib/jats/package.js similarity index 100% rename from packages/jats/package.js rename to lib/jats/package.js diff --git a/packages/jats/paragraph/Paragraph.js b/lib/jats/paragraph/Paragraph.js similarity index 100% rename from packages/jats/paragraph/Paragraph.js rename to lib/jats/paragraph/Paragraph.js diff --git a/packages/jats/paragraph/ParagraphComponent.js b/lib/jats/paragraph/ParagraphComponent.js similarity index 100% rename from packages/jats/paragraph/ParagraphComponent.js rename to lib/jats/paragraph/ParagraphComponent.js diff --git a/packages/jats/paragraph/ParagraphConverter.js b/lib/jats/paragraph/ParagraphConverter.js similarity index 100% rename from packages/jats/paragraph/ParagraphConverter.js rename to lib/jats/paragraph/ParagraphConverter.js diff --git a/packages/jats/paragraph/package.js b/lib/jats/paragraph/package.js similarity index 100% rename from packages/jats/paragraph/package.js rename to lib/jats/paragraph/package.js diff --git a/packages/jats/ref-list/RefList.js b/lib/jats/ref-list/RefList.js similarity index 100% rename from packages/jats/ref-list/RefList.js rename to lib/jats/ref-list/RefList.js diff --git a/packages/jats/ref-list/RefListComponent.js b/lib/jats/ref-list/RefListComponent.js similarity index 94% rename from packages/jats/ref-list/RefListComponent.js rename to lib/jats/ref-list/RefListComponent.js index a9a709aa7..1048e8983 100644 --- a/packages/jats/ref-list/RefListComponent.js +++ b/lib/jats/ref-list/RefListComponent.js @@ -1,5 +1,5 @@ import { Component } from 'substance' -import renderNodeComponent from '../../../util/renderNodeComponent' +import renderNodeComponent from '../../util/renderNodeComponent' class RefListComponent extends Component { didMount() { diff --git a/packages/jats/ref-list/RefListConverter.js b/lib/jats/ref-list/RefListConverter.js similarity index 96% rename from packages/jats/ref-list/RefListConverter.js rename to lib/jats/ref-list/RefListConverter.js index 89120d15c..214f469cd 100644 --- a/packages/jats/ref-list/RefListConverter.js +++ b/lib/jats/ref-list/RefListConverter.js @@ -1,5 +1,5 @@ import JATS from '../JATS' -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' let REFLIST_CONTENT = ['ref', 'ref-list'].concat(JATS.PARA_LEVEL) diff --git a/packages/jats/ref-list/_index.css b/lib/jats/ref-list/_index.css similarity index 100% rename from packages/jats/ref-list/_index.css rename to lib/jats/ref-list/_index.css diff --git a/packages/jats/ref-list/package.js b/lib/jats/ref-list/package.js similarity index 100% rename from packages/jats/ref-list/package.js rename to lib/jats/ref-list/package.js diff --git a/packages/jats/ref/Ref.js b/lib/jats/ref/Ref.js similarity index 100% rename from packages/jats/ref/Ref.js rename to lib/jats/ref/Ref.js diff --git a/packages/jats/ref/RefComponent.js b/lib/jats/ref/RefComponent.js similarity index 100% rename from packages/jats/ref/RefComponent.js rename to lib/jats/ref/RefComponent.js diff --git a/packages/jats/ref/RefConverter.js b/lib/jats/ref/RefConverter.js similarity index 100% rename from packages/jats/ref/RefConverter.js rename to lib/jats/ref/RefConverter.js diff --git a/packages/jats/ref/RefTarget.js b/lib/jats/ref/RefTarget.js similarity index 100% rename from packages/jats/ref/RefTarget.js rename to lib/jats/ref/RefTarget.js diff --git a/packages/jats/ref/_index.css b/lib/jats/ref/_index.css similarity index 100% rename from packages/jats/ref/_index.css rename to lib/jats/ref/_index.css diff --git a/packages/jats/ref/package.js b/lib/jats/ref/package.js similarity index 100% rename from packages/jats/ref/package.js rename to lib/jats/ref/package.js diff --git a/packages/jats/ref/refToHTML.js b/lib/jats/ref/refToHTML.js similarity index 100% rename from packages/jats/ref/refToHTML.js rename to lib/jats/ref/refToHTML.js diff --git a/packages/jats/section/Section.js b/lib/jats/section/Section.js similarity index 100% rename from packages/jats/section/Section.js rename to lib/jats/section/Section.js diff --git a/packages/jats/section/SectionComponent.js b/lib/jats/section/SectionComponent.js similarity index 100% rename from packages/jats/section/SectionComponent.js rename to lib/jats/section/SectionComponent.js diff --git a/packages/jats/section/SectionConverter.js b/lib/jats/section/SectionConverter.js similarity index 97% rename from packages/jats/section/SectionConverter.js rename to lib/jats/section/SectionConverter.js index 9607e0dfa..d88d44c2b 100644 --- a/packages/jats/section/SectionConverter.js +++ b/lib/jats/section/SectionConverter.js @@ -1,5 +1,5 @@ import JATS from '../JATS' -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' export default { diff --git a/packages/jats/section/_index.css b/lib/jats/section/_index.css similarity index 100% rename from packages/jats/section/_index.css rename to lib/jats/section/_index.css diff --git a/packages/jats/section/package.js b/lib/jats/section/package.js similarity index 100% rename from packages/jats/section/package.js rename to lib/jats/section/package.js diff --git a/packages/jats/subscript/Subscript.js b/lib/jats/subscript/Subscript.js similarity index 100% rename from packages/jats/subscript/Subscript.js rename to lib/jats/subscript/Subscript.js diff --git a/packages/jats/subscript/SubscriptConverter.js b/lib/jats/subscript/SubscriptConverter.js similarity index 100% rename from packages/jats/subscript/SubscriptConverter.js rename to lib/jats/subscript/SubscriptConverter.js diff --git a/packages/jats/subscript/_index.css b/lib/jats/subscript/_index.css similarity index 100% rename from packages/jats/subscript/_index.css rename to lib/jats/subscript/_index.css diff --git a/packages/jats/subscript/package.js b/lib/jats/subscript/package.js similarity index 100% rename from packages/jats/subscript/package.js rename to lib/jats/subscript/package.js diff --git a/packages/jats/superscript/Superscript.js b/lib/jats/superscript/Superscript.js similarity index 100% rename from packages/jats/superscript/Superscript.js rename to lib/jats/superscript/Superscript.js diff --git a/packages/jats/superscript/SuperscriptConverter.js b/lib/jats/superscript/SuperscriptConverter.js similarity index 100% rename from packages/jats/superscript/SuperscriptConverter.js rename to lib/jats/superscript/SuperscriptConverter.js diff --git a/packages/jats/superscript/_index.css b/lib/jats/superscript/_index.css similarity index 100% rename from packages/jats/superscript/_index.css rename to lib/jats/superscript/_index.css diff --git a/packages/jats/superscript/package.js b/lib/jats/superscript/package.js similarity index 100% rename from packages/jats/superscript/package.js rename to lib/jats/superscript/package.js diff --git a/packages/jats/table-wrap/TableWrap.js b/lib/jats/table-wrap/TableWrap.js similarity index 100% rename from packages/jats/table-wrap/TableWrap.js rename to lib/jats/table-wrap/TableWrap.js diff --git a/packages/jats/table-wrap/TableWrapComponent.js b/lib/jats/table-wrap/TableWrapComponent.js similarity index 100% rename from packages/jats/table-wrap/TableWrapComponent.js rename to lib/jats/table-wrap/TableWrapComponent.js diff --git a/packages/jats/table-wrap/TableWrapConverter.js b/lib/jats/table-wrap/TableWrapConverter.js similarity index 100% rename from packages/jats/table-wrap/TableWrapConverter.js rename to lib/jats/table-wrap/TableWrapConverter.js diff --git a/packages/jats/table-wrap/package.js b/lib/jats/table-wrap/package.js similarity index 100% rename from packages/jats/table-wrap/package.js rename to lib/jats/table-wrap/package.js diff --git a/packages/jats/table/Table.js b/lib/jats/table/Table.js similarity index 100% rename from packages/jats/table/Table.js rename to lib/jats/table/Table.js diff --git a/packages/jats/table/TableComponent.js b/lib/jats/table/TableComponent.js similarity index 100% rename from packages/jats/table/TableComponent.js rename to lib/jats/table/TableComponent.js diff --git a/packages/jats/table/TableConverter.js b/lib/jats/table/TableConverter.js similarity index 100% rename from packages/jats/table/TableConverter.js rename to lib/jats/table/TableConverter.js diff --git a/packages/jats/table/package.js b/lib/jats/table/package.js similarity index 100% rename from packages/jats/table/package.js rename to lib/jats/table/package.js diff --git a/packages/jats/title-group/TitleGroup.js b/lib/jats/title-group/TitleGroup.js similarity index 100% rename from packages/jats/title-group/TitleGroup.js rename to lib/jats/title-group/TitleGroup.js diff --git a/packages/jats/title-group/TitleGroupComponent.js b/lib/jats/title-group/TitleGroupComponent.js similarity index 90% rename from packages/jats/title-group/TitleGroupComponent.js rename to lib/jats/title-group/TitleGroupComponent.js index 4d4aed110..7353a5d30 100644 --- a/packages/jats/title-group/TitleGroupComponent.js +++ b/lib/jats/title-group/TitleGroupComponent.js @@ -1,5 +1,5 @@ import { Component } from 'substance' -import renderNodeComponent from '../../../util/renderNodeComponent' +import renderNodeComponent from '../../util/renderNodeComponent' class TitleGroupComponent extends Component { diff --git a/packages/jats/title-group/TitleGroupConverter.js b/lib/jats/title-group/TitleGroupConverter.js similarity index 95% rename from packages/jats/title-group/TitleGroupConverter.js rename to lib/jats/title-group/TitleGroupConverter.js index b193222c8..ce2b7730d 100644 --- a/packages/jats/title-group/TitleGroupConverter.js +++ b/lib/jats/title-group/TitleGroupConverter.js @@ -1,5 +1,5 @@ import JATS from '../JATS' -import XMLIterator from '../../../util/XMLIterator' +import XMLIterator from '../../util/XMLIterator' export default { diff --git a/packages/jats/title-group/package.js b/lib/jats/title-group/package.js similarity index 100% rename from packages/jats/title-group/package.js rename to lib/jats/title-group/package.js diff --git a/packages/jats/title/Title.js b/lib/jats/title/Title.js similarity index 100% rename from packages/jats/title/Title.js rename to lib/jats/title/Title.js diff --git a/packages/jats/title/TitleComponent.js b/lib/jats/title/TitleComponent.js similarity index 100% rename from packages/jats/title/TitleComponent.js rename to lib/jats/title/TitleComponent.js diff --git a/packages/jats/title/TitleConverter.js b/lib/jats/title/TitleConverter.js similarity index 100% rename from packages/jats/title/TitleConverter.js rename to lib/jats/title/TitleConverter.js diff --git a/packages/jats/title/_index.css b/lib/jats/title/_index.css similarity index 100% rename from packages/jats/title/_index.css rename to lib/jats/title/_index.css diff --git a/packages/jats/title/package.js b/lib/jats/title/package.js similarity index 100% rename from packages/jats/title/package.js rename to lib/jats/title/package.js diff --git a/packages/jats/xref/AddXRefCommand.js b/lib/jats/xref/AddXRefCommand.js similarity index 100% rename from packages/jats/xref/AddXRefCommand.js rename to lib/jats/xref/AddXRefCommand.js diff --git a/packages/jats/xref/AddXRefTool.js b/lib/jats/xref/AddXRefTool.js similarity index 100% rename from packages/jats/xref/AddXRefTool.js rename to lib/jats/xref/AddXRefTool.js diff --git a/packages/jats/xref/EditXRefCommand.js b/lib/jats/xref/EditXRefCommand.js similarity index 100% rename from packages/jats/xref/EditXRefCommand.js rename to lib/jats/xref/EditXRefCommand.js diff --git a/packages/jats/xref/EditXRefTool.js b/lib/jats/xref/EditXRefTool.js similarity index 100% rename from packages/jats/xref/EditXRefTool.js rename to lib/jats/xref/EditXRefTool.js diff --git a/packages/jats/xref/XRef.js b/lib/jats/xref/XRef.js similarity index 100% rename from packages/jats/xref/XRef.js rename to lib/jats/xref/XRef.js diff --git a/packages/jats/xref/XRefComponent.js b/lib/jats/xref/XRefComponent.js similarity index 100% rename from packages/jats/xref/XRefComponent.js rename to lib/jats/xref/XRefComponent.js diff --git a/packages/jats/xref/XRefConverter.js b/lib/jats/xref/XRefConverter.js similarity index 100% rename from packages/jats/xref/XRefConverter.js rename to lib/jats/xref/XRefConverter.js diff --git a/packages/jats/xref/XRefTargets.js b/lib/jats/xref/XRefTargets.js similarity index 100% rename from packages/jats/xref/XRefTargets.js rename to lib/jats/xref/XRefTargets.js diff --git a/packages/jats/xref/_edit-xref-tool.css b/lib/jats/xref/_edit-xref-tool.css similarity index 100% rename from packages/jats/xref/_edit-xref-tool.css rename to lib/jats/xref/_edit-xref-tool.css diff --git a/packages/jats/xref/_index.css b/lib/jats/xref/_index.css similarity index 100% rename from packages/jats/xref/_index.css rename to lib/jats/xref/_index.css diff --git a/packages/jats/xref/_scrollbar-highlights.css b/lib/jats/xref/_scrollbar-highlights.css similarity index 100% rename from packages/jats/xref/_scrollbar-highlights.css rename to lib/jats/xref/_scrollbar-highlights.css diff --git a/packages/jats/xref/_xref-targets.css b/lib/jats/xref/_xref-targets.css similarity index 100% rename from packages/jats/xref/_xref-targets.css rename to lib/jats/xref/_xref-targets.css diff --git a/packages/jats/xref/_xref.css b/lib/jats/xref/_xref.css similarity index 100% rename from packages/jats/xref/_xref.css rename to lib/jats/xref/_xref.css diff --git a/packages/jats/xref/getXRefTargets.js b/lib/jats/xref/getXRefTargets.js similarity index 100% rename from packages/jats/xref/getXRefTargets.js rename to lib/jats/xref/getXRefTargets.js diff --git a/packages/jats/xref/package.js b/lib/jats/xref/package.js similarity index 100% rename from packages/jats/xref/package.js rename to lib/jats/xref/package.js diff --git a/packages/publisher/Publisher.js b/lib/publisher/Publisher.js similarity index 100% rename from packages/publisher/Publisher.js rename to lib/publisher/Publisher.js diff --git a/packages/publisher/PublisherPackage.js b/lib/publisher/PublisherPackage.js similarity index 100% rename from packages/publisher/PublisherPackage.js rename to lib/publisher/PublisherPackage.js diff --git a/packages/publisher/PublisherTOCProvider.js b/lib/publisher/PublisherTOCProvider.js similarity index 100% rename from packages/publisher/PublisherTOCProvider.js rename to lib/publisher/PublisherTOCProvider.js diff --git a/packages/publisher/_index.css b/lib/publisher/_index.css similarity index 100% rename from packages/publisher/_index.css rename to lib/publisher/_index.css diff --git a/examples/tagging/README.md b/lib/tagging/README.md similarity index 100% rename from examples/tagging/README.md rename to lib/tagging/README.md diff --git a/packages/tagging/TaggingPackage.js b/lib/tagging/TaggingPackage.js similarity index 100% rename from packages/tagging/TaggingPackage.js rename to lib/tagging/TaggingPackage.js diff --git a/packages/tagging/aff/TagAffCommand.js b/lib/tagging/aff/TagAffCommand.js similarity index 100% rename from packages/tagging/aff/TagAffCommand.js rename to lib/tagging/aff/TagAffCommand.js diff --git a/packages/tagging/aff/TagAffTool.js b/lib/tagging/aff/TagAffTool.js similarity index 100% rename from packages/tagging/aff/TagAffTool.js rename to lib/tagging/aff/TagAffTool.js diff --git a/packages/tagging/contrib/TagContribCommand.js b/lib/tagging/contrib/TagContribCommand.js similarity index 100% rename from packages/tagging/contrib/TagContribCommand.js rename to lib/tagging/contrib/TagContribCommand.js diff --git a/packages/tagging/contrib/TagContribTool.js b/lib/tagging/contrib/TagContribTool.js similarity index 100% rename from packages/tagging/contrib/TagContribTool.js rename to lib/tagging/contrib/TagContribTool.js diff --git a/packages/tagging/ref/TagRefCommand.js b/lib/tagging/ref/TagRefCommand.js similarity index 100% rename from packages/tagging/ref/TagRefCommand.js rename to lib/tagging/ref/TagRefCommand.js diff --git a/packages/tagging/ref/TagRefTool.js b/lib/tagging/ref/TagRefTool.js similarity index 100% rename from packages/tagging/ref/TagRefTool.js rename to lib/tagging/ref/TagRefTool.js diff --git a/examples/ExampleXMLStore.js b/lib/texture/ExampleXMLStore.js similarity index 79% rename from examples/ExampleXMLStore.js rename to lib/texture/ExampleXMLStore.js index 25f03d700..9ea043a0d 100644 --- a/examples/ExampleXMLStore.js +++ b/lib/texture/ExampleXMLStore.js @@ -2,20 +2,22 @@ import { request } from 'substance' class ExampleXMLStore { + constructor(data) { + this.data = data + } + readXML(documentId, cb) { let cached = localStorage.getItem(documentId) if (cached) { return cb(null, cached) } - request('GET', '../data/'+documentId+'.xml', null, cb) + cb(null, this.data[documentId]) } - // TODO make functional writeXML(documentId, xml, cb) { localStorage.setItem(documentId, xml) cb(null) } - } export default ExampleXMLStore diff --git a/packages/texture/FileClientStub.js b/lib/texture/FileClientStub.js similarity index 100% rename from packages/texture/FileClientStub.js rename to lib/texture/FileClientStub.js diff --git a/packages/texture/SaveHandlerStub.js b/lib/texture/SaveHandlerStub.js similarity index 100% rename from packages/texture/SaveHandlerStub.js rename to lib/texture/SaveHandlerStub.js diff --git a/packages/texture/Texture.js b/lib/texture/Texture.js similarity index 100% rename from packages/texture/Texture.js rename to lib/texture/Texture.js diff --git a/packages/texture/TextureConfigurator.js b/lib/texture/TextureConfigurator.js similarity index 77% rename from packages/texture/TextureConfigurator.js rename to lib/texture/TextureConfigurator.js index 98c480830..7851e128e 100644 --- a/packages/texture/TextureConfigurator.js +++ b/lib/texture/TextureConfigurator.js @@ -9,7 +9,7 @@ class TextureConfigurator extends Configurator { this.config.saveHandler = new SaveHandlerStub() this.config.fileClient = new FileClientStub() - this.config.XMLStoreClass = null + this.config.xmlStore = null this.config.InterfaceComponentClass = null } @@ -40,14 +40,18 @@ class TextureConfigurator extends Configurator { return this.config.saveHandler } - setXMLStore(XMLStoreClass) { - this.config.XMLStoreClass = XMLStoreClass + setXMLStore(XMLStoreClass, params) { + this.config.xmlStore = { + Class: XMLStoreClass, + params: params + } return this } getXMLStore() { - let XMLStoreClass = this.config.XMLStoreClass - return new XMLStoreClass() + let xmlStore = this.config.xmlStore + let XMLStoreClass = this.config.xmlStore.Class + return new XMLStoreClass(this.config.xmlStore.params) } } diff --git a/packages/texture/package.js b/lib/texture/package.js similarity index 100% rename from packages/texture/package.js rename to lib/texture/package.js diff --git a/packages/unsupported/UnsupportedInlineNode.js b/lib/unsupported/UnsupportedInlineNode.js similarity index 100% rename from packages/unsupported/UnsupportedInlineNode.js rename to lib/unsupported/UnsupportedInlineNode.js diff --git a/packages/unsupported/UnsupportedInlineNodeCommand.js b/lib/unsupported/UnsupportedInlineNodeCommand.js similarity index 100% rename from packages/unsupported/UnsupportedInlineNodeCommand.js rename to lib/unsupported/UnsupportedInlineNodeCommand.js diff --git a/packages/unsupported/UnsupportedInlineNodeComponent.js b/lib/unsupported/UnsupportedInlineNodeComponent.js similarity index 100% rename from packages/unsupported/UnsupportedInlineNodeComponent.js rename to lib/unsupported/UnsupportedInlineNodeComponent.js diff --git a/packages/unsupported/UnsupportedInlineNodeJATSConverter.js b/lib/unsupported/UnsupportedInlineNodeJATSConverter.js similarity index 100% rename from packages/unsupported/UnsupportedInlineNodeJATSConverter.js rename to lib/unsupported/UnsupportedInlineNodeJATSConverter.js diff --git a/packages/unsupported/UnsupportedInlineNodeTool.js b/lib/unsupported/UnsupportedInlineNodeTool.js similarity index 100% rename from packages/unsupported/UnsupportedInlineNodeTool.js rename to lib/unsupported/UnsupportedInlineNodeTool.js diff --git a/packages/unsupported/UnsupportedNode.js b/lib/unsupported/UnsupportedNode.js similarity index 100% rename from packages/unsupported/UnsupportedNode.js rename to lib/unsupported/UnsupportedNode.js diff --git a/packages/unsupported/UnsupportedNodeComponent.js b/lib/unsupported/UnsupportedNodeComponent.js similarity index 100% rename from packages/unsupported/UnsupportedNodeComponent.js rename to lib/unsupported/UnsupportedNodeComponent.js diff --git a/packages/unsupported/UnsupportedNodeJATSConverter.js b/lib/unsupported/UnsupportedNodeJATSConverter.js similarity index 100% rename from packages/unsupported/UnsupportedNodeJATSConverter.js rename to lib/unsupported/UnsupportedNodeJATSConverter.js diff --git a/packages/unsupported/UnsupportedNodePackage.js b/lib/unsupported/UnsupportedNodePackage.js similarity index 100% rename from packages/unsupported/UnsupportedNodePackage.js rename to lib/unsupported/UnsupportedNodePackage.js diff --git a/packages/unsupported/_index.css b/lib/unsupported/_index.css similarity index 100% rename from packages/unsupported/_index.css rename to lib/unsupported/_index.css diff --git a/util/XMLIterator.js b/lib/util/XMLIterator.js similarity index 100% rename from util/XMLIterator.js rename to lib/util/XMLIterator.js diff --git a/util/diff.html b/lib/util/diff.html similarity index 100% rename from util/diff.html rename to lib/util/diff.html diff --git a/util/getFullName.js b/lib/util/getFullName.js similarity index 100% rename from util/getFullName.js rename to lib/util/getFullName.js diff --git a/util/renderNodeComponent.js b/lib/util/renderNodeComponent.js similarity index 100% rename from util/renderNodeComponent.js rename to lib/util/renderNodeComponent.js diff --git a/util/toDOM.js b/lib/util/toDOM.js similarity index 100% rename from util/toDOM.js rename to lib/util/toDOM.js diff --git a/make.js b/make.js index 0fa02733d..306be5d2c 100644 --- a/make.js +++ b/make.js @@ -1,64 +1,35 @@ var b = require('substance-bundler') +var fs = require('fs') +var path = require('path') -b.task('clean', function() { - b.rm('./dist') -}) - -// copy assets -b.task('assets', function() { - b.copy('examples/index.html', './dist/') - b.copy('texture.css', './dist/') - b.copy('packages/**/*.css', './dist/') - b.copy('examples/data', './dist/data') - b.copy('node_modules/font-awesome', './dist/font-awesome') -}) - -// this optional task makes it easier to work on Substance core -b.task('substance', function() { - b.make('substance', 'clean', 'css', 'browser:pure') - b.copy('node_modules/substance/dist', './dist/substance') -}) - -b.task('substance:all', function() { - b.make('substance') -}) - -function buildExample(example) { - return function() { - b.copy('examples/'+example+'/index.html', './dist/'+example+'/') - b.copy('examples/'+example+'/*.css', './dist/'+example+'/', { root: 'examples/'+example }) - b.js('examples/'+example+'/app.js', { - // need buble if we want to minify later - buble: false, - external: ['substance'], - commonjs: { include: ['node_modules/lodash/**'] }, - targets: [{ - // useStrict: false, // need for Safari 9 to work - dest: './dist/'+example+'/app.js', - format: 'umd', moduleName: example, - }] - }) - } -} - -b.task('author', ['clean', 'substance', 'assets'], buildExample('author')) -b.task('publisher', ['clean', 'substance', 'assets'], buildExample('publisher')) -b.task('tagging', ['author'], buildExample('tagging')) -b.task('examples', ['author', 'publisher', 'tagging']) - -// build all examples -b.task('default', ['examples']) - +var DIST = 'dist/' +var NPM = '.npm/' +var NPMDIST = NPM+'dist/' var TEST ='.test/' -b.task('test:clean', function() { +b.task('test:server', function() { + // Cleanup b.rm(TEST) -}) + b.make('substance') -b.task('test:assets', function() { // TODO: it would be nice to treat such glob patterns // differently, so that we do not need to specify glob root b.copy('./node_modules/substance-test/dist/*', TEST, { root: './node_modules/substance-test/dist' }) + + b.js('./test/index.js', { + // buble necessary here, for nodejs + buble: true, + external: ['substance-test', 'substance'], + commonjs: { + include: [ + '/**/lodash/**', + '/**/substance-cheerio/**' + ] + }, + targets: [ + { dest: TEST+'tests.cjs.js', format: 'cjs' }, + ] + }) }) b.task('test:browser', function() { @@ -74,25 +45,98 @@ b.task('test:browser', function() { }) }) -b.task('test:server', function() { - b.js('./test/index.js', { - // buble necessary here, for nodejs - buble: true, - external: ['substance-test', 'substance'], - commonjs: { - include: [ - '/**/lodash/**', - '/**/substance-cheerio/**' - ] - }, - targets: [ - { dest: TEST+'tests.cjs.js', format: 'cjs' }, - ] +b.task('test', ['test:browser', 'test:server']) + +/* Development bundle */ +b.task('dev', function() { + _buildDist(DIST, false) +}) + +/* Prepare NPM bundle */ +b.task('npm', function() { + // Cleanup + b.rm(NPM) + _buildDist(NPMDIST, true) + + // Copy source + b.copy('index.es.js', NPM) + b.copy('lib/**/*.js', NPM) + + // Copy stuff + [ + 'package.json', + 'LICENSE.md', + 'README.md', + 'CHANGELOG.md', + 'make.js' + ].forEach(function(f) { + b.copy(f, NPM) }) }) -b.task('test', ['substance:all', 'test:clean', 'test:assets', 'test:browser', 'test:server']) +b.task('default', ['dev']) + +function _buildDist(DIST, transpileToES5) { + // Bundle Substance and Texture JS + _substanceJS(DIST+'substance', transpileToES5) + _textureJS(DIST, transpileToES5) + // Bundle CSS + b.css('texture.css', DIST+'texture.css') + // Copy assets + _distCopyAssets(DIST) +} + +function _substanceJS(DEST, transpileToES5) { + if (transpileToES5) { + b.make('substance', 'clean', 'css', 'browser') + } else { + b.make('substance', 'clean', 'css', 'browser:pure') + + } + b.copy('node_modules/substance/dist', DEST) +} + +function _textureJS(DEST, transpileToES5) { + b.js('./index.es.js', { + buble: transpileToES5, + external: ['substance'], + commonjs: { include: ['node_modules/lodash/**'] }, + targets: [{ + useStrict: !transpileToES5, + dest: DEST+'texture.js', + format: 'umd', moduleName: 'texture', sourceMapRoot: __dirname, sourceMapPrefix: 'texture' + }] + }) +} + +function _distCopyAssets(DIST) { + b.copy('./node_modules/font-awesome', DIST+'font-awesome') + + // Landing page + b.copy('./index.html', DIST+'index.html') + // Examples + b.copy('./examples', DIST+'examples') + + // Convert XML files to data.js + b.custom('Bundle XML files as data.js', { + src: ['data/*.xml'], + dest: DIST+'examples/data.js', + execute: function(files) { + let xmls = {} + files.forEach(function(f) { + let xml = fs.readFileSync(f, 'utf8') + let docId = path.basename(f, '.xml') + xmls[docId] = xml + }) + let out = [ + "window.XMLFILES = ", + JSON.stringify(xmls) + ].join('') + fs.writeFileSync(DIST+'examples/data.js', out) + } + }) +} // starts a server when CLI argument '-s' is set b.setServerPort(5555) diff --git a/package.json b/package.json index 7853adc8b..2a024c6f2 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "substance-scientist", + "name": "substance-scientist-tmp", "description": "A scientific editor and reader for JATS files.", "dependencies": { "lodash": "^4.14.1", @@ -7,7 +7,7 @@ }, "devDependencies": { "font-awesome": "4.5.0", - "substance-bundler": "0.4.26", + "substance-bundler": "0.5.0", "substance-test": "0.2.5" }, "scripts": { diff --git a/packages/tagging/README.md b/packages/tagging/README.md deleted file mode 100644 index 45c820a7f..000000000 --- a/packages/tagging/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Experimental UX for tagging - -The considered use-case is to start from a generated JATS file -e.g. from a DOCX converter. -The JATS content has structural issues, e.g., wrong section levels, detached figure captions, etc., which need to be corrected. - -The proposed UI let's the user select such content and apply certain tools that help to get from unstructured or wrong structured to well structured content. diff --git a/test/jats/createJATSConfigurator.js b/test/jats/createJATSConfigurator.js index a52c6c749..c03e0aad4 100644 --- a/test/jats/createJATSConfigurator.js +++ b/test/jats/createJATSConfigurator.js @@ -1,8 +1,8 @@ import { module } from './test' import { Configurator } from 'substance' -import JATSPackage from '../../packages/jats/package' -import InlineWrapperPackage from '../../packages/inline-wrapper/InlineWrapperPackage' -import UnsupportedNodePackage from '../../packages/unsupported/UnsupportedNodePackage' +import JATSPackage from '../../lib/jats/package' +import InlineWrapperPackage from '../../lib/inline-wrapper/InlineWrapperPackage' +import UnsupportedNodePackage from '../../lib/unsupported/UnsupportedNodePackage' export default function createJATSConfigurator() { var configurator = new Configurator(); diff --git a/test/jats/test.js b/test/jats/test.js index a081ccfd8..9533f3248 100644 --- a/test/jats/test.js +++ b/test/jats/test.js @@ -5,7 +5,7 @@ import includes from 'lodash/includes' import isArray from 'lodash/isArray' import { DefaultDOMElement } from 'substance' import createJATSConfigurator from './createJATSConfigurator' -import JATSImporter from '../../packages/jats/JATSImporter' +import JATSImporter from '../../lib/jats/JATSImporter' let _test = test.withExtension('withFixture', function(fixtureXML) { var tapeArgs = Array.prototype.slice.call(arguments, 1) diff --git a/texture.css b/texture.css index d78fad989..e47aa8b6a 100644 --- a/texture.css +++ b/texture.css @@ -1 +1 @@ -@import './packages/_index.css'; \ No newline at end of file +@import './lib/_index.css'; \ No newline at end of file From 2afef636d792aadf9ccd922ca1352f67f74a3b73 Mon Sep 17 00:00:00 2001 From: Michael Aufreiter Date: Fri, 7 Oct 2016 19:33:08 +0200 Subject: [PATCH 2/2] Get ready for the release. --- .gitignore | 1 + examples/author.html | 19 ++++++++----------- examples/publisher.html | 12 +++++------- examples/tagging.html | 14 ++++++-------- index.html | 2 +- make.js | 15 +++++++++------ package.json | 6 +++--- texture.css | 1 + 8 files changed, 34 insertions(+), 36 deletions(-) diff --git a/.gitignore b/.gitignore index 30c02690e..3ec74d1fc 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ dist node_modules .lock-wscript .test +.npm diff --git a/examples/author.html b/examples/author.html index 47d3423cb..19140ebd1 100644 --- a/examples/author.html +++ b/examples/author.html @@ -6,31 +6,28 @@