Skip to content

Commit afbac8c

Browse files
committed
Adding scripts
1 parent eb601dd commit afbac8c

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.idea
22
*.iml
3-
build
4-
node_modules
3+
build/
4+
node_modules/

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.iml
33
build
44
example
5+
script
56
specs
67
.travis.yml
78
karma.conf.js

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "React tabs component",
55
"main": "lib/main.js",
66
"scripts": {
7-
"test": "node_modules/.bin/karma start --browsers Firefox --single-run",
8-
"build": "webpack --watch --devtool inline-source-map"
7+
"test": "script/test --browsers Firefox --single-run",
8+
"build": "script/build"
99
},
1010
"repository": {
1111
"type": "git",

script/build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
webpack --watch --devtool inline-source-map

script/test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
node_modules/.bin/karma start "$@"

0 commit comments

Comments
 (0)