diff --git a/.gitignore b/.gitignore index 4049c34..0800d32 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ npm-debug.log coverage dist docs +/index.js +/index.debug.js diff --git a/README.md b/README.md index 503e438..d2c066a 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ http://tinyjs.net/plugins/tinyjs-plugin-scroller.html#demo - 也可以直接引用线上cdn地址,注意要使用最新的版本号,例如: - - https://gw.alipayobjects.com/os/lib/tinyjs-plugin-scroller/0.1.1/dist/index.js - - https://gw.alipayobjects.com/os/lib/tinyjs-plugin-scroller/0.1.1/dist/index.debug.js + - https://gw.alipayobjects.com/os/lib/tinyjs-plugin-scroller/0.2.1/index.js + - https://gw.alipayobjects.com/os/lib/tinyjs-plugin-scroller/0.2.1/index.debug.js ## 起步 首先当然是要引入,推荐`NPM`方式,当然你也可以使用`CDN`或下载独立版本,先从几个例子入手吧! diff --git a/package.json b/package.json index 9fbde8e..93b6f94 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tinyjs-plugin-scroller", - "version": "0.2.0", + "version": "0.2.1", "author": "fangjun.yfj", "description": "滚动插件", "keywords": [ @@ -11,9 +11,10 @@ "type": "git", "url": "https://github.com/ant-tinyjs/tinyjs-plugin-scroller.git" }, - "main": "dist/index.debug.js", + "main": "index.debug.js", "files": [ - "dist", + "index.js", + "index.debug.js", "src", "demo", "test" diff --git a/rollup.config.js b/rollup.config.js index 23eaa60..992105d 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -9,7 +9,7 @@ import progress from 'rollup-plugin-progress'; const pkg = require('./package.json'); const production = process.env.BUILD === 'production'; -const file = production ? `dist/index.js` : `dist/index.debug.js`; +const file = production ? `index.js` : `index.debug.js`; const banner = `/*! * Name: ${pkg.name} * Description: ${pkg.description}