From 270c696d9d590b68c68c81457b73a7c900f0a0cf Mon Sep 17 00:00:00 2001 From: Luca Ban Date: Sat, 23 Feb 2019 17:07:02 +0900 Subject: [PATCH 1/7] =?UTF-8?q?expand=20gitignore=20&=20rm=20pkg-lock!=20?= =?UTF-8?q?=F0=9F=A6=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ccb2c80..3a06dfb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,16 @@ node_modules/ -package-lock.json \ No newline at end of file + +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# rollup +.rpt2_cache + +# Editor directories and files +.idea +.vscode +*.suo +*.ntvs* +*.njsproj +*.sln From 7c95582abaf2c11f66ef447e44866c723c4d88fb Mon Sep 17 00:00:00 2001 From: Luca Ban Date: Sat, 23 Feb 2019 17:07:35 +0900 Subject: [PATCH 2/7] =?UTF-8?q?create=20rollup=20build=20file=20?= =?UTF-8?q?=F0=9F=8E=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/rollup.js | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 build/rollup.js diff --git a/build/rollup.js b/build/rollup.js new file mode 100644 index 0000000..4078c4a --- /dev/null +++ b/build/rollup.js @@ -0,0 +1,57 @@ +/* eslint-disable */ + +// npm install rollup-plugin-typescript2 typescript --save-dev +import typescript from 'rollup-plugin-typescript2' +// import { terser } from 'rollup-plugin-terser' +// import resolve from 'rollup-plugin-node-resolve' + +// ------------------------------------------------------------------------------------------ +// formats +// ------------------------------------------------------------------------------------------ +// amd – Asynchronous Module Definition, used with module loaders like RequireJS +// cjs – CommonJS, suitable for Node and Browserify/Webpack +// esm – Keep the bundle as an ES module file +// iife – A self-executing function, suitable for inclusion as a