Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

把构建产物放到根目录下 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ npm-debug.log
coverage
dist
docs
/index.js
/index.debug.js
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`或下载独立版本,先从几个例子入手吧!
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tinyjs-plugin-scroller",
"version": "0.2.0",
"version": "0.2.1",
"author": "fangjun.yfj",
"description": "滚动插件",
"keywords": [
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down