Giter Club home page Giter Club logo

vue-plugin-simple's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vue-plugin-simple's Issues

how should I test my components?

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 components
  • webpack (version 1) for building
  • karma with phantomjs as browser and mocha as a test framework

Any ideas or suggestions? Thanks!

Rollup throws if there are no style (scss) tags

[!] 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.

Has the fresh install been tested to work?

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?

.vue files with import statements don't get transformed correctly

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.