一覧へ戻る
stasson/vue-plugin-template(新しいタブで開きます)
主要言語: JavaScript
vue-cli template to rollup a vue plugin
- star 数
- 2
- watcher 数
- 0
- fork 数
- 1
- issue 数
- 2
- 最終更新
- 2018/11/28
主要言語: JavaScript
vue-cli template to rollup a vue plugin
vue-cli template to rollup a vue plugin with support for
This is a project template for vue-cli.
$ npm install -g vue-cli
$ vue init stasson/vue-plugin-template my-project
$ cd my-project
$ npm installthe template layout is as follow
my-prolect
├─ dist # distribution output
├─ src #
│ ├─ plugin # plugin sources (components, directives ...)
│ └─ styles # styles (.css/.scss)
└─ test
└─ unit
└─ specs # unit test spec
npm run test: run karma testsnpm run build: build allnpm run build:dev: build umd distribution with inlined sourcemap and styles.npm run build:prod: build minified & optimized umd distribution.if you publish on npm, the distribution will be available on unpkg CDN
Choose which es6 transpiler to use
Choose how styles should be handled
development distribution always use inlined styles