Skip to content

Commit

Permalink
Merge pull request #8 from swisscom/master
Browse files Browse the repository at this point in the history
TypeScript support
  • Loading branch information
Gery Hirschfeld committed Jun 5, 2015
2 parents 96545f1 + 6924e6a commit b59ac77
Show file tree
Hide file tree
Showing 77 changed files with 1,683 additions and 161 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
node_modules/
old/
old/
typings/
app/templates/src/app-ts/**/*.js
templates/typescript/*.js
app/templates/test-ts/**/*.js
59 changes: 39 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,19 @@
```

# Get Started
1. Install generator-hirsch
1. Check out this fork to some local folder
2. Install the generator from the local folder
```
npm install -g generator-hirsch
npm link
```

2. Create a new folder and change directory to it
3. Create a new folder and change directory to it
```
mkdir myApp
cd myApp
```

3. Run the generator
4. Run the generator
```
yo hirsch appname
```
Expand Down Expand Up @@ -74,7 +75,7 @@


# Styleguide
I use this style guid for my apps:
I use this style guide for my apps:
[johnpapa/angular-styleguide](https://github.com/johnpapa/angular-styleguide)

# App
Expand All @@ -97,30 +98,47 @@ projectRoot/
| | |
| | + core/
| | | |
| | | + app.config.js ( 3rd party modules configurations )
| | | + app.core.js ( Defines the AngularJS modules and configures them )
| | | + app.router.js ( ui.router middleware )
| | | + app.run.js
| | | + app.util.js ( Global object to generates the server url for the current environment )
| | | + app.events.js ( Global event bus )
| | | + config/
| | | | + thirdParty.js ( 3rd party modules configurations )
| | | | + angular.js ( Defines the AngularJS modules and configures them )
| | | | + run.js (Startup code)
| | | | + module.ts
| | | |
| | | + routing/
| | | | + router.js ( ui.router middleware )
| | | | + module.ts
| | | |
| | | + util/
| | | | + appUtil.js ( service that generates the server url for the current environment )
| | | | + appEvents.js ( event bus service )
| | | | + module.ts
| | | |
| | | + module.ts
| | |
| | + <moduleName>/
| | | |
| | | + common/
| | | + directives/
| | | | |
| | | | + directives/
| | | | + filters/
| | | | + services/
| | | | + templates/
| | | |
| | | | + <directiveName>.directive.ts
| | | | + <directiveName>.directive.html
| | | | + module.ts
| | | |
| | | + filters/
| | | + services/
| | | | |
| | | | + <serviceName>.service.ts
| | | | + module.ts
| | | |
| | | + templates/
| | | + views/
| | | | |
| | | | + <viewName>.js
| | | | + <viewName>.ts
| | | | + <viewName>.html
| | | | + module.ts
| | | |
| | | + <moduleName>.module.js
| | | + module.ts
| | |
| | + app.js
| | + app.ts
| |
| +-- assets/
| | |
Expand Down Expand Up @@ -151,6 +169,7 @@ projectRoot/
+-- package.json
+-- project.config.js ( Path definitions for gulp )
+-- README.md ( describes the project and how to set it up )
+-- tsd.json (contains type definition dependencies)
```

## Task Runner
Expand Down
Loading

0 comments on commit b59ac77

Please sign in to comment.