Skip to content

Instantly share code, notes, and snippets.

@leeight
Created April 15, 2014 07:13
Show Gist options
  • Save leeight/10709514 to your computer and use it in GitHub Desktop.
Save leeight/10709514 to your computer and use it in GitHub Desktop.
app/ecom/fe/trunk/vs-mid-edu/mobile
diff --git a/mobile/edp-build-config.js b/mobile/edp-build-config.js
index 46a89f1..449d739 100644
--- a/mobile/edp-build-config.js
+++ b/mobile/edp-build-config.js
@@ -15,36 +15,25 @@ exports.getProcessors = function () {
return [
new StylusCompiler({
+ stylus: require( './node_modules/archer/node_modules/stylus/' ),
compileOptions: {
use: archerConfig
}
}),
- new CssCompressor(),
-
+ new CssCompressor({
+ files: [
+ '*.styl', '*.css'
+ ]
+ }),
new Html2JsCompiler({
mode: 'compress',
extnames: ['tpl'],
combine: true
}),
-
- new ModuleCompiler( {
- configFile: 'module.conf',
- entryExtnames: moduleEntries
- } ),
- 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'
- } ),
-
+ new ModuleCompiler(),
+ new JsCompressor(),
+ new PathMapper(),
new EtplCombiner()
-
];
};
@@ -54,24 +43,23 @@ function getExtraProcessors() {
}
exports.exclude = [
- '/tool',
- '/wise',
- '/doc',
- '/test',
- '/font',
- '/output',
- '/node_modules',
- '/module.conf',
- '/package.json',
- '/dep/packages.manifest',
- '/dep/*/*/test',
- '/dep/*/*/doc',
- '/dep/*/*/demo',
- '/dep/*/*/tool',
- '/dep/*/*/*.md',
- '/dep/*/*/package.json',
- '/edp-*',
- '/.edpproj',
+ 'tool',
+ 'wise',
+ 'doc',
+ 'test',
+ 'output',
+ 'node_modules',
+ 'module.conf',
+ 'package.json',
+ 'dep/packages.manifest',
+ 'dep/*/*/test',
+ 'dep/*/*/doc',
+ 'dep/*/*/demo',
+ 'dep/*/*/tool',
+ 'dep/*/*/*.md',
+ 'dep/*/*/package.json',
+ 'edp-*',
+ '.edpproj',
'.svn',
'.git',
'.gitignore',
diff --git a/mobile/module.conf b/mobile/module.conf
index 3c2a58e..7a5c713 100644
--- a/mobile/module.conf
+++ b/mobile/module.conf
@@ -4,69 +4,69 @@
"packages": [
{
"name": "saber-viewport",
- "location": "dep/saber-viewport/0.2.1-beta.7/src",
+ "location": "../dep/saber-viewport/0.2.1-beta.7/src",
"main": "main"
},
{
"name": "saber-lang",
- "location": "dep/saber-lang/0.2.0/src",
+ "location": "../dep/saber-lang/0.2.0/src",
"main": "main"
},
{
"name": "saber-dom",
- "location": "dep/saber-dom/0.3.0/src",
+ "location": "../dep/saber-dom/0.3.0/src",
"main": "main"
},
{
"name": "saber-promise",
- "location": "dep/saber-promise/0.1.2-beta.3/src",
+ "location": "../dep/saber-promise/0.1.2-beta.3/src",
"main": "promise"
},
{
"name": "saber-run",
- "location": "dep/saber-run/0.1.0/src",
+ "location": "../dep/saber-run/0.1.0/src",
"main": "main"
},
{
"name": "saber-emitter",
- "location": "dep/saber-emitter/0.3.0/src",
+ "location": "../dep/saber-emitter/0.3.0/src",
"main": "emitter"
},
{
"name": "saber-ajax",
- "location": "dep/saber-ajax/0.1.1-beta.1/src",
+ "location": "../dep/saber-ajax/0.1.1-beta.1/src",
"main": "ajax"
},
{
"name": "saber-string",
- "location": "dep/saber-string/0.2.0/src",
+ "location": "../dep/saber-string/0.2.0/src",
"main": "string"
},
{
"name": "saber-firework",
- "location": "dep/saber-firework/0.1.0-beta.4/src"
+ "location": "../dep/saber-firework/0.1.0-beta.4/src"
},
{
"name": "saber-router",
- "location": "dep/saber-router/0.1.0-beta.5/src",
+ "location": "../dep/saber-router/0.1.0-beta.5/src",
"main": "main"
},
{
"name": "saber-tap",
- "location": "dep/saber-tap/0.1.0-3/src",
+ "location": "../dep/saber-tap/0.1.0-3/src",
"main": "tap"
},
{
"name": "saber-env",
- "location": "dep/saber-env/0.0.1-beta.1/src"
+ "location": "../dep/saber-env/0.0.1-beta.1/src"
},
{
"name": "etpl",
- "location": "dep/etpl/2.0.8/src",
+ "location": "../dep/etpl/2.0.8/src",
"main": "main"
}
],
"combine": {
"app": 1
}
-}
\ No newline at end of file
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment