Skip to content

Instantly share code, notes, and snippets.

@leeight
Created April 2, 2014 13:54
Show Gist options
  • Save leeight/9934596 to your computer and use it in GitHub Desktop.
Save leeight/9934596 to your computer and use it in GitHub Desktop.
app/ecom/weigou/trunk/ic/ic-daoliu/daoliu-web/src/main/web-fe
diff --git a/edp-build-config.js b/edp-build-config.js
index 37de2b0..bbd1ddf 100644
--- a/edp-build-config.js
+++ b/edp-build-config.js
@@ -14,22 +14,22 @@ var version = today.getFullYear() * 10000
exports.getProcessors = function () {
return [
- new LessCompiler( {
- entryExtnames: pageEntries
- } ),
+ new LessCompiler({
+ files: [
+ 'index.html',
+ 'dep/esui/*/src/css/main.less',
+ 'src/main.less'
+ ]
+ }),
new CssCompressor(),
- new ModuleCompiler( {
- configFile: 'module.conf',
- entryExtnames: moduleEntries
- } ),
- new JsCompressor(),
+ new ModuleCompiler({
+ files: [
+ 'src/**/*.js',
+ '!src/assets/**'
+ ]
+ }),
+ // new JsCompressor(),
new PathMapper( {
- replacements: [
- { type: 'html', tag: 'link', attribute: 'href', extnames: pageEntries },
- { type: 'html', tag: 'img', attribute: 'src', extnames: pageEntries },
- { type: 'html', tag: 'script', attribute: 'src', extnames: pageEntries },
- { extnames: moduleEntries, replacer: 'module-config' }
- ],
from: 'src',
to: 'asset' + '-' + version
} )
@@ -37,21 +37,21 @@ exports.getProcessors = function () {
};
exports.exclude = [
- '/WEB-INF',
+ 'WEB-INF',
'.svn/*',
- '/tool',
- '/doc',
- '/test',
- '/module.conf',
- '/dep/packages.manifest',
- '/dep/*/*/test',
- '/dep/*/*/doc',
- '/dep/*/*/demo',
- '/dep/*/*/tool',
- '/dep/*/*/*.md',
- '/dep/*/*/package.json',
- '/edp-*',
- '/.edpproj',
+ 'tool',
+ 'doc',
+ 'test',
+ 'module.conf',
+ 'dep/packages.manifest',
+ 'dep/*/*/test',
+ 'dep/*/*/doc',
+ 'dep/*/*/demo',
+ 'dep/*/*/tool',
+ 'dep/*/*/*.md',
+ 'dep/*/*/package.json',
+ 'edp-*',
+ '.edpproj',
'.svn',
'.git',
'.gitignore',
diff --git a/module.conf b/module.conf
index 2646c00..ec07741 100644
--- a/module.conf
+++ b/module.conf
@@ -4,46 +4,46 @@
"packages": [
{
"name": "er",
- "location": "dep/er/3.0.3/src",
+ "location": "../dep/er/3.0.3/src",
"main": "main"
},
{
"name": "mini-event",
- "location": "dep/mini-event/1.0.0/src",
+ "location": "../dep/mini-event/1.0.0/src",
"main": "main"
},
{
"name": "etpl",
- "location": "dep/etpl/2.0.6/src",
+ "location": "../dep/etpl/2.0.6/src",
"main": "main"
},
{
"name": "esui",
- "location": "dep/esui/3.0.3/src",
+ "location": "../dep/esui/3.0.3/src",
"main": "main"
},
{
"name": "underscore",
- "location": "dep/underscore/1.4.4/src",
+ "location": "../dep/underscore/1.4.4/src",
"main": "underscore"
},
{
"name": "est",
- "location": "dep/est/1.1.0/src"
+ "location": "../dep/est/1.1.0/src"
},
{
"name": "esf-ms",
- "location": "dep/esf-ms/1.0.2/src"
+ "location": "../dep/esf-ms/1.0.2/src"
},
{
"name": "ef",
- "location": "dep/ef/3.0.2/src",
+ "location": "../dep/ef/3.0.2/src",
"main": "main"
},
{
"name": "moment",
- "location": "dep/moment/2.0.0/src",
+ "location": "../dep/moment/2.0.0/src",
"main": "moment"
}
]
-}
\ No newline at end of file
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment