This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Gruntfile.js
93 lines (86 loc) · 2.55 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
* formcore
* https://github.com/filamentgroup/formcore
*
* Copyright (c) 2014 Filament Group
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js'
],
options: {
jshintrc: '.jshintrc'
}
},
concat: {
options: {},
js: {
src: [
'node_modules/grunt-grunticon/example/output/grunticon.loader.js',
'node_modules/shoestring/dist/shoestring.js',
'js/shoestring.connector.js',
'node_modules/xrayhtml/dist/xrayhtml.js',
'node_modules/creditable/creditablecardtype.js',
'node_modules/creditable/creditablesecuritycode.js',
// politespace should come before validator
'node_modules/politespace/src/politespace-intro.js',
'node_modules/politespace/src/politespace.js',
'node_modules/politespace/src/politespace-jquery.js',
'node_modules/politespace/src/politespace-creditcard.js',
'node_modules/politespace/src/politespace-us-telephone.js',
'node_modules/politespace/src/politespace-outro.js',
'node_modules/politespace/src/politespace-init.js',
'node_modules/validator/dist/validator.js',
'node_modules/validator/dist/validator.config.js',
'node_modules/validator/src/validator.page.js',
'node_modules/validator/src/validator.page-init.js',
'node_modules/validator/dist/validator-init.js',
],
dest: 'dist/dependencies.js'
},
css: {
src: [
'node_modules/xrayhtml/dist/xrayhtml.css',
'node_modules/politespace/src/politespace.css',
'node_modules/validator/dist/validator.css',
'node_modules/fg-select-css/src/select-css.css',
'node_modules/fg-select-css/src/select-css-compat.css',
'node_modules/fg-select-css/src/select-css-theme.css',
'node_modules/fg-select-css/src/select-css-arrow.css',
],
dest: 'dist/dependencies.css'
}
},
grunticon: {
all: {
files: [{
expand: true,
cwd: 'img/icons/',
src: [ '*.svg' ],
dest: "dist/grunticon/"
}],
options: {
cssprefix: '.icon-',
cssbasepath: "/",
customselectors: {}
}
}
},
qunit: {
all: ['test/**/*.html']
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-grunticon');
// By default, lint and run all tests.
grunt.registerTask('default', ['jshint', 'concat', 'grunticon', 'qunit']);
grunt.registerTask('stage', ['default']);
};