Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit eba1554

Browse files
committed
Merge pull request #717 from appirio-tech/refactor-commands
Refactor for clarification and remove unneeded code
2 parents a2efa23 + 36acb8c commit eba1554

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ node_js:
33
- 5.5.0
44
install:
55
- npm install
6-
before_script:
7-
- export DISPLAY=:99.0
8-
- sh -e /etc/init.d/xvfb start
9-
- sleep 3 # give xvfb some time to start
106
script:
117
- npm test
12-
- webpack --bail --progress --build --tc
8+
- npm run build
139
sudo: false
1410
deploy:
1511
- provider: s3

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "topcoder-app",
33
"description": "Topcoder pages including login, registration, settings, dashboard, profile.",
44
"scripts": {
5-
"build": "webpack --bail --progress --build",
5+
"build": "webpack --bail --progress --build --tc",
66
"dev": "webpack-dev-server --history-api-fallback --dev --tc --inline --progress --port 3000",
77
"lint": "eslint .",
88
"test": "karma start --tc --test"

webpack.config.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
require('./node_modules/coffee-script/register')
22

3-
if (process.env.TRAVIS_BRANCH == 'master') process.env.ENV = 'PROD'
4-
else if (process.env.TRAVIS_BRANCH == 'qa-integration') process.env.ENV = 'QA'
5-
else if (process.env.TRAVIS_BRANCH == 'dev') process.env.ENV = 'DEV'
6-
else process.env.ENV = 'DEV'
3+
if (process.env.TRAVIS_BRANCH == 'master') process.env.ENV = 'PROD'
4+
if (process.env.TRAVIS_BRANCH == 'qa-integration') process.env.ENV = 'QA'
5+
if (process.env.TRAVIS_BRANCH == 'dev') process.env.ENV = 'DEV'
76

87
var config = require('appirio-tech-webpack-config')({
98
dirname: __dirname,

0 commit comments

Comments
 (0)