Skip to content

Commit

Permalink
Fix build process
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdLippe committed Oct 21, 2017
1 parent fc52ebc commit e6a7272
Show file tree
Hide file tree
Showing 18 changed files with 35 additions and 266 deletions.
34 changes: 0 additions & 34 deletions _includes/event.html

This file was deleted.

33 changes: 0 additions & 33 deletions _includes/method.html

This file was deleted.

22 changes: 0 additions & 22 deletions _includes/navigation.html

This file was deleted.

13 changes: 0 additions & 13 deletions _includes/type-referral.html

This file was deleted.

29 changes: 0 additions & 29 deletions _includes/type.html

This file was deleted.

103 changes: 0 additions & 103 deletions _layouts/default.html

This file was deleted.

2 changes: 0 additions & 2 deletions create-search-index.js
@@ -1,5 +1,3 @@
#! /usr/bin/env node

'use strict';

/**
Expand Down
3 changes: 1 addition & 2 deletions elements/cr-domain/cr-domain-details.html
@@ -1,3 +1,4 @@
<link rel="import" href="/bower_components/polymer/polymer.html">
<link rel="import" href="cr-domain-experimental.html">
<link rel="import" href="cr-domain-param.html">

Expand Down Expand Up @@ -94,7 +95,6 @@ <h5>[[properties.name]]</h5>
param="[[item]]"
version="[[version]]"
domain="[[domain]]"
type="[[type]]"
></cr-domain-param>
</template>
</dl>
Expand All @@ -108,7 +108,6 @@ <h5>Return object</h5>
param="[[item]]"
version="[[version]]"
domain="[[domain]]"
type="[[type]]"
></cr-domain-param>
</template>
</dl>
Expand Down
2 changes: 2 additions & 0 deletions elements/cr-domain/cr-domain-experimental.html
@@ -1,3 +1,5 @@
<link rel="import" href="/bower_components/polymer/polymer.html">

<dom-module id="cr-domain-experimental">
<template>
<style>
Expand Down
3 changes: 2 additions & 1 deletion elements/cr-domain/cr-domain-param.html
@@ -1,3 +1,4 @@
<link rel="import" href="/bower_components/polymer/polymer.html">
<link rel="import" href="cr-domain-experimental.html">

<dom-module id="cr-domain-param">
Expand Down Expand Up @@ -125,7 +126,7 @@
<h6>Array element:</h6>
[[param.items.description]]
<template is="dom-repeat" items="[[param.items.properties]]">
<cr-domain-param item="[[item]]" version="[[version]]" domain="[[domain]]"></cr-domain-param>
<cr-domain-param param="[[item]]" version="[[version]]" domain="[[domain]]"></cr-domain-param>
</template>
<span>[[_computeParamEnum(param.items.enum)]]</span>
</div>
Expand Down
1 change: 1 addition & 0 deletions elements/cr-domain/cr-domain.html
@@ -1,3 +1,4 @@
<link rel="import" href="/bower_components/polymer/polymer.html">
<link rel="import" href="cr-domain-experimental.html">
<link rel="import" href="cr-domain-details.html">
<link rel="import" href="/styles/custom-paper-material-styles.html">
Expand Down
2 changes: 2 additions & 0 deletions elements/cr-html-echo/cr-html-echo.html
@@ -1,3 +1,5 @@
<link rel="import" href="/bower_components/polymer/polymer.html">

<dom-module id="cr-html-echo">
<script>
Polymer({
Expand Down
10 changes: 5 additions & 5 deletions elements/cr-search-control/cr-search-control.html
@@ -1,8 +1,8 @@
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/iron-ajax/iron-ajax.html">
<link rel="import" href="../../bower_components/iron-behaviors/iron-button-state.html">
<link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="../../bower_components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="/bower_components/polymer/polymer.html">
<link rel="import" href="/bower_components/iron-ajax/iron-ajax.html">
<link rel="import" href="/bower_components/iron-behaviors/iron-button-state.html">
<link rel="import" href="/bower_components/iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="/bower_components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="../cr-search-menu/cr-search-menu.html">

<dom-module id="cr-search-control">
Expand Down
12 changes: 6 additions & 6 deletions elements/cr-search-menu/cr-search-menu.html
@@ -1,9 +1,9 @@
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="../../bower_components/iron-overlay-behavior/iron-overlay-behavior.html">
<link rel="import" href="../../bower_components/iron-menu-behavior/iron-menu-behavior.html">
<link rel="import" href="../../bower_components/iron-list/iron-list.html">
<link rel="import" href="../../bower_components/iron-icons/image-icons.html">
<link rel="import" href="/bower_components/polymer/polymer.html">
<link rel="import" href="/bower_components/iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="/bower_components/iron-overlay-behavior/iron-overlay-behavior.html">
<link rel="import" href="/bower_components/iron-menu-behavior/iron-menu-behavior.html">
<link rel="import" href="/bower_components/iron-list/iron-list.html">
<link rel="import" href="/bower_components/iron-icons/image-icons.html">
<link rel="import" href="../cr-html-echo/cr-html-echo.html">

<dom-module id="cr-search-menu">
Expand Down
6 changes: 4 additions & 2 deletions gulpfile.js
Expand Up @@ -14,6 +14,8 @@ const del = require('del');
const gulp = require('gulp');
const gulpif = require('gulp-if');
const mergeStream = require('merge-stream');
// Enable logging for the build process
// require('plylog').setVerbose();
const polymerBuild = require('polymer-build');

// Here we add tools that will be used to process our source files.
Expand All @@ -28,7 +30,7 @@ const htmlMinifier = require('gulp-html-minifier');
const swPrecacheConfig = require('./sw-precache-config.js');
const polymerJson = require('./polymer.json');
const polymerProject = new polymerBuild.PolymerProject(polymerJson);
const buildDirectory = 'build';
const buildDirectory = '_site';

/**
* Waits for the given ReadableStream
Expand Down Expand Up @@ -98,7 +100,7 @@ function build() {
// If you want bundling, pass the stream to polymerProject.bundler.
// This will bundle dependencies into your fragments so you can lazy
// load them.
buildStream = buildStream.pipe(polymerProject.bundler());
// buildStream = buildStream.pipe(polymerProject.bundler());

// Now let's generate the HTTP/2 Push Manifest
buildStream = buildStream.pipe(polymerProject.addPushManifest());
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -21,6 +21,7 @@
"polymer-build": "^2.1.0"
},
"scripts": {
"build": "bundle exec jekyll build && cd _site && ../node_modules/.bin/gulp build"
"build": "gulp build",
"serve": "polymer serve -p 8000 --proxy-path devtools-protocol --proxy-target http://localhost:8000/"
}
}
3 changes: 0 additions & 3 deletions polymer.json
Expand Up @@ -6,10 +6,7 @@
"styles/**/*"
],
"extraDependencies": [
"tot/**/*",
"v8/**/*",
"search_index/**/*",
"1-2/**/*",
"bower_components/webcomponentsjs/*.js"
],
"lint": {
Expand Down

0 comments on commit e6a7272

Please sign in to comment.