Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c894e99

Browse filesBrowse files
author
郭晓东
committed
[update]1. 升级脚手架; 2. 修改声明文件;
1 parent 84dce4c commit c894e99
Copy full SHA for c894e99

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

48 files changed

+49406
-48121
lines changed
Open diff view settings
Collapse file

‎.babelrc‎

Copy file name to clipboardExpand all lines: .babelrc
-9Lines changed: 0 additions & 9 deletions
This file was deleted.
Collapse file

‎.eslintrc‎

Copy file name to clipboardExpand all lines: .eslintrc
-23Lines changed: 0 additions & 23 deletions
This file was deleted.
Collapse file

‎.gitignore‎

Copy file name to clipboard
+24-5Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1-
node_modules
2-
npm-debug.log
3-
yarn-error.log
4-
docs
5-
test
1+
# dependencies
2+
/node_modules
3+
4+
# production
5+
/build
6+
/dist
7+
/output
8+
/output_resource
9+
# misc
10+
.DS_Store
11+
.env.local
12+
.env.development.local
13+
.env.test.local
14+
.env.production.local
15+
16+
npm-debug.log*
17+
yarn-debug.log*
18+
yarn-error.log*
19+
20+
.cache
21+
.vscode
22+
23+
/idl
24+
# package-lock.json
Collapse file

‎.jsdoc.json‎

Copy file name to clipboardExpand all lines: .jsdoc.json
-67Lines changed: 0 additions & 67 deletions
This file was deleted.
Collapse file

‎.npmignore‎

Copy file name to clipboardExpand all lines: .npmignore
-12Lines changed: 0 additions & 12 deletions
This file was deleted.
Collapse file

‎CHANGELOG.md‎

Copy file name to clipboardExpand all lines: CHANGELOG.md
  • Display the source diff
  • Display the rich diff
Whitespace-only changes.
Collapse file

‎LICENSE‎

Copy file name to clipboard
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 郭东东(Tayde Guo)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Collapse file

‎README.md‎

Copy file name to clipboard
+23-59Lines changed: 23 additions & 59 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,34 @@
1+
# rollup-typescript-startkit
12

2-
<h1 align="center">query</h1>
3-
<p align="center">A jQuery-like pixi.js selector.</p>
4-
<p align="center">
5-
<a href="https://www.npmjs.com/package/@amoy/query">
6-
<img src="https://img.shields.io/npm/v/@amoy/query.svg" alt="NPM Version">
7-
</a>
8-
<a href="https://www.npmjs.com/package/@amoy/query">
9-
<img src="https://img.shields.io/npm/dt/@amoy/query.svg" alt="NPM Downloads">
10-
</a>
11-
<a href="javascript:;">
12-
<img src="https://img.shields.io/github/size/amoyjs/query/dist/query.min.js.svg" alt="size">
13-
</a>
14-
<!-- <a href="https://github.com/amoyjs/query/blob/master/LICENSE">
15-
<img src="https://img.shields.io/github/license/amoyjs/query.svg" alt="MIT License">
16-
</a> -->
17-
</p>
3+
## 简介:
184

19-
## Usage
5+
一款基于 rollup 与 typescript 的轻量级脚手架,专注于 JavaScript 库的开发,能够满足开发库时所需要的各项功能;
206

21-
```js
22-
import { Application, Text, Container, Sprite } from 'pixi.js'
23-
import query from '@amoy/query'
24-
25-
const game = new Application({
26-
width: window.innerWidth,
27-
height: window.innerHeight,
28-
})
7+
包含功能:
298

30-
query(game.stage)
9+
- rollup | tree-shaking
10+
- typescript
11+
- hot-reload
12+
- example / debug
13+
- sass
3114

32-
const t1 = new Text('Hello World.', {
33-
fill: 0xffffff,
34-
})
35-
t1.class = 'text'
36-
t1.x = 200
37-
t1.y = 200
38-
const t2 = new Text('Hello World.', {
39-
fill: 0xffffff,
40-
})
41-
t2.name = 'text'
42-
t2.x = 300
43-
t2.y = 300
44-
const s1 = Sprite.from(document.querySelector('img'))
45-
game.stage.addChild(t1, t2, s1)
15+
## 安装
4616

47-
$('[class=text]') // t1
48-
// or
49-
$('.text') // t1
50-
$('[name=text]') // t2
51-
```
17+
此处使用一个简单易用的项目初始化工具: just-cli
5218

53-
## Contribution
19+
```js
20+
// 命令行:
21+
sudo npm i just-cli -g
5422

55-
How to extend a method:
23+
// 添加配置
24+
just add -n rollup-startkit -g https://github.com/xd-tayde/rollup-typescript-startkit.git
5625

57-
```js
58-
import query from '@amoy/query'
26+
// 之后就可以通过 init 快速创建项目
27+
just init rollup-startkit myProject
28+
```
5929

60-
query.extend({
61-
methodName() {
62-
for (let i = 0; i < this.length; i++) {
63-
// this[i]
64-
// do something on `this[i]`
65-
}
66-
}
67-
})
30+
## 开发姿势:
6831

69-
$('sprite').methodName()
70-
```
32+
- `package.json` 中修改对应的包名称
33+
- `npm run dev`: 开发环境
34+
- `npm run publish`: 打包编译
Collapse file

‎dist/query.es.js‎

Copy file name to clipboardExpand all lines: dist/query.es.js
+5-28Lines changed: 5 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.