Skip to content

Commit b195409

Browse files
committed
Move example to support/development-demo
1 parent 8baa4a5 commit b195409

File tree

8 files changed

+23
-75
lines changed

8 files changed

+23
-75
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ build/auth0-lock-*.js.map
2222

2323
# do not include bundle
2424
build
25-
example/auth0.js
2625

2726
.idea

Gruntfile.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ module.exports = function (grunt) {
2525
options: {
2626
// base: 'test',
2727
hostname: '*',
28-
base: ['.', 'example', 'example/build', 'build'],
28+
base: ['.', 'support/development-demo', 'support/development-demo/build', 'build'],
2929
port: 9999
3030
}
3131
},
32-
example: {
32+
demo: {
3333
options: {
3434
hostname: '*',
35-
base: ['example', 'example/build', 'build'],
35+
base: ['support/development-demo', 'support/development-demo/build', 'build'],
3636
port: 3000
3737
}
3838
},
39-
'example-https': {
39+
'demo-https': {
4040
options: {
41-
base: ['example', 'example/build', 'build'],
41+
base: ['support/development-demo', 'support/development-demo/build', 'build'],
4242
port: 3000,
4343
protocol: 'https',
4444
hostname: '*',
@@ -85,9 +85,9 @@ module.exports = function (grunt) {
8585
'lib/css/main.css': 'lib/css/main.less'
8686
}
8787
},
88-
example: {
88+
demo: {
8989
files: {
90-
'example/build/index.css': 'example/index.less'
90+
'support/development-demo/build/index.css': 'support/development-demo/index.less'
9191
}
9292
}
9393
},
@@ -118,10 +118,10 @@ module.exports = function (grunt) {
118118
}
119119
},
120120
copy: {
121-
example: {
121+
demo: {
122122
files: {
123-
'example/auth0-lock.min.js': 'build/auth0-lock.min.js',
124-
'example/auth0-lock.js': 'build/auth0-lock.js'
123+
'support/development-demo/auth0-lock.min.js': 'build/auth0-lock.min.js',
124+
'support/development-demo/auth0-lock.js': 'build/auth0-lock.js'
125125
}
126126
},
127127
release: {
@@ -156,7 +156,7 @@ module.exports = function (grunt) {
156156
},
157157
clean: {
158158
css: ['lib/css/main.css', 'lib/css/main.min.css'],
159-
js: ['release/', 'build/', 'example/auth0-lock.js']
159+
js: ['release/', 'build/', 'support/development-demo/auth0-lock.js']
160160
},
161161
watch: {
162162
js: {
@@ -175,9 +175,9 @@ module.exports = function (grunt) {
175175
livereload: true
176176
},
177177
},
178-
example: {
179-
files: ['example/*'],
180-
tasks: ['less:example'],
178+
demo: {
179+
files: ['support/development-demo/*'],
180+
tasks: ['less:demo'],
181181
options: {
182182
livereload: true
183183
},
@@ -303,8 +303,8 @@ module.exports = function (grunt) {
303303
grunt.registerTask('js', ['clean:js', 'browserify:debug', 'exec:uglify']);
304304
grunt.registerTask('build', ['css', 'js']);
305305

306-
grunt.registerTask('example', ['less:example', 'connect:example', 'build', 'watch']);
307-
grunt.registerTask('example-https', ['less:example', 'connect:example-https', 'build', 'watch']);
306+
grunt.registerTask('demo', ['less:demo', 'connect:demo', 'build', 'watch']);
307+
grunt.registerTask('demo-https', ['less:demo', 'connect:demo-https', 'build', 'watch']);
308308

309309
grunt.registerTask('dev', ['connect:test', 'build', 'watch']);
310310
grunt.registerTask('integration', ['exec:test-inception', 'exec:test-integration']);

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ You can find the full documentation for Lock on the [Auth0 docs site](https://au
8989
* Legacy **Auth0Widget** [Migration guide][migration-guide] to **AuthoLock**
9090

9191

92-
## Examples
92+
## Demos
9393

94-
The **example** directory has a ready-to-go app. In order to run it you need [node](http://nodejs.org/) installed.
94+
The **support/development-demo** directory has a ready-to-go app. In order to run it you need [node](http://nodejs.org/) installed.
9595

96-
Then execute `npm i` to install dependencies (only once) and `npm example` from the root of this project.
96+
Then execute `npm i` to install dependencies (only once) and `npm run demo` from the root of this project.
9797

9898
Finally, point your browser at `http://localhost:3000/` and play around.
9999

example/build/index.css

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
],
1414
"scripts": {
1515
"test": "grunt integration",
16-
"example": "grunt example",
16+
"demo": "grunt demo",
1717
"dev": "grunt dev"
1818
},
1919
"repository": {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h1 class="navbar-brand">
4242

4343
<div class="container">
4444
<div class="sub-header sub-header-dropdown">
45-
<span class="sub-header-text">Auth0Lock example page</span>
45+
<span class="sub-header-text">Auth0Lock demo page</span>
4646
<ul class="external-links">
4747
<li>
4848
<a href="http://twitter.com/authzero" target="_blank">Twitter</a>
@@ -69,7 +69,7 @@ <h1 class="navbar-brand">
6969
</ul>
7070
</div>
7171
<div class="sidebar-box">
72-
<strong>Basic examples</strong>
72+
<strong>Basic demos</strong>
7373
<ul>
7474
<li><a id="show-button"><i></i>Full Login</a></li>
7575
<li><a id="login-button"><i></i>Login</a></li>
@@ -78,7 +78,7 @@ <h1 class="navbar-brand">
7878
<li><a id="logout-button"><i></i>Logout</a></li>
7979
</ul>
8080
<hr />
81-
<strong>Advanced examples</strong>
81+
<strong>Advanced demos</strong>
8282
<ul>
8383
<li><a id="login-button-only-socials"><i></i>Login (only socials)</a></li>
8484
<li><a id="login-button-copyrighted"><i></i>Login (free suscription)</a></li>

0 commit comments

Comments
 (0)