9 Commits

Author SHA1 Message Date
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
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
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
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
887838e2b6 Corrected typo in Gruntfile.js. File copy is successfull. 2017-08-03 11:46:27 -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
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