Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit 1f4bab3

Browse files
committed
feat(semantic-release): should work at start
feat(release): batch script for windows users
1 parent 74817e2 commit 1f4bab3

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

dist.bat

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"test": "npm run test-unit && npm run test-correctness && npm run test-style",
1616
"test-unit": "nodeunit test/unit/nodeunitheadless.js",
1717
"test-correctness": "jshint --config test/jshintrc src/Tween.js",
18-
"test-style": "jscs --config test/jscs.json src/Tween.js"
18+
"test-style": "jscs --config test/jscs.json src/Tween.js",
19+
"semantic-release": "semantic-release pre && npm publish && semantic-release post --owner=sole --user=dalisoft",
1920
},
2021
"repository": {
2122
"type": "git",
@@ -35,6 +36,9 @@
3536
"bugs": {
3637
"url": "https://github.com/tweenjs/es6-tween/issues"
3738
},
39+
"release": {
40+
"branch": "master"
41+
},
3842
"homepage": "https://github.com/tweenjs/es6-tween#readme",
3943
"devDependencies": {
4044
"babel": "6.5.2",
@@ -52,7 +56,8 @@
5256
"yargs": "6.6.0",
5357
"jscs": "^2.2.0",
5458
"jshint": "^2.8.0",
55-
"nodeunit": "^0.9.1"
59+
"nodeunit": "^0.9.1",
60+
"semantic-release": "latest"
5661
},
5762
"dependencies": {}
5863
}

release.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@echo off
22
set /P commit=Enter commit log:
3+
npm run dist
34
git commit -m "%commit%"
45
git push
56
echo Publishing...
6-
npm publish
77
echo Done... (if there no error)
88
pause

src/Tween.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* Shims will be deprecated in next update */
2+
13
import './shim/object_assign';
24

35
import './shim/raf';

0 commit comments

Comments
 (0)