diff --git a/app-shell/package.json b/app-shell/package.json
index 73d40bd..0215160 100644
--- a/app-shell/package.json
+++ b/app-shell/package.json
@@ -10,7 +10,9 @@
"format": "clang-format -i -style=file --glob=src/**/*.ts",
"pree2e": "webdriver-manager update",
"e2e": "protractor",
- "build_publish": "rm -rf dist && tsc -p src/tsconfig.publish.es5.json && tsc -p src/tsconfig.publish.es6.json && cp src/package.json dist/package.json"
+ "clean": "rm -rf dist",
+ "build": "ng build && tsc -p src/tsconfig.publish.es5.json && tsc -p src/tsconfig.publish.es6.json && cp src/package.json dist/app/package.json && browserify dist/app/shell-parser/index.js -s shellParserFactory > dist/app/shell-parser.js && rm -rf dist/app/shell-parser && rm -rf dist/app/vendor",
+ "build_publish": "npm run clean && npm run build"
},
"private": true,
"dependencies": {
@@ -21,7 +23,6 @@
"@angular/platform-browser-dynamic": "2.0.0-rc.0",
"@angular/router": "2.0.0-rc.0",
"es6-shim": "^0.35.0",
- "parse5": "^2.1.5",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.6",
"systemjs": "0.19.26",
@@ -29,6 +30,7 @@
},
"devDependencies": {
"angular-cli": "0.0.*",
+ "browserify": "^13.0.1",
"clang-format": "^1.0.35",
"codelyzer": "0.0.14",
"ember-cli-inject-live-reload": "^1.4.0",
@@ -37,6 +39,7 @@
"karma": "^0.13.15",
"karma-chrome-launcher": "^0.2.3",
"karma-jasmine": "^0.3.8",
+ "parse5": "2.1.5",
"protractor": "^3.3.0",
"ts-node": "^0.5.5",
"tslint": "^3.6.0",
diff --git a/app-shell/src/app/shell-parser/config.ts b/app-shell/src/app/shell-parser/config.ts
index 3bd7635..c924774 100644
--- a/app-shell/src/app/shell-parser/config.ts
+++ b/app-shell/src/app/shell-parser/config.ts
@@ -2,7 +2,7 @@ export type RouteDefinition = string;
const SHELL_PARSER_CACHE_NAME = 'mobile-toolkit:app-shell';
const APP_SHELL_URL = './app_shell.html';
-const NO_RENDER_CSS_SELECTOR = '.shell-no-render';
+const NO_RENDER_CSS_SELECTOR = '[shellNoRender]';
const ROUTE_DEFINITIONS: RouteDefinition[] = [];
// TODO(mgechev): use if we decide to include @angular/core
diff --git a/app-shell/src/app/shell-parser/shell-parser.spec.ts b/app-shell/src/app/shell-parser/shell-parser.spec.ts
index 5c46e68..1e3e9f6 100644
--- a/app-shell/src/app/shell-parser/shell-parser.spec.ts
+++ b/app-shell/src/app/shell-parser/shell-parser.spec.ts
@@ -27,10 +27,10 @@ const prerenderedTemplate = `
-
+
Hello world
-