Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit95810ec

Browse files
committed
added bundle.js / .npmignore
1 parent4749b86 commit95810ec

File tree

8 files changed

+59
-471
lines changed

8 files changed

+59
-471
lines changed

‎.gitignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ node_modules
22
*.sublime-project
33
*.sublime-workspace
44
npm-debug.log
5-
build
5+
build/bundle.js
66
dev/index.js
77
static
8+
*.js

‎.npmignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
*.sublime-project
3+
*.sublime-workspace
4+
npm-debug.log
5+
dev/index.js
6+
static

‎README.md‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,13 @@ To resize any element uni- or bidirectional.
88

99
###[See it in action](https://paulpflug.github.io/vue-resize-handle)
1010

11-
#Disclaimer
12-
13-
Only for[**webpack**](https://webpack.github.io/) workflows.
14-
15-
**No jQuery dependency**
1611

1712
#Install
1813

1914
```sh
2015
npm install --save-dev vue-resize-handle
21-
# dependencies
22-
npm install --save-dev vue-filters vue-mixins
2316
```
24-
17+
or include`build/bundle.js`
2518

2619
##Usage
2720
```coffee
@@ -30,6 +23,13 @@ components:
3023
"resizer":require"vue-resize-handle/unidirectional"
3124
# or:
3225
"resizer":require"vue-resize-handle/bidirectional"
26+
27+
# when using the bundle
28+
components:
29+
"resizer":window.vueComps.resizeHandle.uni
30+
# or:
31+
"resizer":window.vueComps.resizeHandle.bi
32+
3333
data:->
3434
width:200
3535
# or:
@@ -80,8 +80,6 @@ npm run test
8080
```
8181
Browse to`http://localhost:8080/`
8282

83-
Best development experience in[atom](https://atom.io/) with[vue-autocompile](https://atom.io/packages/vue-autocompile).
84-
8583
##License
8684
Copyright (c) 2016 Paul Pflugradt
8785
Licensed under the MIT license.

‎bidirectional.js‎

Lines changed: 0 additions & 279 deletions
This file was deleted.

‎build/common.coffee‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
window.vueComps?= {}
2+
window.vueComps.resizeHandle.uni=require('../unidirectional.js')
3+
window.vueComps.resizeHandle.bi=require('../bidirectional.js')

‎build/webpack.config.coffee‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
webpack=require"webpack"
2+
3+
module.exports=
4+
entry:"./build/common.coffee"
5+
output:
6+
filename:"bundle.js"
7+
path:__dirname
8+
module:
9+
loaders: [
10+
{test:/\.coffee$/,loader:"coffee"}
11+
]
12+
plugins: [
13+
newwebpack.optimize.UglifyJsPlugincompress:warnings:false
14+
newwebpack.optimize.OccurenceOrderPlugin()
15+
]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp