File tree 3 files changed +21
-4
lines changed
3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change
1
+ install : .git/hooks/pre-commit
2
+ install : .git/hooks/pre-push
3
+
4
+ .git/hooks/pre-commit : script/hook.sh
5
+ cp $< $@
6
+
7
+ .git/hooks/pre-push : script/hook.sh
8
+ cp $< $@
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -ex
4
+
5
+ npm run jscs
6
+ npm test
7
+
8
+ node bower.json
9
+ node package.json
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ var package = require('../package');
2
2
var bower = require ( '../bower' ) ;
3
3
var assert = require ( 'assert' ) ;
4
4
5
- describe ( 'package' , function ( ) {
6
- it ( 'has the same package name' , function ( ) {
5
+ describe ( 'package' , function ( ) {
6
+ it ( 'has the same package name' , function ( ) {
7
7
assert . equal ( package . name , bower . name ) ;
8
8
} ) ;
9
- it ( 'has the same package version' , function ( ) {
9
+ it ( 'has the same package version' , function ( ) {
10
10
assert . equal ( package . version , bower . version ) ;
11
11
} ) ;
12
- it ( 'requires the same version of underscore' , function ( ) {
12
+ it ( 'requires the same version of underscore' , function ( ) {
13
13
assert . equal ( package . devDependencies . underscore , bower . dependencies . underscore ) ;
14
14
} ) ;
15
15
} ) ;
You can’t perform that action at this time.
0 commit comments