Skip to content

Commit 18d8103

Browse files
committed
Grunt build process
- run 'grunt package' to package for distribution - add node_modules to gitignore - update readme
1 parent 6f8ba4c commit 18d8103

File tree

4 files changed

+83
-6
lines changed

4 files changed

+83
-6
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
2-
dist.pem
2+
dist.pem
3+
node_modules

Gruntfile.js

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*global module:false*/
2+
module.exports = function(grunt) {
3+
grunt.initConfig({
4+
pkg: grunt.file.readJSON('package.json'),
5+
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
6+
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
7+
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
8+
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
9+
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
10+
conf: {
11+
name: 'aem-developer-chrome',
12+
dist: 'dist',
13+
src: 'src'
14+
},
15+
compress: {
16+
main: {
17+
options: {
18+
archive: '<%=conf.dist%>/<%=conf.name%>.zip'
19+
},
20+
files: [
21+
{
22+
src: ['<%=conf.src%>/**', '!<%=conf.src%>/**.map']
23+
}
24+
]
25+
}
26+
}
27+
});
28+
grunt.loadNpmTasks('grunt-contrib-compress');
29+
30+
grunt.registerTask('package', ['compress']);
31+
};

README.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,20 @@ Toggle Content Finder on and off. If you are in a Touch UI view, you will be tak
6262

6363
![Toggle UI screenshot](images/screenshot_toggle_ui.png)
6464

65+
Building
66+
--------------------
67+
68+
To create a zip file for deployment to the Google web store:
69+
70+
```
71+
grunt package
72+
```
73+
6574
Todo:
6675
-----
67-
+ Performance: extension starts too slow.
76+
+ Performance: We can always do better.
6877
+ Remove jQuery from popup.js.
6978
+ Chrome doesn't currently support HTML5 datalists in extensions, use when available.
7079
+ Comparison should show reordering of nodes.
71-
+ Comparison should have view as well.
72-
+ Setup dev process: Grunt, Bower, SASS/LESS, build/zip/version, minification, concatenation, etc...
73-
+ Improve UI Toggle for pages that don't map between Touch and Classic.
74-
+ Test in AEM versions below 6.
80+
+ Improve dev process: Grunt, Bower, SASS/LESS, build/zip/version, minification, concatenation, etc...
81+
+ Improve UI Toggle for pages that don't map between Touch and Classic.

package.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "aem-developer-chrome",
3+
"version": "0.3.2",
4+
"description": "Chrome extension for AEM developers.",
5+
"main": "Gruntfile.js",
6+
"repository": {
7+
"type": "git",
8+
"url": "git+ssh://[email protected]:nateyolles/aem-developer-chrome.git"
9+
},
10+
"keywords": [
11+
"adobe",
12+
"adobe experience manager",
13+
"aem",
14+
"cq",
15+
"cq5",
16+
"chrome extension"
17+
],
18+
"author": "Nate Yolles",
19+
"contributors": [
20+
{
21+
"name": "Nate Yolles",
22+
"email": "[email protected]"
23+
}
24+
],
25+
"homepage": "https://chrome.google.com/webstore/detail/aem-developer/hgjhcngmldfpgpakbnffnbnmcmohfmfc",
26+
"engines": {
27+
"node": ">= 0.10.0"
28+
},
29+
"devDependencies": {
30+
"grunt": "^0.4.5",
31+
"grunt-contrib-compress": "^0.13.0",
32+
"grunt-contrib-concat": "~0.4.0",
33+
"grunt-contrib-jshint": "~0.10.0",
34+
"grunt-contrib-qunit": "~0.5.2",
35+
"grunt-contrib-uglify": "~0.5.0",
36+
"grunt-contrib-watch": "~0.6.1"
37+
}
38+
}

0 commit comments

Comments
 (0)