Skip to content

Commit 01e82f3

Browse files
Modify the example build path
That way we can exclude it from the IDE code search path. Reorganize the readme and add a 'Contributing' chapter. Signed-off-by: Alexandre Bonneau <[email protected]>
1 parent d6dd655 commit 01e82f3

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ test/unit/coverage
88
test/e2e/reports
99
selenium-debug.log
1010

11+
examples/js
12+
1113
# Editor directories and files
1214
.idea
1315
*.suo

README.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -187,21 +187,29 @@ This supports the same browsers than AutoNumeric supports:
187187
*(latest 2 versions)*<br><br>
188188
If you use IE/Edge/Safari/Opera, this *might* work ;)
189189

190-
### License
190+
### Contributing
191191

192-
`vue-autoNumeric` is open source and released under the [MIT License](https://github.com/autoNumeric/vue-autoNumeric/blob/master/LICENSE).
192+
Whenever you change the source code, you can check how it affects the default examples by first building those in `examples/index.html` with:
193+
```sh
194+
yarn build:examples
195+
```
196+
197+
The [contribution guidelines](https://github.com/autoNumeric/autoNumeric/blob/next/doc/CONTRIBUTING.md) for vue-autoNumeric are the same than for the parent [AutoNumeric](https://github.com/autoNumeric/autoNumeric) project.
193198

194199
### Support
195200

196201
As always, if you find this useful, please consider [supporting its development](https://www.patreon.com/user?u=4810062)!<br>
197202
Huge Thanks :)
198203

204+
### License
205+
206+
`vue-autoNumeric` is open source and released under the [MIT License](https://github.com/autoNumeric/vue-autoNumeric/blob/master/LICENSE).
199207

200-
<br>Copyright © 2016 Alexandre Bonneau
208+
<br>Copyright © 2016-2018 Alexandre Bonneau
201209

202210
> PS:<br>
203211
I would love to know how you're using vue-autonumeric.<br>
204-
Contact me! :)
212+
Contact and tell me! :)
205213

206214

207215
[downloads-image]: http://img.shields.io/npm/dm/vue-autonumeric.svg

build/options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = {
2525

2626
output: {
2727
main : path.join(__dirname, '..', 'dist'),
28-
examples: path.join(__dirname, '..', 'examples'),
28+
examples: path.join(__dirname, '..', 'examples/js'),
2929
},
3030

3131
resolve(location) {

examples/examples.bundle.js

-6
This file was deleted.

examples/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
<body>
2323
<div id="app"></div>
2424
<script src="https://unpkg.com/autonumeric"></script>
25-
<script src="examples.bundle.js"></script>
25+
<script src="js/examples.bundle.js"></script>
2626
</body>
2727
</html>

0 commit comments

Comments
 (0)