FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScriptButtons/grunt.js at 0.9 · spweldon/JavaScriptButtons · GitHub
spweldon
JavaScriptButtons
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScriptButtons
/
grunt.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (30 loc) · 909 Bytes
Breadcrumbs
JavaScriptButtons
/
grunt.js
Copy path
File metadata and controls
36 lines (30 loc) · 909 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
var
grunt
=
require
(
'grunt'
)
,
fs
=
require
(
'fs'
)
,
jshintOptions
=
JSON
.
parse
(
fs
.
readFileSync
(
'./.jshintrc'
)
)
;
module
.
exports
=
function
(
grunt
)
{
// Project configuration.
grunt
.
initConfig
(
{
pkg
:
'<json:package.json>'
,
meta
:
{
banner
:
"/*!\n * <%= pkg.name %>\n * <%= pkg.description %>\n * @version <%= pkg.version %> - <%= grunt.template.today('yyyy-mm-dd, h:MM:ss TT') %>\n * @author <%= pkg.author.name %> <<%= pkg.author.url %>>\n */"
}
,
lint
:
{
all
:
[
'src/*.js'
,
'test/*.js'
]
}
,
jshint
:
{
options
:
jshintOptions
}
,
min
:
{
dist
:
{
src
:
[
'<banner:meta.banner>'
,
'src/paypal-button.js'
]
,
dest
:
'dist/paypal-button.min.js'
}
,
bundled
:
{
src
:
[
'<banner:meta.banner>'
,
'lib/MiniCart/minicart.js'
,
'src/paypal-button.js'
]
,
dest
:
'dist/paypal-button-minicart.min.js'
}
}
}
)
;
// Default task.
grunt
.
registerTask
(
'default'
,
'lint min'
)
;
}
;
Back
|
FazBrowse Home
|
New Git URL