Skip to content

Commit 27e2e47

Browse files
committed
merge
2 parents d29a7c5 + 89e46b4 commit 27e2e47

27 files changed

+1169
-588
lines changed

bower.json

+31-26
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
11
{
2-
"name": "BareKit",
3-
"devDependencies": {
4-
"jquery": "~2.1.1"
5-
},
6-
"version": "0.6.2",
7-
"homepage": "https://github.com/a2labs/barekit",
8-
"authors": [
9-
"Trevan Hetzel <[email protected]>"
10-
],
11-
"description": "A bare minimum responsive framework",
12-
"license": "MIT",
13-
"ignore": [
14-
".sass-cache",
15-
"node_modules",
16-
"bower_components",
17-
".bowercc",
18-
".gitignore",
19-
"example.html",
20-
"gruntfile.js",
21-
"package.json",
22-
".bower.json",
23-
"bower.json",
24-
".bowercc",
25-
"js/modules"
26-
]
27-
}
2+
"name": "BareKit",
3+
"devDependencies": {
4+
"jquery": "~2.1.1",
5+
"qunit": "~1.15.0"
6+
},
7+
"version": "0.6.2",
8+
"homepage": "https://github.com/a2labs/barekit",
9+
"authors": [
10+
"Trevan Hetzel <[email protected]>"
11+
],
12+
"main": [
13+
"js/barekit.min.js",
14+
"css/barekit.css"
15+
],
16+
"description": "A bare minimum responsive framework",
17+
"license": "MIT",
18+
"ignore": [
19+
".sass-cache",
20+
"node_modules",
21+
"bower_components",
22+
".bowercc",
23+
".gitignore",
24+
"example.html",
25+
"gruntfile.js",
26+
"package.json",
27+
".bower.json",
28+
"bower.json",
29+
".bowercc",
30+
"src/modules"
31+
]
32+
}

css/barekit.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/sass/module/_modal.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121

2222
.modal-bg {
23-
&:before {
23+
&:after {
2424
content: "";
2525
position: fixed;
2626
top: 0;

css/stylus/module/_modal.styl

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121

2222
.modal-bg {
23-
&:before {
23+
&:after {
2424
content: "";
2525
position: fixed;
2626
top: 0;

example.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1>Accordion</h1>
2525

2626
<h1>Dropdown Navigation</h1>
2727

28-
<ul class="dropdown-nav" id="drop1" data-options='{ "click": true }'>
28+
<ul class="dropdown-nav" id="drop1">
2929
<li>
3030
<a href="#">Link 1</a>
3131

gruntfile.js

+28-9
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,31 @@ module.exports = function (grunt) {
3838
}
3939
},
4040

41+
concat: {
42+
dist: {
43+
src: [
44+
'src/prefix.js',
45+
'src/modules/core.js',
46+
'src/modules/accordion.js',
47+
'src/modules/dropdown-nav.js',
48+
'src/modules/modal.js',
49+
'src/modules/off-canvas.js',
50+
'src/modules/tabs.js',
51+
'src/modules/toggle.js',
52+
'src/suffix.js'
53+
],
54+
dest: 'js/barekit.js',
55+
}
56+
},
57+
4158
/**
4259
* Uglify
4360
*/
4461
uglify: {
4562
modules: {
4663
files: {
4764
'js/barekit.min.js': [
48-
'js/modules/core.js',
49-
'js/modules/accordion.js',
50-
'js/modules/dropdown-nav.js',
51-
'js/modules/modal.js',
52-
'js/modules/off-canvas.js',
53-
'js/modules/tabs.js',
54-
'js/modules/toggle.js'
65+
'js/barekit.js'
5566
]
5667
}
5768
}
@@ -74,18 +85,26 @@ module.exports = function (grunt) {
7485
},
7586
uglify: {
7687
files: ['js/modules/*.js'],
77-
tasks: ['uglify:modules']
88+
tasks: ['js']
7889
}
90+
},
91+
qunit: {
92+
all: ['spec/**/*.html']
7993
}
8094
});
8195

8296
// Load NPM Tasks
97+
grunt.loadNpmTasks('grunt-contrib-concat');
8398
grunt.loadNpmTasks('grunt-contrib-sass');
8499
grunt.loadNpmTasks('grunt-contrib-watch');
85100
grunt.loadNpmTasks('grunt-autoprefixer');
86101
grunt.loadNpmTasks('grunt-contrib-uglify');
102+
grunt.loadNpmTasks('grunt-contrib-qunit');
103+
104+
grunt.registerTask('js', [ 'concat', 'uglify' ]);
105+
grunt.registerTask('test', [ 'js', 'qunit' ]);
87106

88107
// Register Tasks
89-
grunt.registerTask('default', [ 'sass', 'autoprefixer', 'uglify' ]);
108+
grunt.registerTask('default', [ 'sass', 'autoprefixer', 'js' ]);
90109

91110
};

0 commit comments

Comments
 (0)