Skip to content

Commit

Permalink
Relocated header and ensured build is done post install.
Browse files Browse the repository at this point in the history
  • Loading branch information
woodyrew committed Feb 17, 2017
1 parent 6b3a2b3 commit 85a9329
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -54,4 +54,4 @@ jspm_packages
/css

# Vulcanized
/elements/vulcanized.html
/elements/*.min.html
3 changes: 2 additions & 1 deletion demo/index.html
Expand Up @@ -11,7 +11,8 @@
</script>

<!-- 2. Use an HTML Import to bring in some elements. -->
<link rel="import" href="../elements/header.html">
<!-- <link rel="import" href="../elements/header/header.html"> -->
<link rel="import" href="../elements/header.min.html">
</head>
<body>
<nuxeo-header show-nuxeo-menu>
Expand Down
10 changes: 1 addition & 9 deletions elements/header.html → elements/header/header.html
@@ -1,4 +1,4 @@
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/polymer/polymer.html">

<link rel="import" href="./header_banner.html">
<link rel="import" href="./header_menu.html">
Expand Down Expand Up @@ -163,11 +163,3 @@
});
</script>
</dom-module>


<!-- nsh('sitename', 'Elements');
nsh('menu_items', 'Core Elements', '/core-elements');
nsh('menu_items', 'UI Elements', '/ui-elements');
nsh('banner_image_id', '1');
nsh('banner_title', 'Elements');
nsh('banner_text', 'Placeholder text.'); -->
@@ -1,4 +1,4 @@
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/polymer/polymer.html">

<dom-module id="nuxeo-banner">
<template>
Expand Down
@@ -1,4 +1,4 @@
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/polymer/polymer.html">

<!-- site-name="Elements" menu-items='[{title: "Milestones", url: "/milestones"}, {title: "Continuous", url: "/continuous"}, {title: "Login", url: "/login"}]' -->
<dom-module id="nuxeo-menu">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -14,7 +14,7 @@
"postinstall": "npm run compile",
"precompile": "bower install",
"compile": "npm run compile:header",
"compile:header": "vulcanize -o elements/header.html elements/header.html --strip-comments --inline-scripts --inline-css",
"compile:header": "vulcanize -o elements/header.min.html elements/header/header.html --strip-comments --inline-scripts --inline-css",
"compile:styles": "node-sass --source-map true --source-map-contents --include-path ./scss/ --include-path ./node_modules/normalize-scss/sass/ --include-path ./node_modules/open-sans-fontface/sass --output-style compressed --output ./tmp/ ./scss/",
"postcompile:styles": "postcss --use autoprefixer -c postcss.json -d css/ tmp/*.css"
},
Expand Down

0 comments on commit 85a9329

Please sign in to comment.