Socket
Socket
Sign inDemoInstall

rollup-plugin-vue

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-vue - npm Package Compare versions

Comparing version 5.1.6 to 6.0.0-alpha.0

dist/cssModules.d.ts

130

dist/index.d.ts

@@ -1,125 +0,9 @@

import { ScriptOptions, StyleOptions, TemplateOptions, DescriptorCompileResult } from '@vue/component-compiler';
import { SFCTemplateCompileOptions } from '@vue/compiler-sfc';
import { Plugin } from 'rollup';
import { VueTemplateCompiler, VueTemplateCompilerParseOptions } from '@vue/component-compiler-utils/dist/types';
export interface VuePluginOptionsData {
css: string | (() => string);
less: string | (() => string);
postcss: string | (() => string);
sass: string | (() => string);
scss: string | (() => string);
stylus: string | (() => string);
export interface Options extends Pick<SFCTemplateCompileOptions, 'compiler' | 'compilerOptions' | 'transformAssetUrls'> {
include: string | RegExp | (string | RegExp)[];
exclude: string | RegExp | (string | RegExp)[];
target: 'node' | 'browser';
exposeFilename: boolean;
}
export interface VuePluginOptions {
/**
* Include files or directories.
* @default `'.vue'`
*/
include?: Array<string | RegExp> | string | RegExp;
/**
* Exclude files or directories.
* @default `undefined`
*/
exclude?: Array<string | RegExp> | string | RegExp;
/**
* Default language for blocks.
*
* @default `{}`
* @example
* ```js
* VuePlugin({ defaultLang: { script: 'ts' } })
* ```
*/
defaultLang?: {
[key: string]: string;
};
/**
* Exclude/Include customBlocks for final build.
* @default `() => false`
* @example
* ```js
* VuePlugin({ customBlocks: ['markdown', '!test'] })
* ```
*/
customBlocks?: string[] | ((tag: string) => boolean);
/**
* Exclude customBlocks for final build.
* @default `['*']`
* @deprecated
* @example
* ```js
* VuePlugin({ blackListCustomBlocks: ['markdown', 'test'] })
* ```
*/
blackListCustomBlocks?: string[];
/**
* Include customBlocks for final build.
* @default `[]`
* @deprecated
* @example
* ```js
* VuePlugin({ blackListCustomBlocks: ['markdown', 'test'] })
* ```
*/
whiteListCustomBlocks?: string[];
/**
* Prepend CSS.
* @default `undefined`
* @example
* ```js
* VuePlugin({ data: { scss: '$color: red;' } }) // to extract css
* ```
*/
data?: Partial<VuePluginOptionsData>;
/**
* Inject CSS in JavaScript.
* @default `true`
* @example
* ```js
* VuePlugin({ css: false }) // to extract css
* ```
*/
css?: boolean;
/**
* Expose filename in __file property.
* @default `false`
* @example
* ```js
* VuePlugin({ exposeFilename: true })
* ```
*/
exposeFilename?: boolean;
compiler?: VueTemplateCompiler;
compilerParseOptions?: VueTemplateCompilerParseOptions;
sourceRoot?: string;
/**
* @@vue/component-compiler [#](https://github.com/vuejs/vue-component-compiler#api) script processing options.
*/
script?: ScriptOptions;
/**
* @@vue/component-compiler [#](https://github.com/vuejs/vue-component-compiler#api) style processing options.
*/
style?: StyleOptions;
/**
* @@vue/component-compiler [#](https://github.com/vuejs/vue-component-compiler#api) template processing options.
*/
template?: TemplateOptions;
/**
* @@vue/component-compiler [#](https://github.com/vuejs/vue-component-compiler#api) module name or global function for custom runtime component normalizer.
*/
normalizer?: string;
/**
* @@vue/component-compiler [#](https://github.com/vuejs/vue-component-compiler#api) module name or global function for custom style injector factory.
*/
styleInjector?: string;
/**
* @@vue/component-compiler [#](https://github.com/vuejs/vue-component-compiler#api) module name or global function for custom style injector factory for SSR environment.
*/
styleInjectorSSR?: string;
styleInjectorShadow?: string;
isWebComponent?: boolean;
beforeAssemble?(descriptor: DescriptorCompileResult): DescriptorCompileResult;
}
/**
* Rollup plugin for handling .vue files.
*/
export default function vue(opts?: Partial<VuePluginOptions>): Plugin;
export default function PluginVue(userOptions?: Partial<Options>): Plugin;
{
"name": "rollup-plugin-vue",
"version": "5.1.6",
"description": "Roll .vue files",
"author": "Rahul Kadyan <hi@znck.me>",
"bugs": {
"url": "https://github.com/vuejs/rollup-plugin-vue/issues"
},
"homepage": "https://github.com/vuejs/rollup-plugin-vue#readme",
"keywords": [
"rollup-plugin",
"vue"
],
"version": "6.0.0-alpha.0",
"license": "MIT",
"main": "dist/rollup-plugin-vue.js",
"module": "dist/rollup-plugin-vue.mjs",
"main": "dist/index.js",
"module": "dist/rollup-plugin-vue.esm.js",
"typings": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/vuejs/rollup-plugin-vue.git"
},
"standard-version": {
"scripts": {
"postchangelog": "yarn test && yarn :build:docs && git add docs/"
}
},
"scripts": {
"prepublishOnly": "rm -rf dist/ && yarn build",
"build": "yarn :build",
"docs": "yarn :docs",
"pre:build": "yarn lint",
":build": "rollup -c",
"pre:build:docs": "cp CHANGELOG.md docs/changelog.md",
":build:docs": "vuepress build docs/",
"post:build:docs": "rm docs/changelog.md",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
"pre:docs": "cp CHANGELOG.md docs/changelog.md",
":docs": "vuepress dev docs/",
"post:docs": "rm docs/CHANGELOG.md",
"lint": "prettier --no-semi --single-quote --write **/*.js **/*.ts **/*.vue !test/target/** !dist/**",
"release": "standard-version -a",
"test": "jest"
},
"author": "Rahul Kadyan <hi@znck.me> (https://znck.me)",
"files": [
"dist/"
"dist"
],
"dependencies": {
"@vue/component-compiler": "^4.1.0",
"@vue/component-compiler-utils": "^3.0.0",
"debug": "^4.1.1",
"hash-sum": "^1.0.2",
"magic-string": "^0.25.2",
"querystring": "^0.2.0",
"rollup-pluginutils": "^2.4.1",
"source-map": "0.7.3",
"vue-runtime-helpers": "^1.1.1"
"hash-sum": "^2.0.0",
"rollup-pluginutils": "^2.8.2",
"sourcemap-codec": "^1.4.8"
},
"peerDependencies": {
"@vue/compiler-sfc": "*"
},
"devDependencies": {
"@babel/core": "^7.0.0-beta.46",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.46",
"@babel/plugin-transform-runtime": "^7.0.0-beta.46",
"@babel/preset-env": "^7.0.0-beta.46",
"@babel/runtime": "^7.0.0-beta.46",
"@types/debug": "^0.0.31",
"@types/jest": "^23.3.12",
"@types/node": "^10.12.18",
"@types/puppeteer": "^1.3.1",
"@znck/promised": "^1.0.0",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^23.6.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"conventional-changelog": "^3.0.5",
"jest": "^23.6.0",
"postcss": "^7.0.11",
"postcss-assets": "^5.0.0",
"prettier": "^1.12.1",
"pug": "^2.0.3",
"puppeteer": "^1.4.0",
"rollup": "^1.1.0",
"rollup-plugin-babel": "^4.0.0-beta.4",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-css-only": "^0.4.0",
"rollup-plugin-md": "^0.0.7",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-typescript": "^1.0.0",
"rollup-plugin-typescript2": "^0.18.1",
"rollup-plugin-url": "^2.1.0",
"sass": "^1.18.0",
"ts-jest": "^23.10.5",
"typescript": "^3.2.2",
"vue": "^2.5.16",
"vue-class-component": "^6.2.0",
"vue-template-compiler": "^2.5.16",
"vuepress": "^0.14.8"
"@vue/compiler-sfc": "^3.0.0-alpha.10",
"@types/debug": "^4.1.5",
"@types/jest": "^24.9.0",
"husky": "^4.2.0",
"rollup": "^1.29.1",
"tsdx": "^0.12.3",
"tslib": "^1.10.0",
"typescript": "^3.7.5"
},
"peerDependencies": {
"vue-template-compiler": "*"
"husky": {
"hooks": {}
},
"prettier": {
"printWidth": 80,
"trailingComma": "es5",
"semi": false,
"singleQuote": true
},
"scripts": {
"build": "tsdx build",
"lint": "tsdx lint",
"prepare": "tsdx build",
"start": "tsdx watch",
"test": "tsdx test"
}
}

@@ -1,54 +0,27 @@

<div class="text-xs-center" align="center" style="margin: 20px">
<img src="https://raw.githubusercontent.com/vuejs/rollup-plugin-vue/master/docs/.vuepress/public/logo.png">
</div>
# TSDX Bootstrap
## Introduction
This project was bootstrapped with [TSDX](https://github.com/jaredpalmer/tsdx).
As vue-loader is for webpack and vueify is for browserify, similarly its for rollup. As we know, webpack and browserify concat stuff and make it runnable in browser. Its difficult to share .vue components. **Now roll your [Vue](http://vuejs.org/) components.**
## Local Development
With rollup you can break your application into reusable modules.
Below is a list of commands you will probably find useful.
<p align="center">
<a href="https://circleci.com/gh/vuejs/rollup-plugin-vue">
<img src="https://circleci.com/gh/vuejs/rollup-plugin-vue.svg?style=svg" alt="Build Status" />
</a>
<a href="https://coveralls.io/github/znck/rollup-plugin-vue?branch=master">
<img src="https://coveralls.io/repos/github/znck/rollup-plugin-vue/badge.svg?branch=master&style=flat-square" alt="Coverage Status" />
</a>
</p>
### `npm start` or `yarn start`
## Usage
Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for your convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab.
> This document applies to v4.0+. If you are looking for older versions, docs are [here](https://github.com/vuejs/rollup-plugin-vue/tree/2.2/docs)
<img src="https://user-images.githubusercontent.com/4060187/52168303-574d3a00-26f6-11e9-9f3b-71dbec9ebfcb.gif" width="600" />
```js
import commonjs from 'rollup-plugin-commonjs'
import VuePlugin from 'rollup-plugin-vue'
Your library will be rebuilt if you make edits.
export default {
entry: 'main.js',
plugins: [
commonjs(),
VuePlugin(/* VuePluginOptions */)
]
}
```
### `npm run build` or `yarn build`
See [available options](https://rollup-plugin-vue.vuejs.org/options.html) for `VuePluginOptions`.
Bundles the package to the `dist` folder.
The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).
## Security
<img src="https://user-images.githubusercontent.com/4060187/52168322-a98e5b00-26f6-11e9-8cf6-222d716b75ef.gif" width="600" />
If you discover any security related issues, please email hi@znck.me instead of using the issue tracker.
### `npm test` or `yarn test`
## Credits
* [Rahul Kadyan](https://github.com/znck)
* [Thomas Ghysels](https://github.com/thgh)
* [Eduardo San Martin Morote](https://github.com/posva)
* [All Contributors][link-contributors]
## License
The MIT License (MIT). Please see [License File](http://znck.me/rollup-plugin-vue/license) for more information.
[link-contributors]: https://github.com/znck/rollup-plugin-vue/graphs/contributors
Runs the test watcher (Jest) in an interactive mode.
By default, runs tests related to files changed since the last commit.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc