* make base directory include dirname for easier debugging
* fix template
Esse commit está contido em:
+5
-2
@@ -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");
|
||||
});
|
||||
|
||||
|
||||
@@ -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">
|
||||
{
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário