45 Commits

Author SHA1 Message Date
Miguel Del Castillo
a2e7a3fc15
Added version consistency check before each build (#896)
* Added version consistency check script

* Added version check step to build process in package.json
2024-02-27 11:43:56 -06:00
markpet49
0ad066a684 Version change and package build restoration 2022-04-13 15:41:18 -05:00
Miguel Del Castillo
7f5c8a9a02
Updated npm and npm packages (#867) 2022-03-18 13:55:56 -05:00
Miguel Del Castillo
154b14f594
Unit testing and dependency updates: Replace PhantomJS for Chrome and Firefox in their headless modes (#840)
* Substituted PhantomJS for headless Chromium for unit testing

* Added Firefox headless as a browser for unit testing

* Removed pupeteer dev dependency to rely on local installs of Chrome and Firefox. Temporarily commented out tests that now fail.

* Eliminated superfluous newline from karma.conf.js

* remove whitespace

* Updated npm packages related to tasking and unit testing to latest versions

* Updated grunt-jsdoc to latest version

* Removed unused 'dependencies' bracket from package.json

* Updated npm packages

* Updated es6-promise to 4.2.8 and libtess to 1.2.2

* Updated jszip to 3.2.2 and proj4-src to 2.6.0
2021-06-16 16:03:30 -05:00
Miguel Del Castillo
240cc3015a
Added 'prepare' npm script (#838)
* Added 'prepare' npm script

* Modified readme to reflect added functionality of 'npm install'
2020-09-18 13:45:10 -05:00
Miguel Del Castillo
3318ad5f39 Updated contributors and keywords 2020-09-11 13:30:33 -05:00
Miguel Del Castillo
8343193250
Fix/release candidate fixes (#829)
* Added charset tag and note on 3rd party libraries to HTML files that lacked them

* Commented out a debugging console.log message that returns the GetCapabilities document

* Updated README for v0.10.0 RC. Updated npm packages.

* 0.10.0

* Corrected typo.
2020-08-12 14:47:46 -05:00
Miguel Del Castillo
bbe4ad562d
Fix to correctly display KML files with no altitudeMode specified (#826)
* Updated npm packages with 'npm audit fix'

* Added validation for when the KML file doesn't specify altitudeMode
 - Resolves issue of KmlPolygon not creating SurfacePolygon when KML file does not specify altitudeMode.

 - As per KML's 2.2 specification, if altitudeMode is not specified, it should be interpreted as CLAMP_TO_GROUND. This commit ensures this behavior.

 - Added method for validation of altitudeMode existence in KML file, imitating WWJ's KMLPlacemark behavior.

* Temporarily changed data source used in KML example to test a KML file with no altitudeMode specified

* Added KML file with no altitudeMode specified
 - Downloaded from here:
   https://opendata.hayward-ca.gov/datasets/hayward-general-plan-land-use?geometry=-122.322%2C37.590%2C-121.845%2C37.685

* tests for kmlInnerBoundary glitch

* Returned KML example to its previous test file source

* Added TODO comment regarding boundary graphic glitches

* Changed isValidAltitudeMode to use WorldWind constants.
 - Ran code formatter on the file

Co-authored-by: Mark Peterson <markpet@yahoo.com>
2020-06-05 15:10:55 -05:00
Miguel Del Castillo
8654e5adca Ran 'npm audit fix' to update dependencies 2019-09-18 13:25:21 -05:00
David Collins
6bf7ad3cf8
Update WebWorldWind build dependencies (#804)
Updated the WebWorldWind npm project's build dependencies to ensure compatibility with the latest version of Node.js, Grunt, Karma, and Jasmine.

While changes like this are always worthwhile, I'm making it now to ensure that the original WebWorldWind source and its accompanying npm project will continue to operate for as long as possible after the [WorldWind project's suspension on April 5, 2019](https://worldwind.arc.nasa.gov/news/2019-03-08-suspension-notice).  Secondary goals are eliminating all npm audit warnings from old versions of libraries used to build WebWorldWind (i.e. the devDependencies) and ensuring that unit tests continue to operate.

Summary of changes:

- WebWorldWind now builds with Node.js 10.15.3 LTS and 11.12.0. The README file and the Travis CI configuration file reflect that.

- All npm devDependencies, used for building the WorldWind project, are updated to the latest version available as of this pull request.

- All npm security audit vulnerabilities are addressed.

- Subtle errors in unit tests fixed. WorldWind's geometric unit tests erroneously modified global variables, such as Location.ZERO. These values shouldn't be encoded as global variables, but solving that is out of scope here. Previous versions of Jasmine concealed this problem but these unit tests fail with Jasmine 3.x, likely due to a change in the Jasmine interpreter lifecycle between tests.
2019-03-26 12:01:56 -07:00
David Collins
b3e70283d1 Bump version to 0.9.0 2017-12-05 09:38:06 -08:00
David Collins
0fcb9f3674 Bump version to 0.9.0-RC3 2017-11-30 09:51:55 -08:00
David Collins
9d5159a50e Merge remote-tracking branch 'remotes/origin/develop' into release/0.9.0 2017-11-21 12:13:22 -08:00
Patrick Hogan
f326b3c455 Updated. 2017-11-20 13:46:02 -08:00
David Collins
be7b880f8c Corrected the npm module's main entry point 2017-11-17 18:07:16 -08:00
David Collins
e47ae389be Bump version to 0.9.0-RC2 2017-11-14 15:33:28 -08:00
David Collins
9727c78cc5 Removed redundant images.zip entry from NPM package
- The images.zip archive is now distributed via Artifactory at files.worldwind.arc.nasa.gov
2017-11-13 09:26:53 -08:00
AkeluX
9856df8d17 Bump version to 0.9.0-RC1 2017-11-13 18:04:18 +01:00
Zach Glueckert
4f01ec1ab1 Publish dist folder contents to GitHub releases (#288)
* Add creation and deployment task of a zipped dist folder for GitHub releases

* Add comment describing script functionality

* Fix indentation

* Change compression task to use grunt plugin instead of bash script

* Add build folder to store all assets generated during build process
- Redirect test output to build folder
- Redirect dist folder output to build folder
- Redirect dist archive generation to build folder
- Add version name to dist archive
- Update WebStorm directory exclusion

* Fix api docs path in deployment task

* Fix untar operation to remove extra `build` directory

* Fix file location of CHANGELOG
2017-11-09 14:01:30 -08:00
Miguel Del Castillo
e76d81d360
Updated npm packages to be able to build the artifacts with Node 8.9.1 (#290) 2017-11-09 15:05:09 -06:00
David Collins
6d24882634 Updated obsolete links in package.json and README.md 2017-11-08 12:12:44 -08:00
David Collins
6a6593e732 Cleanup for the upcoming release
- Moved HowToBuildWebWW.md to a new Building section in README.md

- Moved HowToCreateAndRunUnitTests.md to test/README.md

- Ordered npm build scripts to group testing commands

- Moved and renamed JSDoc configuration files to clarify their purpose

- Removed design-notes with the expecation of re-establishing developer focused documentation on the website or wiki.

- Closes #258
2017-11-08 10:25:23 -08:00
Zach Glueckert
d7f8171690 Create distribution folder for generated assets (#281)
* Modify build script to write build artifacts to distribution directory
- Deposit other client consumable assets in the distribution directory
- See #280

* Remove unnecessary escape on file match

* Add clean task

* Simplify task structure

* Fix Artifactory deployment path

* Remove asset publishing directory from clean task

* Add npm clean task

* WebStorm configuration change to ignore distribution folder

* Add test-results folder as a clean target
2017-11-08 10:11:32 -08:00
Zach Glueckert
f378ef97a0 NPM package content whitelisting (#247) 2017-10-24 16:51:02 -07:00
Zach Glueckert
b35c51bc12 Publish npm assets to Artifactory (#237)
* Add initial file upload capability

* Refactor function naming and structure

* Add checksum validation and deployment of assets
- Deploys via checksum and on asset not being found reverts to normal file deployment

* Change to production repository target

* Refactor to remove deploy by checksum and remove async tasks

* Add windows path separator conversion to unix style in options object
- Refactor documentation and ordering

* Combine and refactor functions to reduce complexity

* Add deployment to a "latest" version on the server

* Change deployment repository to production name "web"

* Utilize TRAVIS_TAG for deployment path
- Remove limitation for it to be tagged version (starts with v)

* Fix travis environment variable name

* Refactor asset generation and deployment to different functions

* Change to predefined asset deployment directory
- File naming updates to describe functionality
- Add new predefined directories to .gitignore

* Remove extra carriage return

* Add Artifactory deployment assets to npmignore

* Remove unused npm development package

* Remove unused npm package declaration

* Refactor script naming

* Change Artifactory api key environment variable name

* Refactor initialize function inline and function ordering

* Refactor failure modes and logging

* Update documentation

* Refactor travis commands to script

* Rename scripts

* Refactor deployment function to be more generic
- Closes #244
- Changes input arguments to be more generic
- Adds protections for resolving the target path name given any source directory format (e.g. ./assetsToPath or assetsToPath/ or full path)

* Clean up command options and path formats

* Capture npm pack filename output for use in tarball extraction

* Change to join vs normalize for path construction

* Fix join syntax

* Remove attempted Windows path fix
2017-10-24 11:31:53 -07:00
Zach Glueckert
216bc0786d Add npm publishing capability (#215)
- Update package.json to reflect this is a public project as required by Travis CI
- Add CHANGELOG generation script
- Add travis npm publishing task
- Add travis CHANGELOG generation task
- Add travis CHANGELOG publishing to GitHub task
2017-09-08 12:10:09 -07:00
Miguel Del Castillo
cfb251c9cc Shim file entry reference removed since 'worldwind.min.js' works now. (#212) 2017-09-01 17:10:32 -07:00
Zach Glueckert
41c0c83ea1 Add images.zip asset generation (#181)
- This supports #170 in facilitating image asset packaging for flexible deployment options
2017-08-09 14:08:22 -07:00
Zach Glueckert
e39863c995 Remove scoped npm shim changes 2017-08-09 14:20:29 -05:00
Miguel Del Castillo
b2fc3e35e2 Added reference to ESA in search keywords 2017-08-08 14:12:50 -05:00
Miguel Del Castillo
f0153886ec Modified search keywords
- Added search terms to get them more in line with the project's
    GitHub.
  - Corrected version number in package-lock.json
2017-08-08 07:31:10 -05:00
Miguel Del Castillo
739d1dca71 Removed empty dependencies object from package.json 2017-08-04 17:40:08 -05:00
Miguel Del Castillo
15f0ebebfd Reverted some package.json changes that were produced by npm tool
- Removed README.md and package.json from .npmignore.
  - Added interlining to .npmignore to maintain consistency with
    how we format .gitignore.
  - Change order of npm tasks in Gruntfile in order to have a more
    cohesive pattern.
2017-08-04 17:38:29 -05:00
Miguel Del Castillo
0bf638b70b Changed package.json name in order to reflect official naming. 2017-08-03 11:48:47 -05:00
Miguel Del Castillo
9ae29a2f0a Change npm package entry file from "worldwind.min.js" to "index.js"
- The aforementioned is done in order to make the npm package
   to work with scoping. Normally npm is able to work with whatever
   file stated in the "main:" section of package.json, but with
   scoping it only works with "index.js", which is the default.
2017-08-03 11:10:06 -05:00
Miguel Del Castillo
4c53672c0d Changed package.json name for npm scoped package generation
- Testing with the scoped package is producing errors within
   https://github.com/Beak-man/worldwind-react
 - Unscoped version is working, except that local image files
   are not loading.
2017-07-17 09:30:52 -07:00
Miguel Del Castillo
36d7ab954a 0.1.0 2017-07-16 17:04:16 -07:00
Beak-man
71eeea8d05 Change order of precedence in UMD interaces for jszip and proj4-src
- AMD inteface now takes precedence before CommonJS-like one.
2017-07-07 11:20:53 -05:00
Beak-man
7e658a8b68 Added modifications for npm packaging and publishing 2017-07-06 11:02:32 -05:00
Miguel Del Castillo
123415de3e Feature/build suggestions (#153)
* Extend package.json with additional metadata
Add command scripts in package.json
Update the dev dependencies
Update GruntSetup.txt, which should be moved to README.md eventually

* Remove unused third party libraries

* Remove build.js use ‘npm run build’ or ‘grunt’ instead

* Start cleaning the root folder (test-main.js)

* Updated markdown build guide to reflect the new streamlined build process

 - Added package-lock.json file generated by npm. It is suggested to
   commit it into the repository.
   See: https://docs.npmjs.com/files/package-lock.json

 - Removed build.js from Gruntfile.js. It's unnecessary now thanks to the
   new build process.

 - package.json had spaces in "type" and "url" declarations that
   were automatically removed in build process.

 - Added .idea/ folder to .gitignore. Consider removing the folder from
   the repository altogether.

* Removed zip file compress task from build process.

* Removed grunt-contrib-compress node module from package.json

 - The module is an unused dependency now, since we're not going to
   backup the whole codebase + artifacts in a zip file anymore.

* Removed .idea/ folder mistakenly added to .gitignore.

 - Only files that are unrelated to run configurations are added to
   gitignore.

* Further corrections to .gitignore. Removed WebWorldWind.zip reference.

* Further corrections to .gitignore. Removed WebWorldWind.zip reference.

* .gitignore cleanup. .iml file correction.
2017-06-30 10:53:30 -07:00
carla-orru
96b75eed8f Converted tests from the jsTestDriver format to the Jasmine format 2016-05-26 15:53:35 +02:00
yvoumard
d0e8a088c5 Add HTML reporter for automated tests 2016-02-25 16:36:47 +01:00
nfaerber
c1b63cb023 remove deprecated package 2016-02-05 09:47:57 +01:00
Nicolas Faerber
d4743db6c8 Added continuous integration test environment using karma and jasmine 2016-02-04 16:01:08 +01:00
Tom Gaskins
9d2f7daa0e Initial checkin. 2015-08-28 17:13:35 -07:00