File tree 2 files changed +24
-0
lines changed 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ language : node_js
2
+ node_js :
3
+ - " node"
4
+ cache :
5
+ directories :
6
+ - " node_modules" # This will tell Travis CI to cache the dependencies
7
+ script : npm test # Here you could also run the build step of your application
8
+ before_deploy : npm install now --no-save # Install Now CLI on Travis
9
+ deploy :
10
+ - provider : script
11
+ script : npm run travis:staging
12
+ skip_cleanup : true
13
+ on :
14
+ master : true
15
+ - edge : true
16
+ provider : script
17
+ script : npm run travis:production
18
+ skip_cleanup : true
19
+ on :
20
+ tags : true
Original file line number Diff line number Diff line change 27
27
"dev:client" : " react-scripts start" ,
28
28
"dev:server" : " DEV=true PORT=8081 babel-watch ./src/server/index.js" ,
29
29
"now-start" : " node build/server/index.js" ,
30
+ "purge" : " now rm create-react-app-devops -s -y" ,
30
31
"test" : " react-scripts test --env=jsdom" ,
32
+ "travis:purge" : " now rm create-react-app-devops -s -y --token $NOW_TOKEN" ,
33
+ "travis:production" : " now --token $NOW_TOKEN && now alias --token $NOW_TOKEN && yarn travis:purge" ,
34
+ "travis:staging" : " now -A now-staging.json --token $NOW_TOKEN && now alias -A now-staging.json --token $NOW_TOKEN && yarn travis:purge" ,
31
35
"eject" : " react-scripts eject"
32
36
},
33
37
"proxy" : {
You can’t perform that action at this time.
0 commit comments