spboyer / cleanshave Goto Github PK
View Code? Open in Web Editor NEWASP.NET Core (RC1) and Angular 2 SPA Template
ASP.NET Core (RC1) and Angular 2 SPA Template
Installed nodemon and then run 'npm start':
'dnx' is not recognized as an internal or external command,
operable program or batch file.
[nodemon] app crashed - waiting for file changes before starting...
What are the steps to add a 3rd party libraries?
I was trying to add https://www.npmjs.com/package/ng2-bootstrap
How would you automatically compile TS?
Now with the RC Angular is no longer bundled as a single .js file....
Great project! Are you planning to upgrade it to use the Angular 2 beta? I've been trying to do it myself, but no success so far. The syntax changes seem to be substantial.
I can get it working from the command line (npm start
) but when I open the project with Visual Studio I'm in a world of hurt.
Out the bat it tries to update the dependencies but fails:
PATH=.\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External;%PATH%;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\git;c:\Program Files\nodejs
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\Bower.cmd" install --force-latest
bower jquery-validation-unobtrusive#3.2.4 cached https://github.com/aspnet/jquery-validation-unobtrusive.git#3.2.4
bower jquery-validation-unobtrusive#3.2.4 validate 3.2.4 against https://github.com/aspnet/jquery-validation-unobtrusive.git#3.2.4
bower jquery-validation#1.14.0 cached https://github.com/jzaefferer/jquery-validation.git#1.14.0
bower jquery-validation#1.14.0 validate 1.14.0 against https://github.com/jzaefferer/jquery-validation.git#1.14.0
bower bootstrap#3.3.5 cached https://github.com/twbs/bootstrap.git#3.3.5
bower bootstrap#3.3.5 validate 3.3.5 against https://github.com/twbs/bootstrap.git#3.3.5
bower jquery#2.1.4 cached https://github.com/jquery/jquery-dist.git#2.1.4
bower jquery#2.1.4 validate 2.1.4 against https://github.com/jquery/jquery-dist.git#2.1.4
bower jquery#2.1.4 install jquery#2.1.4
bower skipped jquery was not installed because there is already a non-bower directory with that name in the components directory (wwwroot\lib\jquery). You can force installation with --force.
bower jquery-validation-unobtrusive#3.2.4 install jquery-validation-unobtrusive#3.2.4
bower jquery-validation#1.14.0 install jquery-validation#1.14.0
bower bootstrap#3.3.5 install bootstrap#3.3.5
bower skipped bootstrap was not installed because there is already a non-bower directory with that name in the components directory (wwwroot\lib\bootstrap). You can force installation with --force.
jquery#2.1.4 ..\..\..\Users\manuel.de.leon\AppData\Local\bower\cache\packages\35300e45e44dbc6f186ed069533ef0af\2.1.4
jquery-validation-unobtrusive#3.2.4 wwwroot\lib\jquery-validation-unobtrusive
├── jquery#2.1.4
└── jquery-validation#1.14.0
jquery-validation#1.14.0 wwwroot\lib\jquery-validation
└── jquery#2.1.4
bootstrap#3.3.5 ..\..\..\Users\manuel.de.leon\AppData\Local\bower\cache\packages\478ab1d28ba78f550601bf536eea62f5\3.3.5
└── jquery#2.1.4
If I try to build the project I get:
1>------ Build started: Project: cleanshave, Configuration: Debug Any CPU ------
1>node_modules\angular2\platform\browser.d.ts(77,90): error TS2304: Build: Cannot find name 'Promise'.
1>node_modules\angular2\src\core\application_ref.d.ts(83,60): error TS2304: Build: Cannot find name 'Promise'.
...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
At this point I figure I'm missing a typed file so I add tsd install es6-shim
(jasmine too for good measure). I try to build the project and now I get:
1>------ Build started: Project: cleanshave, Configuration: Debug Any CPU ------
1> C:\Program Files\dotnet\dotnet.exe build "C:\MyFiles\Angular\cleanshave" --configuration Debug --no-dependencies
1> Project cleanshave (DNX,Version=v4.5.1) will be compiled because expected outputs are missing
1> Compiling cleanshave for DNX,Version=v4.5.1
1> Compilation succeeded.
1> 3 Warning(s)
1> 0 Error(s)
1> Time elapsed 00:00:01.8434519
1>C:\MyFiles\Angular\cleanshave\project.json(38,22): warning DOTNET1015: The 'publishExclude' option is deprecated. Use 'publishOptions' instead.
1>C:\MyFiles\Angular\cleanshave\project.json(33,15): warning DOTNET1015: The 'exclude' option is deprecated. Use 'exclude' within 'compile' or 'embed' instead.
1>C:\MyFiles\Angular\cleanshave\project.json(3,26): warning DOTNET1015: The 'compilationOptions' option is deprecated. Use 'buildOptions' instead.
1>
1> Project cleanshave (DNXCore,Version=v5.0) will be compiled because expected outputs are missing
1> Compiling cleanshave for DNXCore,Version=v5.0
1>C:\MyFiles\Angular\cleanshave\project.json(38,22): warning DOTNET1015: The 'publishExclude' option is deprecated. Use 'publishOptions' instead.
1>C:\MyFiles\Angular\cleanshave\project.json(33,15): warning DOTNET1015: The 'exclude' option is deprecated. Use 'exclude' within 'compile' or 'embed' instead.
1>C:\MyFiles\Angular\cleanshave\project.json(3,26): warning DOTNET1015: The 'compilationOptions' option is deprecated. Use 'buildOptions' instead.
1> Compilation succeeded.
1> 3 Warning(s)
1> 0 Error(s)
1> Time elapsed 00:00:01.7300023
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Common.Targets(241,5): error : Failed to make the following project runnable: cleanshave (DNXCore,Version=v5.0) reason: Expected coreclr library not found in package graph. Please try running dotnet restore again.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Key point as I see it: Expected coreclr library not found in package graph. Please try running dotnet restore again.
At this point I don't know what to do because I'm pretty sure I shouldn't run dotnet restore... but I do it anyway and the project now breaks even in the console.
/help
I ran this repo with dotnet restore and had the same errors when I tried it with trails.
Guess the dependencies have changed and Program.cs now has a Main Method.
Was wondering if this repo was for your bash script, or you might update it,
to work with dotnet restore like here:
https://github.com/aspnet/cli-samples
dotnet console hello world was easy to run but as soon as I tried to use it with
web projects I got all sorts of library exceptions.
I am getting errors related to the above and over a 100 pointing to promise.d.ts
TS2661 Build: Cannot re-export name that is not defined in the module.
I am not sure how to fix it but it doesn't seem to compile at all...has anyone ran into this issue? or how to fix it?
Some of the solutions suggested putting in "typings/browser.d.ts" in the "exclude" section of tsconfig but it doesn't seem to solve anything. I am unfamiliar with this to be able to figure it out.
I'm wondering how to open this project in VS 2015. I suppose I will need to create a new project and drop all these files inside it, right? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.