Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Added build & deployment configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzsternemann committed Apr 20, 2018
1 parent 12533f7 commit 724e255
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 17 deletions.
31 changes: 31 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
language: node_js
node_js:
- node

if: tag =~ ^v\d+.\d+.\d+$

cache:
yarn: true
directories:
- node_modules

env:
global:
- WWDC_YEAR="WWDC 2018"

script:
- yarn lint
- yarn generate

before_deploy:
- cd dist
- tar cfz ${TRAVIS_BUILD_DIR}/web-form-${TRAVIS_TAG}.tar.gz ./*

deploy:
provider: releases
api_key:
secure: pERAKfdE8fdxOhjgAhjbD4HYJ3Zmc4xLvXobdZt8c+cAIpcRBwaPmWiyI6wbasGlgeMb2QOoa9MG88TeOnZEbCIGyiKShG6OcfZ0mcG4fB1TStt6Ih1nNxDlpnh9nk0LY8TmDtl/ZzsWMfi+43Ui0aKyUfsIiNmh4chqlx+XDWQmRas483X+9RFqaAn9Hy2L6zP4HSILG36MM4gH3/T6sj7nuFxMsAGDNzt9UD1utQmduLxU5SFlMSbRchwXSP+/R89tG2+P6GULn1vN4scIPkWhgHdc2YzDMzZx1gg1xX8kjDxx8HL515qoCR3y6YWKSm7KRYviXgKHHkVK+2d8fiIx/fmMX60C8L0IGQzgW8v8+rpmVi5bY0+PhchpYcyOzUPgT9/U5gMFVBFn908rSwZXkzNBUYGmnfrxqmrRVtBsRfdwH8eN1FNuYebGBjZJnkAstYRn4YaItMlQRQLAuUgRBVgBo8mQ5Jc9nFfPwCQ9k6N5I6PThwF/8+DFgJBVw/lOJjrIaVFE6iI/tmlLrCzGue4ExHDIAnu8pDMUcUSiz1rYk52gyHbBf6TtCtC2X9EU0VmLI21E9VbyAF5cQbGAT8zAeuCQYdc2f0rgn/lqkiL+c/T8y5yj3C19scFDjq0DGEQtEE9ugqmNBUUrYhHIpvDPAHR9HKLjIq78pIw=
file: ${TRAVIS_BUILD_DIR}/web-form-${TRAVIS_TAG}.tar.gz
skip_cleanup: true
on:
tags: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center"><a href="https://wwdcscholars.com" target="_blank"><img width="90" height="90" src="https://raw.githubusercontent.com/WWDCScholars/web-form/master/.github/logo.png"></a></p>

# WWDCScholars Form
# WWDCScholars Form &middot; [![Build Status](https://travis-ci.org/WWDCScholars/web-form.svg)](https://travis-ci.org/WWDCScholars/web-form)
WWDCScholars is a community of [Apple WWDC Scholarship](https://developer.apple.com/wwdc/scholarships/) winners. Every year bright minds from all around the world compete against each other for a free ticket to Apple's yearly developers conference. The scholarship recipients share their winning projects in [our iOS App](https://itunes.apple.com/us/app/scholars-of-wwdc/id999731893?mt=8) and on [our website (wwdcscholars.com)](https://wwdcscholars.com).

This repository contains the [Vue.js](https://vuejs.org) based sign-up form for scholarship winners.
Expand Down
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module '*.vue' {
import Vue from 'vue'
const _default: Vue
export default _default
import Vue from 'vue';
const _default: Vue;
export default _default;
}
20 changes: 10 additions & 10 deletions modules/typescript.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module.exports = function() {
// Add .ts extension for store, middleware and more
this.nuxt.options.extensions.push("ts")
this.nuxt.options.extensions.push('ts');
// Extend build
this.extendBuild(config => {
const tsLoader = {
loader: "ts-loader",
loader: 'ts-loader',
options: {
appendTsSuffixTo: [/\.vue$/]
}
}
};
// Add TypeScript loader
config.module.rules.push(
Object.assign(
Expand All @@ -17,19 +17,19 @@ module.exports = function() {
},
tsLoader
)
)
);
// Add TypeScript loader for vue files
for (let rule of config.module.rules) {
if (rule.loader === "vue-loader") {
rule.options.loaders.ts = tsLoader
if (rule.loader === 'vue-loader') {
rule.options.loaders.ts = tsLoader;
}
}
// Add .ts extension in webpack resolve
if (
config.resolve.extensions.indexOf(".ts") ===
config.resolve.extensions.indexOf('.ts') ===
-1
) {
config.resolve.extensions.push(".ts")
config.resolve.extensions.push('.ts');
}
})
}
});
};
2 changes: 1 addition & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.exports = {
test: /\.(js|ts|vue)$/,
loader: 'eslint-loader',
exclude: /(node_modules)/
})
});
}
},
extractCSS: false,
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "wwdcscholars-form",
"description": "Join WWDCScholars.com",
"version": "2.0.0",
"version": "3.0.0",
"license": "MIT",
"author": {
"name": "Moritz Sternemann",
Expand All @@ -16,7 +16,8 @@
"dev": "nuxt",
"build": "cross-env NODE_ENV=production nuxt build",
"start": "cross-env NODE_ENV=production nuxt start",
"generate": "cross-env NODE_ENV=production nuxt generate"
"generate": "cross-env NODE_ENV=production nuxt generate",
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore ."
},
"dependencies": {
"@nuxtjs/dotenv": "^1.1.1",
Expand Down

0 comments on commit 724e255

Please sign in to comment.