[Pkg-javascript-commits] [node-rollup-plugin-buble] 01/02: New upstream version 0.15.0

Julien Puydt julien.puydt at laposte.net
Thu Sep 21 20:17:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository node-rollup-plugin-buble.

commit 50cad10a8335657e253dde67f8ca0cf9a60a78ef
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Mon Sep 18 10:50:09 2017 +0200

    New upstream version 0.15.0
---
 .eslintrc        | 23 +++++++++++++++++++
 .gitignore       |  3 +++
 CHANGELOG.md     | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 README.md        | 27 ++++++++++++++++++++++
 package.json     | 32 ++++++++++++++++++++++++++
 rollup.config.js |  3 +++
 src/index.js     | 19 ++++++++++++++++
 test/test.js     |  1 +
 8 files changed, 177 insertions(+)

diff --git a/.eslintrc b/.eslintrc
new file mode 100644
index 0000000..ed8a063
--- /dev/null
+++ b/.eslintrc
@@ -0,0 +1,23 @@
+{
+    "rules": {
+        "indent": [ 2, "tab", { "SwitchCase": 1 } ],
+        "linebreak-style": [ 2, "unix" ],
+        "semi": [ 2, "always" ],
+        "keyword-spacing": [ 2, { "before": true, "after": true } ],
+        "space-before-blocks": [ 2, "always" ],
+        "space-before-function-paren": [ 2, "always" ],
+        "no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ],
+        "no-cond-assign": [ 0 ]
+    },
+    "env": {
+        "es6": true,
+        "browser": true,
+        "mocha": true,
+        "node": true
+    },
+    "extends": "eslint:recommended",
+    "parserOptions": {
+        "ecmaVersion": 6,
+        "sourceType": "module"
+    }
+}
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8d67a86
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+.DS_Store
+node_modules
+dist
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..61ebda2
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,69 @@
+# rollup-plugin-buble changelog
+
+## 0.15.0
+
+* Update `buble`
+
+## 0.14.0
+
+* Update `buble`
+
+## 0.13.0
+
+* Update `buble` and other deps
+
+## 0.12.1
+
+* Return a `name`
+
+## 0.12.0
+
+* Update `buble`
+
+## 0.11.0
+
+* Update `buble`
+
+## 0.10.0
+
+* Update `buble`
+
+## 0.9.0
+
+* Update `buble`
+
+## 0.8.0
+
+* Update `buble`
+
+## 0.7.0
+
+* Update `buble`
+
+## 0.6.0
+
+* Update `buble`
+
+## 0.5.0
+
+* Update `buble`
+
+## 0.4.0
+
+* Update `buble`
+
+## 0.3.4
+
+* Update `buble`
+
+## 0.2.3
+
+* Make plugin 0.12-friendly
+
+## 0.2.2
+
+* Update `buble`
+
+## 0.1.0
+
+* First release
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..911f2e0
--- /dev/null
+++ b/README.md
@@ -0,0 +1,27 @@
+# rollup-plugin-buble
+
+Convert ES2015 with buble.
+
+
+## Installation
+
+```bash
+npm install --save-dev rollup-plugin-buble
+```
+
+
+## Usage
+
+```js
+import { rollup } from 'rollup';
+import buble from 'rollup-plugin-buble';
+
+rollup({
+  entry: 'main.js',
+  plugins: [ buble() ]
+}).then(...)
+```
+
+## License
+
+MIT
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..8cb6b7b
--- /dev/null
+++ b/package.json
@@ -0,0 +1,32 @@
+{
+  "name": "rollup-plugin-buble",
+  "description": "Compile ES2015 with buble",
+  "version": "0.15.0",
+  "author": "Rich Harris",
+  "repository": "https://gitlab.com/rich-harris/rollup-plugin-buble",
+  "license": "MIT",
+  "main": "dist/rollup-plugin-buble.cjs.js",
+  "jsnext:main": "dist/rollup-plugin-buble.es.js",
+  "scripts": {
+    "build": "npm run build:cjs && npm run build:es",
+    "build:cjs": "rollup -c -f cjs -o dist/rollup-plugin-buble.cjs.js",
+    "build:es": "rollup -c -f es6 -o dist/rollup-plugin-buble.es.js",
+    "test": "mocha test/test.js",
+    "pretest": "npm run build:cjs",
+    "prepublish": "npm run lint && rm -rf dist && npm test && npm run build:es",
+    "lint": "eslint src"
+  },
+  "files": [
+    "dist",
+    "README.md"
+  ],
+  "devDependencies": {
+    "eslint": "^3.3.1",
+    "mocha": "^3.0.2",
+    "rollup": "^0.37.0"
+  },
+  "dependencies": {
+    "buble": "^0.15.0",
+    "rollup-pluginutils": "^1.5.0"
+  }
+}
diff --git a/rollup.config.js b/rollup.config.js
new file mode 100644
index 0000000..5f25722
--- /dev/null
+++ b/rollup.config.js
@@ -0,0 +1,3 @@
+export default {
+	entry: 'src/index.js'
+};
diff --git a/src/index.js b/src/index.js
new file mode 100644
index 0000000..dfbd223
--- /dev/null
+++ b/src/index.js
@@ -0,0 +1,19 @@
+import { transform } from 'buble';
+import { createFilter } from 'rollup-pluginutils';
+
+export default function buble ( options ) {
+	if ( !options ) options = {};
+	var filter = createFilter( options.include, options.exclude );
+
+	if ( !options.transforms ) options.transforms = {};
+	options.transforms.modules = false;
+
+	return {
+		name: 'buble',
+
+		transform: function ( code, id ) {
+			if ( !filter( id ) ) return null;
+			return transform( code, options );
+		}
+	};
+}
diff --git a/test/test.js b/test/test.js
new file mode 100644
index 0000000..70b786d
--- /dev/null
+++ b/test/test.js
@@ -0,0 +1 @@
+// TODO

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-rollup-plugin-buble.git



More information about the Pkg-javascript-commits mailing list