Skip to content

Commit b00d130

Browse files
authored
Merge branch 'dev' into 35-register-validation
2 parents 736c1c9 + 3327a16 commit b00d130

10 files changed

Lines changed: 173 additions & 173 deletions

File tree

.travis.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11
language: node_js
22
node_js:
3-
- "8.9.4"
4-
3+
- 8.9.4
4+
cache:
5+
directories:
6+
- $HOME/.npm
57
branches:
68
only:
7-
- master
8-
9+
- master
10+
- dev
11+
install:
12+
- npm i -g npm@5.7.1
13+
- npm ci
914
before_script:
10-
- npm install -g ionic cordova jest
11-
15+
- npm install -g ionic cordova jest
16+
notifications:
17+
webhooks:
18+
urls:
19+
- https://hooks.glip.com/webhook/6d688e2d-f076-4521-8213-f2479e99afe6
20+
on_success: never
21+
on_failure: always
22+
on_start: never
1223
script:
13-
- ionic cordova build browser --prod
14-
24+
- npm run test-ci
1525
deploy:
16-
provider: pages
17-
skip-cleanup: true
18-
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
19-
keep-history: true
26+
provider: heroku
27+
api_key: $HEROKU_KEY
28+
app: ssf-reboot
2029
on:
21-
branch: master
22-
local_dir: www
30+
repo: SoftStackFactory/reboot

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: npm run build:dev && npm start
1+
web: npm run build:dev && npm start

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
![Travis CI Status](https://travis-ci.org/SoftStackFactory/reboot.svg?branch=master "Travis CI Status")
2+
3+
14
# Reboot
25

3-
Reboot is:
6+
Reboot is an ionic application that assists verterans reintegrate into civilian life by assisting them and providing information and resources along the way.
47

58
## Getting Started
69

config/webpack.config.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
var chalk = require("chalk");
2+
var fs = require('fs');
3+
var path = require('path');
4+
var useDefaultConfig = require('@ionic/app-scripts/config/webpack.config.js');
5+
6+
var env = process.env.IONIC_ENV;
7+
8+
useDefaultConfig.prod.resolve.alias = {
9+
"@app/env": path.resolve(environmentPath('prod'))
10+
};
11+
12+
useDefaultConfig.dev.resolve.alias = {
13+
"@app/env": path.resolve(environmentPath('dev'))
14+
};
15+
16+
if (env !== 'prod' && env !== 'dev') {
17+
// Default to dev config
18+
useDefaultConfig[env] = useDefaultConfig.dev;
19+
useDefaultConfig[env].resolve.alias = {
20+
"@app/env": path.resolve(environmentPath(env))
21+
};
22+
}
23+
24+
function environmentPath(env) {
25+
var filePath = './src/environments/environments' + (env === 'prod' ? '' : '.' + env) + '.ts';
26+
if (!fs.existsSync(filePath)) {
27+
console.log(chalk.red('\n' + filePath + ' does not exist!'));
28+
} else {
29+
return filePath;
30+
}
31+
}
32+
33+
module.exports = function () {
34+
return useDefaultConfig;
35+
};

0 commit comments

Comments
 (0)