x6doooo / generator-gulp-angular2 Goto Github PK
View Code? Open in Web Editor NEWYeoman generator for Angular2 + Gulp, base on angular2-seed and generator-gulp-angular
Yeoman generator for Angular2 + Gulp, base on angular2-seed and generator-gulp-angular
不好意**请教下,因为引用的angular2rc1,所以gulp需要改一下,但不知如何改,可否指点一下?
gulp serve.prod
does not work
Not injected codes when the index.html is minified already.
Temporary I comment out this row. Now it's working.
.pipe(minifyHTML(HTMLMinifierOpts))
When i launch serve.pro I get the following:
System is not defined. init.js Line 1
Regards
Uncaught (in promise) ReferenceError: Error loading "angular2/router" at http://localhost:5555/angular2/router.js(…)
It looks like the dirty load of the router doesnt work.
at Error (native)
[00:23:52] 'build.prod' errored after 3.71 s
[00:23:52] Error in plugin 'run-sequence'
Message:
An error occured in task 'build.ng2.prod'.
I suggest something like:
# Dependency Files
bower_components/
node_modules/
# Build-related Files
/.sass-cache
/.tmp
/dist
# Mac OS Metadata Files
**/.DS_Store
$ yo gulp-angular2
Error gulp-angular2
You don't seem to have a generator with the name gulp-angular2 installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 16 registered generators run yo with the `--help` option.
$ yo --version
1.6.0
$ npm info generator-gulp-angular2
{ name: 'generator-gulp-angular2',
description: 'Yeoman generator for Angular2 + Gulp, base on angular2-seed and generator-gulp-angular',
'dist-tags': { latest: '0.1.4' },
versions: [ '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4' ],
maintainers: [ 'x6doooo <[email protected]>' ],
...
Why bower file added, but bower files are not injected?
None of the installation tasks run automatically as they should, and the package.json file is incorrectly built, preventing a npm install
command to run.
I generated the project and working in dev mode. When I tried to run in prod mode I am getting below error
init.ts:1 Uncaught ReferenceError: System is not defined(…)
I tried to debug and I found that lib.js file is not included in index.html file.
Please help me here
How to add @angular/core module to projet. I got not found.
error TS2307: Cannot find module '@angular/core'.
In your readme you wrote that this is based on gulp-angular and angular2-seed. But in gulp-angular you have a lot more options to choose while the install wizard, like Typescript or ES6, angular material, bootstrap or whatever and I think a couple more things. Please add those options to the generator.
I can see the proper name for the package.json in the master branch code. But when i install it using yo, the name has spaces like "name": "generator gulp angular2".
Because of that i am getting the following error.
I think you also have to modify the name to "name": "generator-gulp-angular2", even when we install it from the yo.
I am getting this error. Why? I don't understand.
Property 'map' does not exist on type 'EventEmitter'.
Hi,
once installed it's not found...
The required modules from the gulpfile.js are not included into the package.json file so the npm install command won't recognize the dependencies.
So when the gulp serve.dev command is declared, it won't serve because of the missing modules.
I need to upgrade to beta.15 but i'm facing a lot of errors. Is there a simple way for that?
I have found that when the kebab naming is used to name the project, installing dependencies fails for npm and bower
Example:
Project name: angular-project
Console: npm WARN Invalid name: "angular project"
Property project name in the package.json, change angular-project by angular project
I'm a angular1 developer new to angular2, typescript, and VSCode. I want to start experimenting with these, but I'm getting numerous errors in VSCode in my annotations:
in /home/marco/quicksplit/app/components/about/about.ts
argument of type 'typeof about' is not assignable to parameter of type 'Type'. Property 'apply' is missing in type 'About'.
This error is coming up for every line of:
@component({
selector: 'component-2'
})
@view({
templateUrl: './components/about/about.html?v=<%= VERSION %>',
directives: [NgFor]
})
Otherwise, I've got the generator to serve the site just fine. I'm not quite sure whether the fault is in the generator or in VSCode. Maybe someone more experienced could tell me where to go.
I just installed your generator. But when I called the build task I get this error:
Error: Error loading "rx" at file:/Users/jan/temp/angular2/node_modules/angular2/node_modules/rx/dist/rx.js
and the rx.js really doesn't exists. Can you reproduce the error? Can you fix it? 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.