wsick / Fayde

Inspired by Silverlight; XAML engine using Javascript and rendering to the HTML5 Canvas.
MIT License
189 stars 27 forks source link

Issue in running testsite fayde-library #135

Closed deepaksm1 closed 9 years ago

deepaksm1 commented 9 years ago

I have followed steps which are in "How to Create a Basic Library". When I am trying to run testsite, I get following warning message

> cmd.exe /c grunt -b "D:\FaydeControls\Ipro.Controls" --gruntfile "D:\FaydeControls\Ipro.Controls\Gruntfile.js" testsite
Running "typescript:build" (typescript) task
File D:/FaydeControls/Ipro.Controls/dist/Ipro.Controls.js created.
js: 1 file, map: 1 file, declaration: 1 file (1752ms)
Running "typescript:testsite" (typescript) task
0 files created. js: 0 files, map: 0 files, declaration: 0 files (1528ms)
Running "connect:testsite" (connect) task
Verifying property connect.testsite exists in config...ERROR
>> Unable to process task.
Warning: Required config property "connect.testsite" missing. Use --force to continue.
Aborted due to warnings.
Process terminated with code 3.
BSick7 commented 9 years ago

There is a bug in the yeoman generator that I just fixed.

Run the following to update to the fixed executable. npm install -g generator-fayde-library

For your existing library, go to line 143 of your Gruntfile.js in the root directory. Replace the following

        ...
        connect: {
                server: {
                        ...
                }
        }
        ...

with

        ...
        connect: {
                testsite: {
                        ...
                }
        }
        ...