Skip to content

Commit 616485d

Browse files
committed
Build Changes
1 parent e902da7 commit 616485d

File tree

2 files changed

+21
-88
lines changed

2 files changed

+21
-88
lines changed

Gruntfile.js

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = function(grunt) {
22
//Initializing the configuration object
3-
grunt.initConfig({
3+
grunt.initConfig({
44
//Style
55
less: {
66
devDark: {
@@ -15,12 +15,12 @@ module.exports = function(grunt) {
1515
"OpenNote/openNote/style/invert/dark/note.css": "OpenNote/openNote/style/invert/note.less",
1616
"OpenNote/openNote/style/invert/dark/alertify.css": "OpenNote/openNote/style/invert/alertify.less",
1717
"OpenNote/openNote/style/invert/dark/intojs.css": "OpenNote/openNote/style/invert/introjs.less",
18-
18+
1919
"OpenNote/openNote/style/simplicity/dark/style.css": "OpenNote/openNote/style/simplicity/style.less",
2020
"OpenNote/openNote/style/simplicity/dark/note.css": "OpenNote/openNote/style/simplicity/note.less",
2121
"OpenNote/openNote/style/simplicity/dark/alertify.css": "OpenNote/openNote/style/simplicity/alertify.less",
2222
"OpenNote/openNote/style/simplicity/dark/intojs.css": "OpenNote/openNote/style/simplicity/introjs.less"
23-
23+
2424
}
2525
},
2626
devLight: {
@@ -35,7 +35,7 @@ module.exports = function(grunt) {
3535
"OpenNote/openNote/style/invert/light/note.css": "OpenNote/openNote/style/invert/note.less",
3636
"OpenNote/openNote/style/invert/light/alertify.css": "OpenNote/openNote/style/invert/alertify.less",
3737
"OpenNote/openNote/style/invert/light/intojs.css": "OpenNote/openNote/style/invert/introjs.less",
38-
38+
3939
"OpenNote/openNote/style/simplicity/light/style.css": "OpenNote/openNote/style/simplicity/style.less",
4040
"OpenNote/openNote/style/simplicity/light/note.css": "OpenNote/openNote/style/simplicity/note.less",
4141
"OpenNote/openNote/style/simplicity/light/alertify.css": "OpenNote/openNote/style/simplicity/alertify.less",
@@ -55,12 +55,12 @@ module.exports = function(grunt) {
5555
"OpenNote/openNote/style/invert/dark/note.css": "OpenNote/openNote/style/invert/note.less",
5656
"OpenNote/openNote/style/invert/dark/alertify.css": "OpenNote/openNote/style/invert/alertify.less",
5757
"OpenNote/openNote/style/invert/dark/intojs.css": "OpenNote/openNote/style/invert/introjs.less",
58-
58+
5959
"OpenNote/openNote/style/simplicity/dark/style.css": "OpenNote/openNote/style/simplicity/style.less",
6060
"OpenNote/openNote/style/simplicity/dark/note.css": "OpenNote/openNote/style/simplicity/note.less",
6161
"OpenNote/openNote/style/simplicity/dark/alertify.css": "OpenNote/openNote/style/simplicity/alertify.less",
6262
"OpenNote/openNote/style/simplicity/dark/intojs.css": "OpenNote/openNote/style/simplicity/introjs.less"
63-
63+
6464
}
6565
},
6666
prodLight: {
@@ -102,15 +102,15 @@ module.exports = function(grunt) {
102102
tasks: ["karma:unit:run"]
103103
}
104104
},
105-
shell: {
106-
bowerInstall: {
105+
shell: {
106+
bowerInstall: {
107107
command: [ "cd OpenNote",
108108
"bower install" ].join("&&")
109109
},
110110
clean:{
111111
command: [ "rm -rf build",
112112
"cd OpenNote",
113-
"rm -rf bower_components",
113+
"rm -rf bower_components",
114114
"cd openNote/style/invert/",
115115
"rm -rf dark",
116116
"rm -rf light"].join("&&")
@@ -123,11 +123,11 @@ module.exports = function(grunt) {
123123
"cp -r ../../OpenNoteService-PHP/vendor ./"].join("&&")
124124
}
125125
},
126-
//HTML 5
126+
//HTML 5
127127
manifest: {
128128
generate: {
129129
options: {
130-
basePath: "OpenNote/",
130+
basePath: "OpenNote/",
131131
exclude: ["openNote.appcache", "Service", "bower_components/intro.js"],
132132
verbose: true,
133133
timestamp: true,
@@ -139,7 +139,7 @@ module.exports = function(grunt) {
139139
"**/*.css",
140140
"**/*.html",
141141
"**/*.png",
142-
"**/*.jpg"
142+
"**/*.jpg"
143143
],
144144
dest: "openNote/openNote.appcache"
145145
}
@@ -152,21 +152,20 @@ module.exports = function(grunt) {
152152
grunt.loadNpmTasks("grunt-karma");
153153
grunt.loadNpmTasks("grunt-shell");
154154
grunt.loadNpmTasks("grunt-manifest");
155-
155+
156156
//Task definition
157157
//css
158158
grunt.registerTask("buildDevCSS", ["less:devDark","less:devLight"]);
159159
grunt.registerTask("buildProdCSS", ["less:prodDark","less:prodLight"]);
160-
160+
161161
//deployment
162-
grunt.registerTask("buildManifest", ["manifest:generate"]);
163-
grunt.registerTask("clean", ["shell:clean"]);
164-
grunt.registerTask("build", ["shell:bowerInstall", "buildDevCSS", "buildManifest"]);
162+
// you can run individual command using the plug-in command syntax suck as manifest:generate or shell:clean
163+
grunt.registerTask("build", ["shell:bowerInstall", "buildDevCSS", "manifest:generate"]);
165164
grunt.registerTask("default", ["build"]);
166-
grunt.registerTask("deploy", ["clean", "shell:bowerInstall", "buildProdCSS", "shell:phpPackage"]);
167-
165+
grunt.registerTask("deploy", ["shell:clean", "shell:bowerInstall", "buildProdCSS", "manifest:generate", "shell:phpPackage"]);
166+
168167
//testing
169168
grunt.registerTask("devmode", ["karma:unit", "watch"]);
170169
grunt.registerTask("test", ["karma:travis"])
171170
grunt.registerTask("ci", ["build","karma:travis"])
172-
};
171+
};

OpenNote/openNote.appcache

Lines changed: 2 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CACHE MANIFEST
22
# This manifest was generated by grunt-manifest HTML5 Cache Manifest Generator
3-
# Time: Sun Jun 07 2015 14:32:23 GMT-0700 (US Mountain Standard Time)
3+
# Time: Sun Jun 21 2015 20:27:56 GMT-0700 (US Mountain Standard Time)
44

55
CACHE:
66
bower_components/alertify/alertify.js
@@ -264,24 +264,6 @@ bower_components/dragula.js/dist/dragula.js
264264
bower_components/dragula.js/dist/dragula.min.js
265265
bower_components/dragula.js/dragula.js
266266
bower_components/dragula.js/example/example.js
267-
bower_components/es5-shim/es5-sham.js
268-
bower_components/es5-shim/es5-sham.min.js
269-
bower_components/es5-shim/es5-shim.js
270-
bower_components/es5-shim/es5-shim.min.js
271-
bower_components/es5-shim/tests/helpers/h-kill.js
272-
bower_components/es5-shim/tests/helpers/h-matchers.js
273-
bower_components/es5-shim/tests/helpers/h.js
274-
bower_components/es5-shim/tests/lib/jasmine-html.js
275-
bower_components/es5-shim/tests/lib/jasmine.js
276-
bower_components/es5-shim/tests/lib/json2.js
277-
bower_components/es5-shim/tests/spec/helpers-jasmine.js
278-
bower_components/es5-shim/tests/spec/s-array.js
279-
bower_components/es5-shim/tests/spec/s-date.js
280-
bower_components/es5-shim/tests/spec/s-function.js
281-
bower_components/es5-shim/tests/spec/s-global.js
282-
bower_components/es5-shim/tests/spec/s-number.js
283-
bower_components/es5-shim/tests/spec/s-object.js
284-
bower_components/es5-shim/tests/spec/s-string.js
285267
bower_components/intro.js/BUILD/BUILD.js
286268
bower_components/intro.js/intro.js
287269
bower_components/intro.js/minified/intro.min.js
@@ -384,43 +366,6 @@ bower_components/ng-file-upload/ng-file-upload-shim.js
384366
bower_components/ng-file-upload/ng-file-upload-shim.min.js
385367
bower_components/ng-file-upload/ng-file-upload.js
386368
bower_components/ng-file-upload/ng-file-upload.min.js
387-
bower_components/pouchdb-find/bin/dev-server.js
388-
bower_components/pouchdb-find/bin/es3ify.js
389-
bower_components/pouchdb-find/bin/test-browser.js
390-
bower_components/pouchdb-find/dist/pouchdb.find.js
391-
bower_components/pouchdb-find/dist/pouchdb.find.min.js
392-
bower_components/pouchdb-find/lib/adapters/http/index.js
393-
bower_components/pouchdb-find/lib/adapters/local/abstract-mapper.js
394-
bower_components/pouchdb-find/lib/adapters/local/create-index/index.js
395-
bower_components/pouchdb-find/lib/adapters/local/delete-index/index.js
396-
bower_components/pouchdb-find/lib/adapters/local/find/in-memory-filter.js
397-
bower_components/pouchdb-find/lib/adapters/local/find/index.js
398-
bower_components/pouchdb-find/lib/adapters/local/find/query-planner.js
399-
bower_components/pouchdb-find/lib/adapters/local/get-indexes/index.js
400-
bower_components/pouchdb-find/lib/adapters/local/index.js
401-
bower_components/pouchdb-find/lib/adapters/local/utils.js
402-
bower_components/pouchdb-find/lib/deps/blob.js
403-
bower_components/pouchdb-find/lib/deps/errors.js
404-
bower_components/pouchdb-find/lib/deps/parse-uri.js
405-
bower_components/pouchdb-find/lib/index.js
406-
bower_components/pouchdb-find/lib/utils.js
407-
bower_components/pouchdb-find/www/ace/ace.js
408-
bower_components/pouchdb-find/www/ace/mode-javascript.js
409-
bower_components/pouchdb-find/www/ace/theme-xcode.js
410-
bower_components/pouchdb-find/www/ace/worker-javascript.js
411-
bower_components/pouchdb-find/www/app.js
412-
bower_components/pouchdb-find/www/bootstrap/js/bootstrap.js
413-
bower_components/pouchdb-find/www/bootstrap/js/bootstrap.min.js
414-
bower_components/pouchdb-find/www/bootstrap/js/npm.js
415-
bower_components/pouchdb-find/www/handlebars/handlebars-v2.0.0.js
416-
bower_components/pouchdb-find/www/handlebars/handlebars.runtime-v2.0.0.js
417-
bower_components/pouchdb-find/www/jquery/jquery.min.js
418-
bower_components/pouchdb-find/www/pouchdb-3.2.2-prerelease.js
419-
bower_components/pouchdb-upsert/bin/dev-server.js
420-
bower_components/pouchdb-upsert/bin/test-browser.js
421-
bower_components/pouchdb-upsert/dist/pouchdb.upsert.js
422-
bower_components/pouchdb-upsert/dist/pouchdb.upsert.min.js
423-
bower_components/pouchdb-upsert/index.js
424369
bower_components/pouchdb/bin/add-license.js
425370
bower_components/pouchdb/bin/build-site.js
426371
bower_components/pouchdb/bin/dev-server.js
@@ -494,6 +439,7 @@ openNote/controllers/searchController.js
494439
openNote/controllers/settings/databaseController.js
495440
openNote/controllers/settings/legacyController.js
496441
openNote/controllers/settings/settingsController.js
442+
openNote/directives/fadeOutDirective.js
497443
openNote/directives/randomFadeInDirective.js
498444
openNote/openNote.config.js
499445
openNote/openNote.js
@@ -531,19 +477,13 @@ bower_components/ckeditor/skins/moono/editor_iequirks.css
531477
bower_components/dragula.js/dist/dragula.css
532478
bower_components/dragula.js/dist/dragula.min.css
533479
bower_components/dragula.js/example/example.css
534-
bower_components/es5-shim/tests/lib/jasmine.css
535480
bower_components/intro.js/example/assets/css/bootstrap-responsive.min.css
536481
bower_components/intro.js/example/assets/css/bootstrap.min.css
537482
bower_components/intro.js/example/assets/css/demo.css
538483
bower_components/intro.js/introjs-rtl.css
539484
bower_components/intro.js/introjs.css
540485
bower_components/intro.js/minified/introjs-rtl.min.css
541486
bower_components/intro.js/minified/introjs.min.css
542-
bower_components/pouchdb-find/www/bootstrap/css/bootstrap-theme.css
543-
bower_components/pouchdb-find/www/bootstrap/css/bootstrap-theme.min.css
544-
bower_components/pouchdb-find/www/bootstrap/css/bootstrap.css
545-
bower_components/pouchdb-find/www/bootstrap/css/bootstrap.min.css
546-
bower_components/pouchdb-find/www/smashbros.css
547487
openNote/style/animations.css
548488
openNote/style/dark/ckeditor/moono.dark/dialog.css
549489
openNote/style/dark/ckeditor/moono.dark/dialog_ie.css
@@ -605,8 +545,6 @@ bower_components/ckeditor/samples/uicolor.html
605545
bower_components/ckeditor/samples/uilanguages.html
606546
bower_components/ckeditor/samples/xhtmlstyle.html
607547
bower_components/dragula.js/index.html
608-
bower_components/es5-shim/tests/index.html
609-
bower_components/es5-shim/tests/index.min.html
610548
bower_components/intro.js/example/RTL/index.html
611549
bower_components/intro.js/example/custom-class/index.html
612550
bower_components/intro.js/example/hello-world/index.html
@@ -618,7 +556,6 @@ bower_components/intro.js/example/multi-page/index.html
618556
bower_components/intro.js/example/multi-page/second.html
619557
bower_components/intro.js/example/programmatic/index.html
620558
bower_components/intro.js/example/withoutElement/index.html
621-
bower_components/pouchdb-find/index.html
622559
bower_components/pouchdb/docs/_includes/alert/end.html
623560
bower_components/pouchdb/docs/_includes/alert/start.html
624561
bower_components/pouchdb/docs/_includes/anchor.html
@@ -730,11 +667,8 @@ bower_components/ckeditor/skins/moono/images/lock.png
730667
bower_components/ckeditor/skins/moono/images/refresh.png
731668
bower_components/dragula.js/resources/demo.png
732669
bower_components/dragula.js/resources/eyes.png
733-
bower_components/es5-shim/tests/lib/jasmine_favicon.png
734670
bower_components/intro.js/example/assets/img/glyphicons-halflings-white.png
735671
bower_components/intro.js/example/assets/img/glyphicons-halflings.png
736-
bower_components/pouchdb-find/www/ribbon.png
737-
bower_components/pouchdb-find/www/smashers.png
738672
bower_components/pouchdb/docs/static/img/apple-indexeddb.png
739673
bower_components/pouchdb/docs/static/img/browser-logos/android_32x32.png
740674
bower_components/pouchdb/docs/static/img/browser-logos/blackberry_32x32.png

0 commit comments

Comments
 (0)