znck / vue-plugin-simple Goto Github PK
View Code? Open in Web Editor NEWA template to create vue plugins and shareable components.
License: MIT License
A template to create vue plugins and shareable components.
License: MIT License
$ vue init znck/vue-plugin my-project
$ cd demo-project
Hello, I am currently thinking about migrating my components to the rollup
. I have found your plugin, and this demo project. So, my question is: how should I integrate tests into this workflow?
You can have a look at my current build and test setup: https://github.com/wemake-services/vue-material-input
I am currently using this stack:
vue2
with single-file componentswebpack
(version 1) for buildingkarma
with phantomjs
as browser and mocha
as a test frameworkAny ideas or suggestions? Thanks!
npm WARN [email protected] requires a peer of parse5@^2.1.0 but none is installed. You must install peer dependencies yourself.
Hello,
I'm try to build new project with your template and found such problem:
`Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node":
HTTP error 404 Not Found`
In node-sass repository I not found such release, 3.13.0 and next is 3.14.0-0, no 3.13.1
[!] No input specified: provide a file name or a source string to process
I believe this issue is caused because in config/rollup-plugin-vue.config.js
it's trying to use node-sass
to render/compile scss to css. But there are no scss styles to compile and it throws err
.
This causes the rollup build to fail.
I've been stuck trying to figure out how to roll up my plugin/component (vue-mobiledoc-editor). I keep running into the same errors, either unexpected token import
or did you register this component?
.
I thought it was just something I did, so I reinstalled the fresh template and it still doesn't work.
If you run npm run build
you get a filename.replace is not a function
error.
If you run npm beforePublish
you get a 'Vue' is not defined' error
.
Even if you publish without building and try to import { Hello } from 'package-name'
you get a Unexpected token import
error.
I tried reconfiguring rollup using your boilerplate as an example but haven't been able to make it work properly.
Is there a reason for this / do you have a working example?
If I run npm run build
on the example template (nothing changed), I get this error:
Error transforming vue-plugin/src/components/Hello.vue with 'vue' plugin: 'import' and 'export' may appear only with 'sourceType: module' (7:0)
SyntaxError: Error transforming vue-plugin/src/components/Hello.vue with 'vue' plugin: 'import' and 'export' may appear only with 'sourceType: module' (7:0)
3 :
4 :
5 :
6 :
7 : import upper from 'lodash/startCase';
^
at Parser.pp$4.raise (vue-plugin/node_modules/vue-template-es2015-compiler/buble.js:2231:15)
at Parser.pp$1.parseStatement (vue-plugin/node_modules/vue-template-es2015-compiler/buble.js:727:16)
at Parser.pp$1.parseTopLevel (vue-plugin/node_modules/vue-template-es2015-compiler/buble.js:648:25)
at Parser.parse vue-plugin/node_modules/vue-template-es2015-compiler/buble.js:526:17)
at parse (vue-plugin/node_modules/vue-template-es2015-compiler/buble.js:3108:39)
at Object.transform (vue-plugin/node_modules/vue-template-es2015-compiler/buble.js:11969:9)
at transpile (vue-plugin/node_modules/vue-template-es2015-compiler/index.js:17:20)
at injectRender (vue-plugin/node_modules/rollup-plugin-vue/dist/rollup-plugin-vue.common.js:82:20)
at processScript (vue-plugin/node_modules/rollup-plugin-vue/dist/rollup-plugin-vue.common.js:168:18)
at vueTransform (vue-plugin/node_modules/rollup-plugin-vue/dist/rollup-plugin-vue.common.js:206:14)
If I comment that line out, everything gets compiled fine. I tried to mess with configuration a little bit, but to no avail.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.