Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
18
Merge Requests
18
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
jio
Commits
555c679b
Commit
555c679b
authored
Aug 21, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make grunt updated
parent
2fe3ea44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
23 deletions
+63
-23
Gruntfile.js
Gruntfile.js
+60
-21
Makefile
Makefile
+3
-2
No files found.
Gruntfile.js
View file @
555c679b
/*jslint indent: 2, maxlen: 80 */
/*global module */
module
.
exports
=
function
(
grunt
)
{
"
use strict
"
;
// Project configuration.
grunt
.
initConfig
({
pkg
:
grunt
.
file
.
readJSON
(
'
package.json
'
),
uglify
:
{
options
:
{
banner
:
'
/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */
\n
'
,
},
jio
:
{
src
:
'
jio.js
'
,
// '<%= pkg.name %>.js'
dest
:
'
jio.min.js
'
,
}
},
jslint
:
{
grunt
:
{
src
:
[
'
Gruntfile.js
'
],
options
:
{
errorsOnly
:
true
}
},
jio
:
{
src
:
[
'
src/jio/**/*.js
'
],
exclude
:
[
'
src/jio/intro.js
'
,
'
src/jio/outro.js
'
],
options
:
{
errorsOnly
:
true
,
errorsOnly
:
true
}
},
jio_storages
:
{
src
:
[
'
src/jio.storage/**/*.js
'
],
options
:
{
errorsOnly
:
true
}
},
tests
:
{
src
:
[
'
test/**/*.js
'
],
options
:
{
errorsOnly
:
true
,
errorsOnly
:
true
}
},
queries
:
{
src
:
[
'
src/queries/core/**/*.js
'
],
exclude
:
[
'
src/queries/begin.js
'
,
'
src/queries/end.js
'
,
'
src/queries/parser-begin.js
'
,
'
src/queries/parser-end.js
'
],
options
:
{
errorsOnly
:
true
}
}
// queries: {
// src: ['src/queries/**/*.js'],
// exclude: ['src/queries/begin.js', 'src/queries/end.js']
// }
},
concat
:
{
jio
:
{
//banner: 'src/jio/intro.js',
//footer: 'src/j',
src
:
[
'
src/jio/intro.js
'
,
'
src/jio/core/**/*.js
'
,
'
src/jio/features/**/*.js
'
,
'
src/jio/outro.js
'
,
'
src/jio/outro.js
'
],
dest
:
'
jio.js
'
},
queries
:
{
src
:
[
'
src/queries/begin.js
'
,
'
src/queries/parser-begin.js
'
,
'
src/queries/build/parser.js
'
,
'
src/queries/parser-end.js
'
,
'
src/queries/core/**/*.js
'
,
'
src/queries/end.js
'
],
dest
:
'
jio.js
'
,
dest
:
'
complex_queries.js
'
}
},
qunit
:
{
files
:
[
'
test/tests.html
'
],
// grunt doesn't like requirejs
uglify
:
{
options
:
{
banner
:
'
/*! <%= pkg.name %> <%= pkg.version %>
'
+
'
<%= grunt.template.today("yyyy-mm-dd") %> */
\n
'
},
jio
:
{
src
:
'
jio.js
'
,
// '<%= pkg.name %>.js'
dest
:
'
jio.min.js
'
},
queries
:
{
src
:
'
complex_queries.js
'
,
dest
:
'
complex_queries.min.js
'
}
},
qunit
:
{
// grunt doesn't like requirejs
// phantomjs daesn't know Blobs !!
files
:
[
'
test/tests.html
'
]
}
});
grunt
.
loadNpmTasks
(
'
grunt-jslint
'
);
...
...
Makefile
View file @
555c679b
...
...
@@ -6,14 +6,15 @@ JIO = jio.js
JIO_MIN
=
jio.min.js
COMPLEX
=
complex_queries.js
COMPLEX_MIN
=
complex_queries.min.js
PARSER_PAR
=
$(QUERIES_DIR)
/parser.par
PARSER_OUT
=
$(QUERIES_DIR)
/parser.js
PARSER_PAR
=
$(QUERIES_DIR)
/
core/
parser.par
PARSER_OUT
=
$(QUERIES_DIR)
/
build/
parser.js
JSCC_CMD
=
node ./node_modules/jscc-node/jscc.js
-t
./node_modules/jscc-node/driver_node.js_
auto
:
compile
compile
:
mkdir
-p
$(
dir
$(PARSER_OUT)
)
$(JSCC_CMD)
-o
$(PARSER_OUT)
$(PARSER_PAR)
.phony
:
clean
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment