* make base directory include dirname for easier debugging

* fix template
Esse commit está contido em:
David Ascher
2014-01-24 13:50:28 -08:00
commit 1934eb77a8
2 arquivos alterados com 6 adições e 3 exclusões
+5 -2
Ver Arquivo
@@ -89,11 +89,14 @@ module.exports = function(grunt) {
server: {
options: {
port: 9001,
base: __dirname,
base: path.normalize(__dirname + '/..'),
keepalive: true,
protocol: 'https',
open: 9001,
middleware: function(connect, options) {
var middlewares = [];
// var proxy = require('grunt-connect-proxy/lib/utils').proxyRequest;
// middlewares.push(proxy);
if (!Array.isArray(options.base)) {
options.base = [options.base];
}
@@ -127,7 +130,7 @@ module.exports = function(grunt) {
grunt.registerTask('customize', ['prompt', 'make_js_safe', 'template']);
grunt.registerTask('serve', 'start web server to use in designer', function() {
grunt.event.once('connect.server.listening', function(host, port) {
var specRunnerUrl = 'http://' + host + ':' + 9001;
var specRunnerUrl = 'https://' + host + ':' + 9001 + '/' + path.basename(__dirname);
grunt.log.writeln('Tell the designer to load: ' + specRunnerUrl + "/component.html");
});
+1 -1
Ver Arquivo
@@ -2,7 +2,7 @@
label="Click Me" textcolor="#ffffff" buttoncolor="#4DB227" buttonactivecolor="#358915">
<template>
<link rel="stylesheet" href="component.css"></link>
<button id="<%= name %>" on-click="{{click}}"></button>
<button id="<%= js_safe_name %>" on-click="{{click}}"></button>
<shadow></shadow>
<script type="text/json" id="ceci-definition">
{