Generates index HTML files for Google Closure projects.
Install it as a dependency of your package:
npm install opensphere-build-index --save-dev
index.js file in the project root as described below, then invoke by
os-index from node.
The application should create an
index.js file in its project root that
exports the following:
Each specified template
id must have a corresponding
in the base directory.
The template at minimum should contain commented blocks identifying where to insert vendor and application content.
The following comment tags will be replaced with content from the index:
<link>elements generated from
<script>elements generated from
compiledJsscript, or scripts to set up and run the debug loader.
In addition, the following will be replaced:
appVersionstring in the index.
@version@: Path to the version directory.
These properties will be available on the main Angular scope.
OpenSphere was developed at the National Geospatial-Intelligence Agency (NGA) in collaboration with BIT Systems. The government has "unlimited rights" and is releasing this software to increase the impact of government investments by providing developers with the opportunity to take things in new directions. The software use, modification, and distribution rights are stipulated within the Apache license.
If you'd like to contribute to this project, please make a pull request. We'll review the pull request and discuss the changes. All pull request contributions to this project will be released under the Apache license.
Software source code previously released under an open source license and then modified by NGA staff is considered a "joint work" (see 17 USC § 101); it is partially copyrighted, partially public domain, and as a whole is protected by the copyrights of the non-government authors and must be released according to the terms of the original open source license.
Copyright 2017 BIT Systems
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.