Skip to content

Commit a761f29

Browse files
committed
build(surge.sh/travis): Reinstating deployment to surge.sh
1 parent c3a73d7 commit a761f29

11 files changed

+15347
-13
lines changed

.travis.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ script:
1111
- yarn coverage
1212
- yarn check-coverage
1313
- yarn build
14+
- cd demo
15+
- yarn build
16+
- cd ..
1417
after_success:
1518
- npm run travis-deploy-once "npm run semantic-release"
1619
- yarn report-coverage
17-
branches:
20+
- yarn deploy-surge
21+
branches:
1822
except:
1923
- /^v\d+\.\d+\.\d+$/
2024

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Import the library into your Component and make use of
3131
import React from "react";
3232
import styled from "styled-components";
3333
import MemoryGame from "react-memory-game";
34-
import "react-memory-game/lib/default-theme.css";
34+
import "react-memory-game/dist/default-theme.css";
3535
3636
const Wrap = styled.div`
3737
font-size: 120px;

demo/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@
2121
"styled-components": "^3.1.6"
2222
},
2323
"scripts": {
24+
"buildPackage": "cd .. && npm run build && npm link && cd - && npm link react-memory-game",
25+
"prestart": "npm run buildPackage",
2426
"start": "react-scripts start",
2527
"compile": "babel --presets es2015,stage-0,react -d lib/ ../src/",
2628
"postcompile": "cp ../src/*.css ./lib",
2729
"prepublish": "npm run compile",
30+
"prebuild": "npm run buildPackage",
2831
"build": "react-scripts build",
2932
"test": "react-scripts test --env=jsdom",
3033
"watch:test": "react-scripts test --env=jsdom",

demo/src/views/ArithmeticMemoryGame.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import styled from 'styled-components';
3-
import MemoryGame from '../module';
4-
import '../module/default-theme.css';
3+
import MemoryGame from 'react-memory-game';
4+
import 'react-memory-game/dist/default-theme.css';
55

66
const Wrap = styled.div`
77
font-size: 60px;

demo/src/views/Dashboard.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from 'react';
2-
import MemoryGame from '../module';
3-
import '../module/default-theme.css';
2+
import MemoryGame from 'react-memory-game';
3+
import 'react-memory-game/dist/default-theme.css';
44

55
import CardsSelector from '../components/CardsSelector';
66
import birdsCards from '../cardSets/birds';

demo/src/views/EmojiMemoryGame.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import styled from 'styled-components';
3-
import MemoryGame from '../module';
4-
import '../module/default-theme.css';
3+
import MemoryGame from 'react-memory-game';
4+
import 'react-memory-game/dist/default-theme.css';
55

66
const Wrap = styled.div`
77
font-size: 120px;

demo/src/views/Examples.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import styled from 'styled-components';
3-
import MemoryGame from '../module';
3+
import MemoryGame from 'react-memory-game';
44
import cards from '../cardSets/birds';
55
import './styles.css';
66
import './demo-theme.css';

demo/src/views/LettersMemoryGame.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import styled from 'styled-components';
3-
import MemoryGame from '../module';
4-
import '../module/default-theme.css';
3+
import MemoryGame from 'react-memory-game';
4+
import 'react-memory-game/dist/default-theme.css';
55

66
const Wrap = styled.div`
77
font-size: 120px;

demo/src/views/Tutorial.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import MemoryGame from '../module';
2+
import MemoryGame from 'react-memory-game';
33
import './styles.css';
44
import './demo-theme.css';
55

0 commit comments

Comments
 (0)