Fix: publish script in package.json

This commit is contained in:
lorenzo 2020-02-12 15:26:32 +01:00
parent a1846c335a
commit 13eda2606c
4 changed files with 6995 additions and 5309 deletions

74
.idea/workspace.xml generated
View file

@ -2,23 +2,10 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="6d9e6998-eced-4f47-8fb4-3257db3e18e7" name="Default" comment="Version upgrade 1.2.8"> <list default="true" id="6d9e6998-eced-4f47-8fb4-3257db3e18e7" name="Default" comment="Version upgrade 1.2.8">
<change afterPath="$PROJECT_DIR$/examples/dev/browserslist" afterDir="false" />
<change afterPath="$PROJECT_DIR$/examples/dev/tsconfig.app.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/examples/dev/tsconfig.spec.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/examples/dev/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/examples/dev/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/examples/dev/angular.json" beforeDir="false" afterPath="$PROJECT_DIR$/examples/dev/angular.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/examples/dev/package-lock.json" beforeDir="false" /> <change beforePath="$PROJECT_DIR$/examples/dev/package-lock.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/examples/dev/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/examples/dev/package.json" afterDir="false" /> <change beforePath="$PROJECT_DIR$/examples/dev/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/examples/dev/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/examples/dev/src/polyfills.ts" beforeDir="false" afterPath="$PROJECT_DIR$/examples/dev/src/polyfills.ts" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/src/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/examples/dev/tsconfig.json" beforeDir="false" afterPath="$PROJECT_DIR$/examples/dev/tsconfig.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/examples/dev/tslint.json" beforeDir="false" afterPath="$PROJECT_DIR$/examples/dev/tslint.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/publishPackage.json" beforeDir="false" afterPath="$PROJECT_DIR$/src/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ng2-fittext.module.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/ng2-fittext.module.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tsconfig.json" beforeDir="false" afterPath="$PROJECT_DIR$/tsconfig.json" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -62,7 +49,7 @@
<recent name="C:\Users\Lorenzo\work\ngx-fittext\examples\dev\src\app" /> <recent name="C:\Users\Lorenzo\work\ngx-fittext\examples\dev\src\app" />
</key> </key>
</component> </component>
<component name="RunManager" selected="npm.build (2)"> <component name="RunManager" selected="npm.build (1)">
<configuration name="build (1)" type="js.build_tools.npm" temporary="true" nameIsGenerated="true"> <configuration name="build (1)" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/examples/dev/package.json" /> <package-json value="$PROJECT_DIR$/examples/dev/package.json" />
<command value="run" /> <command value="run" />
@ -93,6 +80,16 @@
<envs /> <envs />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="publish" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/src/package.json" />
<command value="run" />
<scripts>
<script value="publish" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
<configuration name="start" type="js.build_tools.npm" temporary="true" nameIsGenerated="true"> <configuration name="start" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/examples/dev/package.json" /> <package-json value="$PROJECT_DIR$/examples/dev/package.json" />
<command value="run" /> <command value="run" />
@ -103,30 +100,20 @@
<envs /> <envs />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="transpile" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="transpile" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
<list> <list>
<item itemvalue="npm.start" /> <item itemvalue="npm.start" />
<item itemvalue="npm.build (1)" />
<item itemvalue="npm.build" /> <item itemvalue="npm.build" />
<item itemvalue="npm.transpile" />
<item itemvalue="npm.build (2)" /> <item itemvalue="npm.build (2)" />
<item itemvalue="npm.publish" />
<item itemvalue="npm.build (1)" />
</list> </list>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="npm.build (1)" />
<item itemvalue="npm.start" />
<item itemvalue="npm.publish" />
<item itemvalue="npm.build (2)" /> <item itemvalue="npm.build (2)" />
<item itemvalue="npm.build" /> <item itemvalue="npm.build" />
<item itemvalue="npm.start" />
<item itemvalue="npm.transpile" />
<item itemvalue="npm.build (1)" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
@ -162,7 +149,8 @@
<workItem from="1571049565190" duration="895000" /> <workItem from="1571049565190" duration="895000" />
<workItem from="1571135626185" duration="164000" /> <workItem from="1571135626185" duration="164000" />
<workItem from="1572945589004" duration="252000" /> <workItem from="1572945589004" duration="252000" />
<workItem from="1581498853844" duration="5109000" /> <workItem from="1581498853844" duration="6408000" />
<workItem from="1581516389687" duration="1176000" />
</task> </task>
<task id="LOCAL-00001" summary="Ref: clean code&#10;Ref: update examples"> <task id="LOCAL-00001" summary="Ref: clean code&#10;Ref: update examples">
<created>1557130876740</created> <created>1557130876740</created>
@ -222,25 +210,29 @@
<screen x="0" y="27" width="1920" height="1011" /> <screen x="0" y="27" width="1920" height="1011" />
</state> </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="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 width="1897" height="242" key="GridCell.Tab.0.bottom" timestamp="1581503914988"> <state width="1897" height="242" key="GridCell.Tab.0.bottom" timestamp="1581516934990">
<screen x="0" y="27" width="1920" height="1011" /> <screen x="0" y="27" width="1920" height="1011" />
</state> </state>
<state width="1897" height="242" key="GridCell.Tab.0.bottom/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1581503914988" /> <state width="1897" height="242" key="GridCell.Tab.0.bottom/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1581516934990" />
<state width="1897" height="242" key="GridCell.Tab.0.center" timestamp="1581503914988"> <state width="1897" height="242" key="GridCell.Tab.0.center" timestamp="1581516934990">
<screen x="0" y="27" width="1920" height="1011" /> <screen x="0" y="27" width="1920" height="1011" />
</state> </state>
<state width="1897" height="242" key="GridCell.Tab.0.center/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1581503914988" /> <state width="1897" height="242" key="GridCell.Tab.0.center/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1581516934990" />
<state width="1897" height="242" key="GridCell.Tab.0.left" timestamp="1581503914988"> <state width="1897" height="242" key="GridCell.Tab.0.left" timestamp="1581516934990">
<screen x="0" y="27" width="1920" height="1011" /> <screen x="0" y="27" width="1920" height="1011" />
</state> </state>
<state width="1897" height="242" key="GridCell.Tab.0.left/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1581503914988" /> <state width="1897" height="242" key="GridCell.Tab.0.left/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1581516934990" />
<state width="1897" height="242" key="GridCell.Tab.0.right" timestamp="1581503914988"> <state width="1897" height="242" key="GridCell.Tab.0.right" timestamp="1581516934990">
<screen x="0" y="27" width="1920" height="1011" /> <screen x="0" y="27" width="1920" height="1011" />
</state> </state>
<state width="1897" height="242" key="GridCell.Tab.0.right/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1581503914988" /> <state width="1897" height="242" key="GridCell.Tab.0.right/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1581516934990" />
<state x="595" y="263" width="730" height="538" key="find.popup" timestamp="1581499855909"> <state x="595" y="263" width="730" height="538" key="find.popup" timestamp="1581517068558">
<screen x="0" y="27" width="1920" height="1011" /> <screen x="0" y="27" width="1920" height="1011" />
</state> </state>
<state x="595" y="263" width="730" height="538" key="find.popup/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1581499855909" /> <state x="595" y="263" width="730" height="538" key="find.popup/0.27.1920.1011/1920.0.1920.1080@0.27.1920.1011" timestamp="1581517068558" />
<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> </component>
</project> </project>

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,7 @@
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
"build": "ng build", "build": "ng build --aot --prod",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
@ -19,7 +19,7 @@
"@angular/platform-browser": "~9.0.0", "@angular/platform-browser": "~9.0.0",
"@angular/platform-browser-dynamic": "~9.0.0", "@angular/platform-browser-dynamic": "~9.0.0",
"@angular/router": "~9.0.0", "@angular/router": "~9.0.0",
"ng2-fittext": "^1.2.8", "ng2-fittext": "^1.2.9",
"rxjs": "~6.5.4", "rxjs": "~6.5.4",
"tslib": "^1.10.0", "tslib": "^1.10.0",
"zone.js": "~0.10.2" "zone.js": "~0.10.2"

View file

@ -25,7 +25,7 @@
"transpile": "ngc", "transpile": "ngc",
"build": "../node_modules/.bin/ng-packagr -p package.json", "build": "../node_modules/.bin/ng-packagr -p package.json",
"prepublish": "npm run test", "prepublish": "npm run test",
"publish": "npm run build && npm publish --access=public && rm -rf ./dist" "publish": "npm run build && npm publish dist --access=public"
}, },
"repository": { "repository": {
"url": "https://github.com/lokenxo/ng2-fittext.git" "url": "https://github.com/lokenxo/ng2-fittext.git"