0.0.1 • Published 5 years ago

@inmanlabs/location v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
5 years ago

Inmanlabs Location Library

MIT Licensed library to add support for Google's Places API and Inmanlabs Location entity.

Package and Deploy to Repo

Package:

yarn package

Login:

npm login

Publish:

npm publish /inmanlabs/workspace/inman-commons/inman-angular/location-lib/dist/location/inmanlabs-location-v0.0.1.tgz --access public

To Bootstrap Future Projects

To bootstrap new lib project:

ng new location-lib --create-application=false
cd location-lib
ng generate library location --prefix=inm
ng generate application location-tester

Add to package.json (under "scripts"):

{
  "ng": "ng",
  "start": "ng serve",
  "build": "ng build location",
  "copy_license": "cp ./LICENSE ./dist/location",
  "copy_readme": "cp ./README.md ./dist/location",
  "copy_files": "npm run copy_license && npm run copy_readme",
  "package": "ng build location && yarn copy_files && cd dist/location && yarn pack",
  "publish": "npm publish /inmanlabs/workspace/inman-commons/inman-angular/location-lib/dist/location/inmanlabs-location-v*.tgz --access public",
  "test": "ng test",
  "lint": "ng lint",
  "e2e": "ng e2e"
}

In "inner" package.json, add organization name to package name:

"@inmanlabs/location"

Add LICENSE file to top directory. Update README to reflect library content.