Skip to content

Commit bedaf3b

Browse files
committed
feat(Streamlined Package): Removed unnecessary code and dependencies being used for demo only
1 parent b870911 commit bedaf3b

File tree

5 files changed

+194
-11
lines changed

5 files changed

+194
-11
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"presets": ["env", "react"],
2+
"presets": ["react", "env", "stage-2"],
33
"plugins": [
44
["transform-class-properties", { "spec": true }]
55
]

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ coverage
1212
/demo/build
1313
/demo/lib
1414

15+
# built files
16+
dist
17+
1518
# misc
1619
.DS_Store
1720
.env.local

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ node_js:
1010
script:
1111
- yarn coverage
1212
- yarn check-coverage
13+
- yarn build
1314
after_success:
1415
- npm run travis-deploy-once "npm run semantic-release"
1516
- yarn report-coverage

package.json

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-memory-game",
33
"version": "0.0.0-development",
44
"description": "A memory game engine.",
5-
"main": "src/index.js",
5+
"main": "dist/index.js",
66
"directories": {
77
"doc": "docs"
88
},
@@ -13,25 +13,41 @@
1313
"check-coverage": "istanbul check-coverage -statements 25 -branches 25 -functions 25 -lines 25",
1414
"test": "jest --watch",
1515
"travis-deploy-once": "travis-deploy-once",
16-
"semantic-release": "semantic-release"
16+
"semantic-release": "semantic-release",
17+
"prebuild": "rimraf dist",
18+
"build": "babel --copy-files --out-dir dist --ignore *.spec.js src"
1719
},
1820
"repository": {
1921
"type": "git",
2022
"url": "https://github.com/guioconnor/react-memory-game.git"
2123
},
22-
"keywords": [],
24+
"keywords": [
25+
"memory",
26+
"game",
27+
"gaming",
28+
"engine",
29+
"board",
30+
"pattern",
31+
"children"
32+
],
33+
"files": [
34+
"dist",
35+
"README.md"
36+
],
2337
"author": "",
2438
"license": "ISC",
2539
"bugs": {
2640
"url": "https://github.com/guioconnor/react-memory-game/issues"
2741
},
2842
"homepage": "https://github.com/guioconnor/react-memory-game#readme",
2943
"devDependencies": {
44+
"babel-cli": "^6.26.0",
3045
"babel-core": "^6.26.0",
3146
"babel-jest": "^22.4.1",
3247
"babel-plugin-transform-class-properties": "^6.24.1",
3348
"babel-preset-env": "^1.6.1",
3449
"babel-preset-react": "^6.24.1",
50+
"babel-preset-stage-2": "^6.24.1",
3551
"codecov.io": "^0.1.6",
3652
"commitizen": "^2.9.6",
3753
"cz-conventional-changelog": "^2.1.0",
@@ -45,9 +61,14 @@
4561
"react": "^16.2.0",
4662
"react-dom": "^16.2.0",
4763
"regenerator-runtime": "^0.11.1",
64+
"rimraf": "^2.6.2",
4865
"semantic-release": "^15.0.2",
4966
"travis-deploy-once": "^4.4.0"
5067
},
68+
"peerDependencies": {
69+
"react": "^16.2.0",
70+
"lodash": "^4.17.5"
71+
},
5172
"czConfig": {
5273
"path": "node_modules/cz-conventional-changelog"
5374
},
@@ -56,4 +77,4 @@
5677
"pre-commit": "yarn coverage && yarn check-coverage"
5778
}
5879
}
59-
}
80+
}

0 commit comments

Comments
 (0)