Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add build tools #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

heiglandreas
Copy link
Contributor

This PR adds a build-chain to the repository based on NPM.

The repository layout has slightly changed.

  • src still contains the source-files,
  • examples now also contains the test.html and test.js-file from the top-level
  • The new dist-Folder now contains the automatically created distributable files. Those are:
    • photo-sphere-viewer.js - The concatenated Source-files
    • photo-sphere-viewer.min.js - The minified version of photo-sphere-viewer.js
    • photo-sphere-viewer.js.map - The debug map for the minified file
    • three.min.js - The three.min.js from the three-package

Usage

Now you can call ./node_modules/grunt-cli/bin/grunt after a npm install. No need for a locally installed bower-binary.

So to generate the dist-files you'll have to

  1. Checkout the repository
  2. Call npm install (You need to have npm installed)
  3. Change the source-files
  4. Call ./node_modules/grunt-cli/bin/grunt
  5. The new dist-files are available in the dist-folder.

To get a newer-version of the three-package you'll want to call npm update.

This commit adds a grunt-build-chain. Calling ```grunt``` will create
the distribution-files from the source-files. The ```dist```-folder
contains the scripts ready to implement.
Now you can call ```./node_modules/grunt-cli/bin/grunt``` after a ```npm
install```. No need for a locally installed bower-binary any more.

So to generate the dist-files you'll have to

1. Checkout the repository
2. Call ```npm install``` (You need to have ```npm``` installed)
3. Change the source-files
4. Call ```./node_modules/grunt-cli/bin/grunt```
5. The new dist-files are available in the dist-folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant