Fix .gitignore and build demo project (#98)

* Update package-lock.json

* Add gitignore editor folders

* Fix demo build missing dependency
This commit is contained in:
Lorenzo Iovino 2024-01-30 15:22:06 +01:00 committed by GitHub
parent 5f80320afd
commit 7c20b83d33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 7988 additions and 4294 deletions

2
.gitignore vendored
View file

@ -6,3 +6,5 @@ node_modules
out-tsc
/.vs
/.angular
.idea
.DS_Store

12
.idea/fittext2.iml generated
View file

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View file

@ -1,6 +0,0 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="TsLint" enabled="true" level="ERROR" enabled_by_default="true" />
</profile>
</component>

View file

@ -1,78 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MarkdownProjectSettings" wasCopied="false">
<PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.0" maxImageWidth="0" showGitHubPageIfSynced="false" allowBrowsingInPreview="false" synchronizePreviewPosition="true" highlightPreviewType="NONE" highlightFadeOut="5" highlightOnTyping="true" synchronizeSourcePosition="true" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="false" showSelectionInPreview="true" openRemoteLinks="true" replaceUnicodeEmoji="false" lastLayoutSetsDefault="false">
<PanelProvider>
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.panel" providerName="Default - Swing" />
</PanelProvider>
</PreviewSettings>
<ParserSettings gitHubSyntaxChange="false" emojiShortcuts="1" emojiImages="0">
<PegdownExtensions>
<option name="ABBREVIATIONS" value="false" />
<option name="ANCHORLINKS" value="true" />
<option name="ASIDE" value="false" />
<option name="ATXHEADERSPACE" value="true" />
<option name="AUTOLINKS" value="true" />
<option name="DEFINITIONS" value="false" />
<option name="DEFINITION_BREAK_DOUBLE_BLANK_LINE" value="false" />
<option name="FENCED_CODE_BLOCKS" value="true" />
<option name="FOOTNOTES" value="false" />
<option name="HARDWRAPS" value="false" />
<option name="HTML_DEEP_PARSER" value="false" />
<option name="INSERTED" value="false" />
<option name="QUOTES" value="false" />
<option name="RELAXEDHRULES" value="true" />
<option name="SMARTS" value="false" />
<option name="STRIKETHROUGH" value="true" />
<option name="SUBSCRIPT" value="false" />
<option name="SUPERSCRIPT" value="false" />
<option name="SUPPRESS_HTML_BLOCKS" value="false" />
<option name="SUPPRESS_INLINE_HTML" value="false" />
<option name="TABLES" value="true" />
<option name="TASKLISTITEMS" value="true" />
<option name="TOC" value="false" />
<option name="WIKILINKS" value="true" />
</PegdownExtensions>
<ParserOptions>
<option name="ADMONITION_EXT" value="false" />
<option name="ATTRIBUTES_EXT" value="false" />
<option name="COMMONMARK_LISTS" value="true" />
<option name="DUMMY" value="false" />
<option name="EMOJI_SHORTCUTS" value="true" />
<option name="ENUMERATED_REFERENCES_EXT" value="false" />
<option name="FLEXMARK_FRONT_MATTER" value="false" />
<option name="GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA" value="false" />
<option name="GFM_TABLE_RENDERING" value="true" />
<option name="GITBOOK_URL_ENCODING" value="false" />
<option name="GITHUB_LISTS" value="false" />
<option name="GITHUB_WIKI_LINKS" value="true" />
<option name="HEADER_ID_NO_DUPED_DASHES" value="false" />
<option name="JEKYLL_FRONT_MATTER" value="false" />
<option name="NO_TEXT_ATTRIBUTES" value="false" />
<option name="PARSE_HTML_ANCHOR_ID" value="false" />
<option name="SIM_TOC_BLANK_LINE_SPACER" value="true" />
</ParserOptions>
</ParserSettings>
<HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" embedUrlContent="false" addPageHeader="true" embedImages="false" embedHttpImages="false" imageUriSerials="false">
<GeneratorProvider>
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.generator" providerName="Default Swing HTML Generator" />
</GeneratorProvider>
<headerTop />
<headerBottom />
<bodyTop />
<bodyBottom />
</HtmlSettings>
<CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssUriSerial="true" isCssTextEnabled="false" isDynamicPageWidth="true">
<StylesheetProvider>
<provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.css" providerName="Default Swing Stylesheet" />
</StylesheetProvider>
<ScriptProviders />
<cssText />
<cssUriHistory />
</CssSettings>
<HtmlExportSettings updateOnSave="false" parentDir="" targetDir="" cssDir="" scriptDir="" plainHtml="false" imageDir="" copyLinkedImages="false" imageUniquifyType="0" targetExt="" useTargetExt="false" noCssNoScripts="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" linkFormatType="HTTP_ABSOLUTE" />
<LinkMapSettings>
<textMaps />
</LinkMapSettings>
</component>
</project>

View file

@ -1,3 +0,0 @@
<component name="MarkdownNavigator.ProfileManager">
<settings default="" pdf-export="" />
</component>

6
.idea/misc.xml generated
View file

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>

8
.idea/modules.xml generated
View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/fittext2.iml" filepath="$PROJECT_DIR$/.idea/fittext2.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated
View file

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

269
.idea/workspace.xml generated
View file

@ -1,269 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="6d9e6998-eced-4f47-8fb4-3257db3e18e7" name="Default" comment="Version upgrade 1.2.8">
<change beforePath="$PROJECT_DIR$/.github/workflows/npmpub.yml" beforeDir="false" afterPath="$PROJECT_DIR$/.github/workflows/npmpub.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="ProjectId" id="1SBukDi2PHkdi0mBUWyiXe8YIvk" />
<component name="ProjectLevelVcsManager">
<ConfirmationsSetting value="2" id="Add" />
</component>
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showExcludedFiles" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="HbShouldOpenHtmlAsHb" value="" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="node.js.detected.package.tslint" value="true" />
<property name="node.js.path.for.package.tslint" value="project" />
<property name="node.js.selected.package.tslint" value="(autodetect)" />
<property name="nodejs_interpreter_path" value="node" />
<property name="nodejs_package_manager_path" value="npm" />
<property name="prettierjs.PrettierConfiguration.Package" value="$PROJECT_DIR$/node_modules/prettier" />
<property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
<property name="ts.external.directory.path" value="$PROJECT_DIR$/node_modules/typescript/lib" />
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$" />
<recent name="$PROJECT_DIR$/examples/dev" />
<recent name="$PROJECT_DIR$/examples/dev/src" />
<recent name="C:\Users\Lorenzo\work\ng2-fittext" />
<recent name="C:\Users\Lorenzo\work\ngx-fittext" />
</key>
<key name="MoveFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$/src" />
<recent name="$PROJECT_DIR$" />
<recent name="$PROJECT_DIR$/examples/dev/lib" />
<recent name="$PROJECT_DIR$/examples/dev" />
</key>
</component>
<component name="RunManager" selected="npm.test:headless:singleRun">
<configuration name="build" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/src/lib/package.json" />
<command value="run" />
<scripts>
<script value="build" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
<configuration name="pack" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="pack" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
<configuration name="publish" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/src/lib/package.json" />
<command value="run" />
<scripts>
<script value="publish" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
<configuration name="test (1)" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="test" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
<configuration name="test:headless:singleRun" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="test:headless:singleRun" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
<list>
<item itemvalue="npm.test (1)" />
<item itemvalue="npm.build" />
<item itemvalue="npm.publish" />
<item itemvalue="npm.pack" />
<item itemvalue="npm.test:headless:singleRun" />
</list>
<recent_temporary>
<list>
<item itemvalue="npm.test:headless:singleRun" />
<item itemvalue="npm.pack" />
<item itemvalue="npm.publish" />
<item itemvalue="npm.build" />
<item itemvalue="npm.test (1)" />
</list>
</recent_temporary>
</component>
<component name="SvnConfiguration">
<configuration />
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="6d9e6998-eced-4f47-8fb4-3257db3e18e7" name="Default" comment="" />
<created>1510652992413</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1510652992413</updated>
<workItem from="1510652993603" duration="653000" />
<workItem from="1510654264215" duration="30000" />
<workItem from="1510654729260" duration="423000" />
<workItem from="1549319553054" duration="7284000" />
<workItem from="1549327022612" duration="471000" />
<workItem from="1549328021761" duration="919000" />
<workItem from="1549359966816" duration="232000" />
<workItem from="1549360312996" duration="437000" />
<workItem from="1549407784543" duration="212000" />
<workItem from="1549461075124" duration="28000" />
<workItem from="1556891010603" duration="1687000" />
<workItem from="1556894975082" duration="1273000" />
<workItem from="1556896924237" duration="1342000" />
<workItem from="1557129355293" duration="4205000" />
<workItem from="1557139497194" duration="456000" />
<workItem from="1557140290385" duration="394000" />
<workItem from="1557140703730" duration="220000" />
<workItem from="1557302825561" duration="2796000" />
<workItem from="1557394597603" duration="325000" />
<workItem from="1571049565190" duration="895000" />
<workItem from="1571135626185" duration="164000" />
<workItem from="1572945589004" duration="252000" />
<workItem from="1581498853844" duration="6408000" />
<workItem from="1581516389687" duration="1254000" />
<workItem from="1584040192080" duration="6735000" />
<workItem from="1584358226923" duration="31000" />
<workItem from="1584358330750" duration="76000" />
</task>
<task id="LOCAL-00001" summary="Ref: clean code&#10;Ref: update examples">
<created>1557130876740</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1557130876740</updated>
</task>
<task id="LOCAL-00002" summary="Version upgrade 1.2.7">
<created>1571049622945</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1571049622945</updated>
</task>
<task id="LOCAL-00003" summary="Version upgrade 1.2.7">
<created>1571049960812</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1571049960812</updated>
</task>
<task id="LOCAL-00004" summary="Version upgrade 1.2.8">
<created>1572945759229</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1572945759229</updated>
</task>
<option name="localTasksCounter" value="5" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State>
<option name="COLUMN_ORDER" />
</State>
</value>
</entry>
</map>
</option>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="Ref: clean code&#10;Ref: update examples" />
<MESSAGE value="Version upgrade 1.2.7" />
<MESSAGE value="Version upgrade 1.2.8" />
<option name="LAST_COMMIT_MESSAGE" value="Version upgrade 1.2.8" />
</component>
<component name="WindowStateProjectService">
<state x="2475" y="1161" width="800" height="684" key="#TSLint" timestamp="1584041395355">
<screen x="1920" y="960" width="1920" height="1080" />
</state>
<state x="2475" y="1161" width="800" height="684" key="#TSLint/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@1920.960.1920.1080" timestamp="1584041395355" />
<state x="642" y="341" width="615" height="397" key="#com.intellij.fileTypes.FileTypeChooser" timestamp="1581499657241">
<screen x="0" y="27" width="1920" height="1011" />
</state>
<state x="642" y="341" width="615" height="397" key="#com.intellij.fileTypes.FileTypeChooser/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1581499657241" />
<state x="2613" y="1249" width="524" height="509" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog" timestamp="1584044666474">
<screen x="1920" y="960" width="1920" height="1080" />
</state>
<state x="2613" y="1249" width="524" height="509" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@1920.960.1920.1080" timestamp="1584044666474" />
<state width="1897" height="222" key="GridCell.Tab.0.bottom" timestamp="1584358257559">
<screen x="0" y="27" width="1920" height="1011" />
</state>
<state width="1897" height="242" key="GridCell.Tab.0.bottom/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@0.219.1920.1080" timestamp="1584040732589" />
<state width="1897" height="242" key="GridCell.Tab.0.bottom/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@1920.960.1920.1080" timestamp="1584046993665" />
<state width="1897" height="222" key="GridCell.Tab.0.bottom/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1584358257559" />
<state width="1897" height="222" key="GridCell.Tab.0.center" timestamp="1584358257558">
<screen x="0" y="27" width="1920" height="1011" />
</state>
<state width="1897" height="242" key="GridCell.Tab.0.center/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@0.219.1920.1080" timestamp="1584040732589" />
<state width="1897" height="242" key="GridCell.Tab.0.center/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@1920.960.1920.1080" timestamp="1584046993665" />
<state width="1897" height="222" key="GridCell.Tab.0.center/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1584358257558" />
<state width="1897" height="222" key="GridCell.Tab.0.left" timestamp="1584358257558">
<screen x="0" y="27" width="1920" height="1011" />
</state>
<state width="1897" height="242" key="GridCell.Tab.0.left/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@0.219.1920.1080" timestamp="1584040732588" />
<state width="1897" height="242" key="GridCell.Tab.0.left/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@1920.960.1920.1080" timestamp="1584046993665" />
<state width="1897" height="222" key="GridCell.Tab.0.left/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1584358257558" />
<state width="1897" height="222" key="GridCell.Tab.0.right" timestamp="1584358257558">
<screen x="0" y="27" width="1920" height="1011" />
</state>
<state width="1897" height="242" key="GridCell.Tab.0.right/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@0.219.1920.1080" timestamp="1584040732589" />
<state width="1897" height="242" key="GridCell.Tab.0.right/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@1920.960.1920.1080" timestamp="1584046993665" />
<state width="1897" height="222" key="GridCell.Tab.0.right/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1584358257558" />
<state x="2100" y="1057" width="1536" height="901" key="MergeDialog" timestamp="1584041943170">
<screen x="1920" y="960" width="1920" height="1080" />
</state>
<state x="2100" y="1057" width="1536" height="901" key="MergeDialog/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@1920.960.1920.1080" timestamp="1584041943170" />
<state x="2585" y="1218" width="580" height="571" key="MultipleFileMergeDialog" timestamp="1584041950044">
<screen x="1920" y="960" width="1920" height="1080" />
</state>
<state x="2585" y="1218" width="580" height="571" key="MultipleFileMergeDialog/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@1920.960.1920.1080" timestamp="1584041950044" />
<state x="595" y="263" width="886" height="578" key="find.popup" timestamp="1584358232711">
<screen x="0" y="27" width="1920" height="1011" />
</state>
<state x="2515" y="1212" width="886" height="578" key="find.popup/0.219.1920.1080/1920.0.1280.960/1920.960.1920.1080@1920.960.1920.1080" timestamp="1584044814605" />
<state x="595" y="263" width="886" height="578" key="find.popup/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1584358232711" />
<state x="685" y="364" width="540" height="343" key="vcs.readOnlyHandler.ReadOnlyStatusDialog" timestamp="1581516396481">
<screen x="0" y="27" width="1920" height="1011" />
</state>
<state x="685" y="364" width="540" height="343" key="vcs.readOnlyHandler.ReadOnlyStatusDialog/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1581516396481" />
</component>
</project>

View file

@ -135,5 +135,8 @@
}
}
}
},
"cli": {
"analytics": false
}
}

8937
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{
"name": "ng2-fittext",
"version": "1.4.0",
"version": "1.4.1",
"description": "Ng2-fittext: An Angular2+ directive that change the font size until it fit the upper level container dimension.",
"keywords": [
"ng2-fittext",

View file

@ -1,7 +1,7 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { Ng2FittextModule } from 'lib';
import { Ng2FittextModule } from '../../projects/lib/src/ng2-fittext.module';
@NgModule({
declarations: [