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

Package content - the tools

HARP theme tools are build in Node.js environment (see: https://nodejs.org) so you will need to install some prerequisities to use them:

  • Node.js
  • java script package manager, for example npm which is distributed with Node.js or yarn.
  • npx, the npm package runner, that simplifies usage of CLI tools (in the newest versions of npm it is installed automatically).

There is currently one application in the package and it is distributed as a command line tools (CLI), thus after installing:

npm install harp-theme-tools

in directory of your choice you will have the following application available:

  • harp-theme-optimizer

You may simply launch it from you command line shell, using npx, adding --help option allows to see their short version of usage manual:

npx harp-theme-optimizer --help

harp-theme-optimizer

When using a theme file that includes several other files via the extends syntax this will lead to multiple http requests. To minimize the http requests for a production application the harp-theme-optimizer will combine all included files into one. Additionaly whitespaces can be removed withe the --minify option.

npx harp-theme-optimizer --in 'my-theme-file.json' --minify

Current Tags

  • 0.15.0                                ...           latest (a month ago)

5 Versions

  • 0.15.0                                ...           a month ago
  • 0.14.0                                ...           2 months ago
  • 0.13.2                                ...           2 months ago
  • 0.13.1                                ...           3 months ago
  • 0.13.0                                ...           3 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 5
Last Month 24
Dependencies (4)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |