GithubHelp home page GithubHelp logo

cincheo / jsweet-angular2-quickstart Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 8.0 72 KB

JSweet-enabled Angular 2 quickstart

License: MIT License

HTML 13.44% JavaScript 32.47% CSS 42.28% Java 11.81%
jsweet angular java typescript

jsweet-angular2-quickstart's People

Contributors

renaudpawlak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jsweet-angular2-quickstart's Issues

access module.id

I have noticed that in Angular 2 examples, some decorators access module.id, which is from commonsjs. Right now JSweet does not support this construct, but it could quite easily. Would it be helpful?

Module names

Right now it looks like the default name for the module files is always "module.ts". Can we customize this? I suppose I'm expecting the output to look like a standard Angular2 app, but maybe that's not necessary. It would help, however, when naming templates and other dependencies to know exactly where they should go...

Module 'core' has no exported member 'Component'

Hi,

Just tried to run the default quickstart and I got the following error messages:

[email protected] start C:\Workspaces\workspaceJSweet\jsweet-angular2-quickstart
tsc && concurrently "tsc -w" "lite-server"

.generated/app/AppComponent.ts(3,29): error TS2305: Module 'core' has no exported member 'Component'.
.generated/app/AppComponent.ts(3,29): error TS2339: Property 'Component' does not exist on type 'typeof core'.
.generated/app/AppModule.ts(3,28): error TS2305: Module 'core' has no exported member 'NgModule'.
.generated/app/AppModule.ts(3,28): error TS2339: Property 'NgModule' does not exist on type 'typeof core'.
.generated/app/AppModule.ts(5,28): error TS2304: Cannot find name 'platform_browser'.
.generated/app/AppModule.ts(5,28): error TS2503: Cannot find namespace 'platform_browser'.
.generated/app/Globals.ts(3,37): error TS2304: Cannot find name 'platform_browser_dynamic'.
.generated/app/Globals.ts(3,37): error TS2503: Cannot find namespace 'platform_browser_dynamic'.

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\Dani\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v4.2.0
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: tsc && concurrently "tsc -w" "lite-server"
npm ERR! Exit status 2

I'm using:

node v4.2.0
npm v4.0.5
tsc 1.0.3
java 1.8.0_111
Any clue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.