Skip to content

Commit f1b54b5

Browse files
committed
🇬🇧 Refactored build to use gulp.
1 parent a42beb9 commit f1b54b5

File tree

14 files changed

+101
-145
lines changed

14 files changed

+101
-145
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
*.DS_Store
2-
build/node_modules
2+
node_modules
33
assets
File renamed without changes.

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,17 @@ and create a reference to the **UIWebView** `@property(nonatomic, strong) IBOutl
184184
185185
## Build
186186
187+
> As a prerequisite, you will need [gulp][gulp] installed: `npm install -g gulp`
188+
187189
```
188-
cd build
189190
npm install
190-
node build.js
191+
gulp
192+
```
193+
194+
During development you can have gulp watch the `source` directory for changes and automatically build the `deploy` files by running:
195+
196+
```
197+
gulp watch
191198
```
192199
193200
## Author
@@ -203,3 +210,4 @@ Licensed under [MIT][mit]. Enjoy.
203210
[mit]: http://www.opensource.org/licenses/mit-license.php
204211
[jquery]: http://jquery.com/
205212
[zepto]: http://zeptojs.com/
213+
[gulp]: http://gulpjs.com/

bower.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"name": "parallax",
3+
"description": "Parallax Engine that reacts to the orientation of a smart device.",
34
"version": "1.0.0",
5+
"license": "MIT",
46
"homepage": "http://wagerfield.github.io/parallax/",
57
"authors": [
68
"Matthew Wagerfield <[email protected]>"
@@ -11,12 +13,9 @@
1113
"deploy/jquery.parallax.js",
1214
"deploy/jquery.parallax.min.js"
1315
],
14-
"description": "Simple, lightweight Parallax Engine that reacts to the orientation of a smart device. Where no gyroscope or motion detection hardware is available, the position of the cursor is used instead.",
15-
"license": "MIT",
1616
"ignore": [
1717
"**/.*",
1818
"assets",
19-
"build",
2019
"source",
2120
"examples"
2221
],

build/build.js

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

build/package.json

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

deploy/jquery.parallax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
;(function($, window, document, undefined) {
4040

4141
// Strict Mode
42-
"use strict";
42+
'use strict';
4343

4444
// Constants
4545
var NAME = 'parallax';

deploy/jquery.parallax.min.js

Lines changed: 1 addition & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/parallax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
;(function(window, document, undefined) {
4040

4141
// Strict Mode
42-
"use strict";
42+
'use strict';
4343

4444
// Constants
4545
var NAME = 'Parallax';

deploy/parallax.min.js

Lines changed: 1 addition & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)