@here/generator-harp.gl
Yeoman generator for harp.gl projects
Last updated a month ago by here-maps .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @here/generator-harp.gl 
SYNC missed versions from official npm registry.

Harp.gl yeoman Generator

Yeoman generator for harp.gl based projects.

Pre-requirements

  • node.js
  • yeoman - Install globally with npm install -g yo or use without installation with npx like this npx yo.
  • By default, generated app retrieves map data from HERE Vector Tiles Service. You need an apikey that you can generate yourself. Please see our Getting Started Guide.

Usage

mkdir 3dmap-example
cd 3dmap-example
npx -p yo -p @here/generator-harp.gl yo @here/harp.gl
> package name 3dmap-example name:

This command will generate complete, clean project based on Node.js, Webpack, Typescript. Set you access token in View.ts:

const omvDataSource = new OmvDataSource({
    baseUrl: "https://vector.hereapi.com/v2/vectortiles/base/mc",
    authenticationCode: "YOUR-APIKEY"
});

Then start it using webpack-dev-server:

npm start
(...)
> 3dmap-example@1.0.0 start /home/user/generator-test
> webpack-dev-server

Project is running at http://localhost:8080/

Open http://localhost:8080/ in your browser to see the running application.

Generator Development & Testing

Automatic tests.

yarn test

Manual tests:

mkdir ~/generator-harp.gl-test #  create folder for test app
cd ~/generator-harp.gl-test

Now you can check how your working copy of generator works, by running this after each change:

yo ~/src/harp.gl/@here/generator-harp.gl/generators/app/ # generate app
npm install && npm run start

Current Tags

  • 0.11.0-alpha.0                                ...           alpha (10 months ago)
  • 0.17.2                                ...           latest (a month ago)

17 Versions

  • 0.17.2                                ...           a month ago
  • 0.17.0                                ...           2 months ago
  • 0.16.0                                ...           2 months ago
  • 0.15.0                                ...           3 months ago
  • 0.14.0                                ...           4 months ago
  • 0.13.0                                ...           6 months ago
  • 0.12.0                                ...           6 months ago
  • 0.11.1                                ...           8 months ago
  • 0.11.0                                ...           9 months ago
  • 0.11.0-alpha.0                                ...           10 months ago
  • 0.10.0                                ...           a year ago
  • 0.2.6                                ...           a year ago
  • 0.2.5                                ...           a year ago
  • 0.2.4                                ...           a year ago
  • 0.2.3                                ...           a year ago
  • 0.2.2                                ...           a year ago
  • 0.2.1                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 17
Dependencies (1)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |