Zulko / eagle.js

A hackable slideshow framework built with Vue.js
https://zulko.github.io/eaglejs-demo/
ISC License
4.08k stars 222 forks source link

Add build config/scripts for distribution #15

Closed ktsn closed 7 years ago

ktsn commented 7 years ago

This PR solves #14 - it adds a build script that compiles all src/ files to .js or .css and put them into dist/ directory. Then the users of eagle.js does not need to prepare extra dependencies for build that eagle.js depends on. The build script is at build/build.js. We can execute it with npm run build or automatically execute before publishing to npm.

Sorry for the long description 😅 . I tried to keep simple to describe this patch but I need such the number of sentences finally.

Build script

The build script does the following things:

Extra things that this PR includes

Possible effects of this change

Zulko commented 7 years ago

Thanks so much for this. For the record, I may not have the time to review this before long so I am blindly trusting you. I'll update the npm repo in a few days.