Skip to content

Commit

Permalink
Merge pull request #156 from qutheory/sh/app-refactor
Browse files Browse the repository at this point in the history
App Refactor
  • Loading branch information
tanner0101 committed Mar 28, 2016
2 parents 37a300b + 02a93ce commit 2034653
Show file tree
Hide file tree
Showing 129 changed files with 11,974 additions and 12,368 deletions.
6 changes: 0 additions & 6 deletions .travis.sh

This file was deleted.

15 changes: 4 additions & 11 deletions .travis.yml
Expand Up @@ -6,17 +6,10 @@ sudo: required
dist: trusty
osx_image: xcode7.3
install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/02090c7ede5a637b76e6df1710e83cd0bbe7dcdf/swiftenv-install.sh)"
script:
- . ./.travis.sh # conditionally installs Swift 2.2 on Linux
- export PATH=$TRAVIS_BUILD_DIR/swift-2.2-RELEASE-ubuntu14.04/usr/bin/:"${PATH}" # adds Swift 2.2 to PATH
- make # compiles project with Swift 2.2
- make release # compiles optimized
- sudo make install # installs shared libs and CLI
- vapor build Sources/VaporDev/main.swift Sources/VaporDev/**/*.swift # builds VaporDev with CLI
- rm -rf Packages .build # cleans project to prevent conflicts between 2.2 and 3.0
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/02090c7ede5a637b76e6df1710e83cd0bbe7dcdf/swiftenv-install.sh)" # Installs swiftenv
- swift build --fetch # clones all dependencies
- rm -rf Packages/*/Tests # fixes SPM bug
- swift build
- rm -rf Packages/*/Tests
- swift build
- swift build --configuration release
- swift test # q_q
- swift test
109 changes: 0 additions & 109 deletions Makefile

This file was deleted.

14 changes: 3 additions & 11 deletions Package.swift
Expand Up @@ -3,12 +3,11 @@ import PackageDescription
let package = Package(
name: "Vapor",
dependencies: [
.Package(url: "https://github.com/qutheory/json.git", majorVersion: 0),
.Package(url: "https://github.com/ketzusaka/Hummingbird", majorVersion: 1, minor: 1)
.Package(url: "https://github.com/Zewo/String.git", majorVersion: 0, minor: 4),
.Package(url: "https://github.com/Zewo/JSON.git", majorVersion: 0, minor: 4),
.Package(url: "https://github.com/ketzusaka/Hummingbird", majorVersion: 1)
],
exclude: [
"Sources/VaporDev",
"Sources/Generator",
"XcodeProject",
"Release"
],
Expand All @@ -27,10 +26,3 @@ let package = Package(
)
]
)

//with the new swiftpm we have to force it to create a static lib so that we can use it
//from xcode. this will become unnecessary once official xcode+swiftpm support is done.
//watch progress: https://github.com/apple/swift-package-manager/compare/xcodeproj?expand=1

let lib = Product(name: "Vapor", type: .Library(.Dynamic), modules: "Vapor")
products.append(lib)
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -137,7 +137,7 @@ You can also respond with HTML pages.

```swift
app.get("/") { request in
return try View(path: "index.html")
return try app.view("index.html")
}
```

Expand All @@ -153,7 +153,7 @@ Or [Stencil](https://github.com/kylef/Stencil) templates.

```swift
app.get("/") { request in
return View(path: "index.stencil", context: ["message": "Hello"])
return try app.view("index.stencil", context: ["message": "Hello"])
}
```

Expand Down
Binary file removed Release/0.3.4_Darwin_x86_64/Hummingbird.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/Hummingbird.swiftmodule
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/Jay.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/Jay.swiftmodule
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/Strand.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/Strand.swiftmodule
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/Vapor.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/Vapor.swiftmodule
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/libHummingbird.dylib
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/libJay.dylib
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/libStrand.dylib
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/libVapor.dylib
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/libc.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/libc.swiftmodule
Binary file not shown.
Binary file removed Release/0.3.4_Darwin_x86_64/liblibc.dylib
Binary file not shown.
182 changes: 0 additions & 182 deletions Release/0.3.4_Darwin_x86_64/vapor

This file was deleted.

Binary file removed Release/0.3.4_Linux_x86_64/Hummingbird.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/Hummingbird.swiftmodule
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/Jay.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/Jay.swiftmodule
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/Strand.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/Strand.swiftmodule
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/Vapor.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/Vapor.swiftmodule
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/libHummingbird.so
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/libJay.so
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/libStrand.so
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/libVapor.so
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/libc.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/libc.swiftmodule
Binary file not shown.
Binary file removed Release/0.3.4_Linux_x86_64/liblibc.so
Binary file not shown.
Binary file removed Release/0.3.5_Darwin_x86_64/Hummingbird.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.5_Darwin_x86_64/Hummingbird.swiftmodule
Binary file not shown.
Binary file removed Release/0.3.5_Darwin_x86_64/Jay.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.5_Darwin_x86_64/Jay.swiftmodule
Binary file not shown.
Binary file removed Release/0.3.5_Darwin_x86_64/Strand.swiftdoc
Binary file not shown.
Binary file removed Release/0.3.5_Darwin_x86_64/Strand.swiftmodule
Binary file not shown.

0 comments on commit 2034653

Please sign in to comment.