Skip to content

Commit b497638

Browse files
committed
Rename demo to examples
1 parent 8892e32 commit b497638

9 files changed

+20
-16
lines changed

.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
/node_modules/*
33
/build/*
44
/dist/*
5-
/demo/*
5+
/examples/*
66
/docs/*

.npmignore

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
.idea
2-
.github
3-
demo
1+
# Don't publish these files and folders
2+
/.idea/
3+
/.github/
4+
/examples/
5+
/docs/
46
.babelrc
57
bower.json
68
npm-shrinkwrap.json

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ The component accepts these props
154154
```
155155
* Unfortunately above example works only in ``flatpickr@next`` version, [see](https://github.com/chmln/flatpickr/commit/9392c76685b229b545e76abd3b2082da26e3ce60)
156156

157-
## Run demo on localhost
157+
## Run examples on your localhost
158158
* Clone this repo
159159
* Make sure you have node-js >=6.10
160160
* Install dependencies

bower.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"keywords": [
1111
"vue",
1212
"flatpickr",
13+
"vue-flatpickr",
1314
"datepicker"
1415
],
1516
"homepage": "https://github.com/ankurk91/vue-flatpickr-component",
@@ -19,7 +20,8 @@
1920
"bower_components",
2021
"test",
2122
"tests",
22-
"demo"
23+
"examples",
24+
"docs"
2325
],
2426
"dependencies": {
2527
"flatpickr": "^2.6.3"

demo/App.vue renamed to examples/App.vue

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<section class="container">
3-
<h1 class="page-header">Vue.js flatPicker Demo</h1>
3+
<h1 class="page-header">Vue.js flatPicker Examples</h1>
44
<div class="row">
55
<div class="col-md-8">
66
<form method="post" action="/" onsubmit="return false">
@@ -9,14 +9,14 @@
99
<div class="col-md-4">
1010
<div class="form-group">
1111
<button type="button" class="btn btn-default" @click.prevent="setNewDate()">
12-
Set new date
12+
Set new date programmatically
1313
</button>
1414
</div>
1515
</div>
1616
<div class="col-md-4">
1717
<div class="form-group">
1818
<button type="button" class="btn btn-default" @click.prevent="updateConfig()">
19-
Change mode
19+
Reactive configs (Change mode)
2020
</button>
2121
</div>
2222
</div>
@@ -195,7 +195,7 @@
195195
},
196196
methods: {
197197
onChange (selectedDates, dateStr, instance) {
198-
console.log('Date change hook');
198+
console.log('Date change hook was called');
199199
}
200200
},
201201
}
File renamed without changes.
File renamed without changes.

webpack.config.dev.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ const path = require('path');
55
const HtmlWebpackPlugin = require('html-webpack-plugin');
66

77
module.exports = {
8-
context: __dirname, //home directory for webpack
8+
context: __dirname,
99
resolve: {
1010
modules: [
1111
path.resolve(__dirname, 'src'),
12-
path.resolve(__dirname, 'demo'),
12+
path.resolve(__dirname, 'examples'),
1313
'node_modules'
1414
],
1515
alias: {
@@ -18,7 +18,7 @@ module.exports = {
1818
extensions: ['.js', '.jsx', '.json', '.vue'],
1919
},
2020
entry: {
21-
app: './demo/index.js',
21+
app: './examples/index.js',
2222
vendor: ['vue', 'flatpickr', 'jquery', 'bootstrap']
2323
},
2424
output: {
@@ -57,7 +57,7 @@ module.exports = {
5757
new HtmlWebpackPlugin({
5858
inject: true,
5959
hash: false,
60-
template: './demo/index.html',
60+
template: './examples/index.html',
6161
minify: {
6262
removeComments: false,
6363
collapseWhitespace: false,
@@ -81,7 +81,7 @@ module.exports = {
8181
],
8282
// Dev server related configs
8383
devServer: {
84-
contentBase: path.resolve(__dirname, 'demo'),
84+
contentBase: path.resolve(__dirname, 'examples'),
8585
port: 9000,
8686
host: 'localhost',
8787
open: true,

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const path = require('path');
55
const CleanWebpackPlugin = require('clean-webpack-plugin');
66

77
module.exports = {
8-
context: __dirname, //home directory for webpack
8+
context: __dirname,
99
resolve: {
1010
modules: [
1111
path.resolve(__dirname, 'src'),

0 commit comments

Comments
 (0)