[Pkg-javascript-devel] RFS: vue.js
Pirate Praveen
praveen at onenetbeyond.org
Mon Jan 8 10:17:30 UTC 2018
On തിങ്കള് 08 ജനുവരി 2018 03:36 വൈകു, Paolo Greppi wrote:
> AFAICT upstream does not provide anything that can run in node: all files in dist run in the browser
> https://github.com/vuejs/vue/tree/dev/dist
> i.e. there is nothing you can run node -e "require('vue');" against
>
> Perhaps what you want is the "ES Module" build, which is "intended for use with modern bundlers like webpack 2 or rollup"
>
> The vue.esm.js file could be installed by the libjs-vue binary.
> It's probably possible to build it with webpack too.
> Is that acceptable ?
app/assets/javascripts/sidebar/event_hub.js (and other files) has
import Vue from 'vue';
package.json has,
"main": "dist/vue.runtime.common.js",
"module": "dist/vue.runtime.esm.js",
"unpkg": "dist/vue.js",
"jsdelivr": "dist/vue.js",
If you provide the either main or module, I think that would be enough.
Installing it in /usr/lib/nodejs makes things easier. It can just
symlink to /usr/share/javascript/vue
See
https://anonscm.debian.org/cgit/pkg-javascript/three.js.git/tree/debian/node-three.links
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20180108/040a809b/attachment.sig>
More information about the Pkg-javascript-devel
mailing list