Skip to content

Commit cddc834

Browse files
jerriepkevinchalet
authored andcommitted
Add initial generator
1 parent c227b1b commit cddc834

23 files changed

+480
-314
lines changed

.editorconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.gitattributes

+1-63
Original file line numberDiff line numberDiff line change
@@ -1,63 +1 @@
1-
###############################################################################
2-
# Set default behavior to automatically normalize line endings.
3-
###############################################################################
4-
* text=auto
5-
6-
###############################################################################
7-
# Set default behavior for command prompt diff.
8-
#
9-
# This is need for earlier builds of msysgit that does not have it on by
10-
# default for csharp files.
11-
# Note: This is only used by command line
12-
###############################################################################
13-
#*.cs diff=csharp
14-
15-
###############################################################################
16-
# Set the merge driver for project and solution files
17-
#
18-
# Merging from the command prompt will add diff markers to the files if there
19-
# are conflicts (Merging from VS is not affected by the settings below, in VS
20-
# the diff markers are never inserted). Diff markers may cause the following
21-
# file extensions to fail to load in VS. An alternative would be to treat
22-
# these files as binary and thus will always conflict and require user
23-
# intervention with every merge. To do so, just uncomment the entries below
24-
###############################################################################
25-
#*.sln merge=binary
26-
#*.csproj merge=binary
27-
#*.vbproj merge=binary
28-
#*.vcxproj merge=binary
29-
#*.vcproj merge=binary
30-
#*.dbproj merge=binary
31-
#*.fsproj merge=binary
32-
#*.lsproj merge=binary
33-
#*.wixproj merge=binary
34-
#*.modelproj merge=binary
35-
#*.sqlproj merge=binary
36-
#*.wwaproj merge=binary
37-
38-
###############################################################################
39-
# behavior for image files
40-
#
41-
# image files are treated as binary by default.
42-
###############################################################################
43-
#*.jpg binary
44-
#*.png binary
45-
#*.gif binary
46-
47-
###############################################################################
48-
# diff behavior for common document formats
49-
#
50-
# Convert binary document formats to text before diffing them. This feature
51-
# is only available from the command line. Turn it on by uncommenting the
52-
# entries below.
53-
###############################################################################
54-
#*.doc diff=astextplain
55-
#*.DOC diff=astextplain
56-
#*.docx diff=astextplain
57-
#*.DOCX diff=astextplain
58-
#*.dot diff=astextplain
59-
#*.DOT diff=astextplain
60-
#*.pdf diff=astextplain
61-
#*.PDF diff=astextplain
62-
#*.rtf diff=astextplain
63-
#*.RTF diff=astextplain
1+
* text=auto

.gitignore

+1-162
Original file line numberDiff line numberDiff line change
@@ -1,162 +1 @@
1-
## Ignore Visual Studio temporary files, build results, and
2-
## files generated by popular Visual Studio add-ons.
3-
4-
# VS 14 temporary folder
5-
*.sln.ide/
6-
target/
7-
.nuget/
8-
.vs/
9-
10-
# User-specific files
11-
*.suo
12-
*.user
13-
*.sln.docstates
14-
project.lock.json
15-
16-
# Build results
17-
18-
[Dd]ebug/
19-
[Rr]elease/
20-
x64/
21-
build/
22-
[Bb]in/
23-
[Oo]bj/
24-
25-
# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
26-
!packages/*/build/
27-
28-
# MSTest test Results
29-
[Tt]est[Rr]esult*/
30-
[Bb]uild[Ll]og.*
31-
32-
*_i.c
33-
*_p.c
34-
*.ilk
35-
*.meta
36-
*.obj
37-
*.pch
38-
*.pdb
39-
*.pgc
40-
*.pgd
41-
*.rsp
42-
*.sbr
43-
*.tlb
44-
*.tli
45-
*.tlh
46-
*.tmp
47-
*.tmp_proj
48-
*.log
49-
*.vspscc
50-
*.vssscc
51-
.builds
52-
*.pidb
53-
*.log
54-
*.scc
55-
56-
# Visual C++ cache files
57-
ipch/
58-
*.aps
59-
*.ncb
60-
*.opensdf
61-
*.sdf
62-
*.cachefile
63-
64-
# Visual Studio profiler
65-
*.psess
66-
*.vsp
67-
*.vspx
68-
69-
# Guidance Automation Toolkit
70-
*.gpState
71-
72-
# ReSharper is a .NET coding add-in
73-
_ReSharper*/
74-
*.[Rr]e[Ss]harper
75-
76-
# TeamCity is a build add-in
77-
_TeamCity*
78-
79-
# DotCover is a Code Coverage Tool
80-
*.dotCover
81-
82-
# NCrunch
83-
*.ncrunch*
84-
.*crunch*.local.xml
85-
86-
# Installshield output folder
87-
[Ee]xpress/
88-
89-
# DocProject is a documentation generator add-in
90-
DocProject/buildhelp/
91-
DocProject/Help/*.HxT
92-
DocProject/Help/*.HxC
93-
DocProject/Help/*.hhc
94-
DocProject/Help/*.hhk
95-
DocProject/Help/*.hhp
96-
DocProject/Help/Html2
97-
DocProject/Help/html
98-
99-
# Click-Once directory
100-
publish/
101-
102-
# Publish Web Output
103-
*.Publish.xml
104-
105-
# NuGet Packages Directory
106-
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
107-
packages/
108-
109-
# Windows Azure Build Output
110-
csx
111-
*.build.csdef
112-
113-
# Windows Store app package directory
114-
AppPackages/
115-
116-
# Others
117-
sql/
118-
*.Cache
119-
ClientBin/
120-
[Ss]tyle[Cc]op.*
121-
~$*
122-
*~
123-
*.dbmdl
124-
*.[Pp]ublish.xml
125-
*.publishsettings
126-
127-
# RIA/Silverlight projects
128-
Generated_Code/
129-
130-
# Backup & report files from converting an old project file to a newer
131-
# Visual Studio version. Backup files are not needed, because we have git ;-)
132-
_UpgradeReport_Files/
133-
Backup*/
134-
UpgradeLog*.XML
135-
UpgradeLog*.htm
136-
137-
# SQL Server files
138-
*.mdf
139-
*.ldf
140-
141-
142-
#LightSwitch generated files
143-
GeneratedArtifacts/
144-
_Pvt_Extensions/
145-
ModelManifest.xml
146-
147-
# =========================
148-
# Windows detritus
149-
# =========================
150-
151-
# Windows image file caches
152-
Thumbs.db
153-
ehthumbs.db
154-
155-
# Folder config file
156-
Desktop.ini
157-
158-
# Recycle Bin used on file shares
159-
$RECYCLE.BIN/
160-
161-
# Mac desktop service store files
162-
.DS_Store
1+
node_modules/

.jshintrc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"node": true,
3+
"esnext": true,
4+
"bitwise": true,
5+
"camelcase": true,
6+
"curly": true,
7+
"eqeqeq": true,
8+
"immed": true,
9+
"indent": 2,
10+
"latedef": true,
11+
"newcap": true,
12+
"noarg": true,
13+
"quotmark": "single",
14+
"undef": true,
15+
"unused": true,
16+
"strict": true
17+
}

.travis.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
language: csharp
21
sudo: false
3-
script:
4-
- ./build.sh --quiet verify
5-
mono:
6-
- alpha
7-
- latest
2+
language: node_js
3+
node_js:
4+
- 'iojs'
5+
- '0.12'
6+
- '0.10'

.yo-rc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"generator-generator": {
3+
"structure": "nested"
4+
}
5+
}

NuGet.Config

-11
This file was deleted.

README.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# generator-aspnet-oauth [![Build Status](https://secure.travis-ci.org/aspnet-contrib/generator-aspnet-oauth.png?branch=master)](https://travis-ci.org/aspnet-contrib/generator-aspnet-oauth)
2+
3+
> [Yeoman](http://yeoman.io) generator
4+
5+
6+
## Getting Started
7+
8+
### What is Yeoman?
9+
10+
Trick question. It's not a thing. It's this guy:
11+
12+
![](http://i.imgur.com/JHaAlBJ.png)
13+
14+
Basically, he wears a top hat, lives in your computer, and waits for you to tell him what kind of application you wish to create.
15+
16+
Not every new computer comes with a Yeoman pre-installed. He lives in the [npm](https://npmjs.org) package repository. You only have to ask for him once, then he packs up and moves into your hard drive. *Make sure you clean up, he likes new and shiny things.*
17+
18+
```bash
19+
npm install -g yo
20+
```
21+
22+
### Yeoman Generators
23+
24+
Yeoman travels light. He didn't pack any generators when he moved in. You can think of a generator like a plug-in. You get to choose what type of application you wish to create, such as a Backbone application or even a Chrome extension.
25+
26+
To install generator-aspnet-oauth from npm, run:
27+
28+
```bash
29+
npm install -g generator-aspnet-oauth
30+
```
31+
32+
Finally, initiate the generator:
33+
34+
```bash
35+
yo aspnet-oauth
36+
```
37+
38+
### Getting To Know Yeoman
39+
40+
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced.
41+
42+
If you'd like to get to know Yeoman better and meet some of his friends, [Grunt](http://gruntjs.com) and [Bower](http://bower.io), check out the complete [Getting Started Guide](https://github.com/yeoman/yeoman/wiki/Getting-Started).
43+
44+
45+
## License
46+
47+
MIT

build.cmd

-26
This file was deleted.

0 commit comments

Comments
 (0)