Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
8b3ede9e
Commit
8b3ede9e
authored
Oct 27, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused parts from Gruntfile
Wouldn't mind getting rid of grunt completely.
parent
a55246c1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
60 deletions
+5
-60
Gruntfile.js
Gruntfile.js
+1
-53
docs/RELEASE_CHECKLIST.txt
docs/RELEASE_CHECKLIST.txt
+3
-5
spec/chatroom.js
spec/chatroom.js
+0
-1
tests/main.js
tests/main.js
+1
-1
No files found.
Gruntfile.js
View file @
8b3ede9e
/*global
__dirname,
process */
/*global process */
module
.
exports
=
function
(
grunt
)
{
module
.
exports
=
function
(
grunt
)
{
var
path
=
require
(
'
path
'
);
var
path
=
require
(
'
path
'
);
grunt
.
initConfig
({
grunt
.
initConfig
({
...
@@ -21,21 +21,6 @@ module.exports = function(grunt) {
...
@@ -21,21 +21,6 @@ module.exports = function(grunt) {
},
},
}
}
},
},
json
:
{
main
:
{
options
:
{
namespace
:
'
locales
'
,
includePath
:
true
,
processName
:
function
(
filename
)
{
return
filename
.
toLowerCase
().
match
(
/^locale
\/(
.*
)\/
lc_messages/
)[
1
];
}
},
src
:
[
'
locale/**/LC_MESSAGES/*.json
'
],
dest
:
'
builds/locales.js
'
}
},
cssmin
:
{
cssmin
:
{
options
:
{
options
:
{
banner
:
"
/*
"
+
banner
:
"
/*
"
+
...
@@ -49,49 +34,12 @@ module.exports = function(grunt) {
...
@@ -49,49 +34,12 @@ module.exports = function(grunt) {
dest
:
'
css/converse.min.css
'
,
dest
:
'
css/converse.min.css
'
,
src
:
[
'
css/converse.css
'
]
src
:
[
'
css/converse.css
'
]
}
}
},
touch
:
{
npm
:
[
'
stamp-npm
'
],
bower
:
[
'
stamp-bower
'
]
}
}
});
});
grunt
.
loadNpmTasks
(
'
grunt-contrib-cssmin
'
);
grunt
.
loadNpmTasks
(
'
grunt-contrib-cssmin
'
);
grunt
.
loadNpmTasks
(
'
grunt-contrib-jst
'
);
grunt
.
loadNpmTasks
(
'
grunt-contrib-jst
'
);
grunt
.
loadNpmTasks
(
'
grunt-json
'
);
grunt
.
loadNpmTasks
(
'
grunt-json
'
);
grunt
.
loadNpmTasks
(
'
grunt-contrib-requirejs
'
);
grunt
.
loadNpmTasks
(
'
grunt-contrib-requirejs
'
);
grunt
.
loadNpmTasks
(
'
grunt-touch
'
);
grunt
.
registerTask
(
'
test
'
,
'
Run Tests
'
,
function
()
{
var
done
=
this
.
async
();
var
child_process
=
require
(
'
child_process
'
);
var
exec
=
child_process
.
exec
;
exec
(
'
./node_modules/.bin/phantomjs
'
+
'
node_modules/jasmine-reporters/test/phantomjs-testrunner.js
'
+
__dirname
+
'
/tests.html
'
,
function
(
err
,
stdout
,
stderr
)
{
if
(
err
)
{
grunt
.
log
.
write
(
'
Tests failed with error code
'
+
err
.
code
);
grunt
.
log
.
write
(
stderr
);
}
grunt
.
log
.
write
(
stdout
);
done
();
});
});
grunt
.
registerTask
(
'
fetch
'
,
'
Set up the development environment
'
,
function
()
{
var
done
=
this
.
async
();
var
child_process
=
require
(
'
child_process
'
);
var
exec
=
child_process
.
exec
;
exec
(
'
./node_modules/.bin/bower update
'
,
function
(
err
,
stdout
,
stderr
)
{
if
(
err
)
{
grunt
.
log
.
write
(
'
build failed with error code
'
+
err
.
code
);
grunt
.
log
.
write
(
stderr
);
}
grunt
.
log
.
write
(
stdout
);
done
();
});
});
grunt
.
registerTask
(
'
jsmin
'
,
'
Create a new release
'
,
function
()
{
grunt
.
registerTask
(
'
jsmin
'
,
'
Create a new release
'
,
function
()
{
var
done
=
this
.
async
();
var
done
=
this
.
async
();
...
...
docs/RELEASE_CHECKLIST.txt
View file @
8b3ede9e
- Run tests
- Run tests
grunt test
make check
- Bump version
- make the release
make bump VERSION=0.6.4
make release VERSION=0.6.4
- Re-minify CSS and JS
grunt release
- Tag
- Tag
git tag -s v0.6.4 -m 'Release of version 0.6.4'
git tag -s v0.6.4 -m 'Release of version 0.6.4'
- Push
- Push
...
...
spec/chatroom.js
View file @
8b3ede9e
...
@@ -71,7 +71,6 @@
...
@@ -71,7 +71,6 @@
// http://xmpp.org/extensions/xep-0045.html#exit
// http://xmpp.org/extensions/xep-0045.html#exit
for
(
i
=
mock
.
chatroom_names
.
length
-
1
;
i
>-
1
;
i
--
)
{
for
(
i
=
mock
.
chatroom_names
.
length
-
1
;
i
>-
1
;
i
--
)
{
name
=
mock
.
chatroom_names
[
i
];
name
=
mock
.
chatroom_names
[
i
];
console
.
log
(
name
);
role
=
mock
.
chatroom_roles
[
name
].
role
;
role
=
mock
.
chatroom_roles
[
name
].
role
;
// See example 21 http://xmpp.org/extensions/xep-0045.html#enter-pres
// See example 21 http://xmpp.org/extensions/xep-0045.html#enter-pres
presence
=
$pres
({
presence
=
$pres
({
...
...
tests/main.js
View file @
8b3ede9e
...
@@ -47,7 +47,7 @@ require([
...
@@ -47,7 +47,7 @@ require([
animate
:
false
,
animate
:
false
,
connection
:
mock
.
mock_connection
,
connection
:
mock
.
mock_connection
,
no_trimming
:
true
,
no_trimming
:
true
,
debug
:
tru
e
debug
:
fals
e
},
function
(
converse
)
{
},
function
(
converse
)
{
window
.
converse
=
converse
;
window
.
converse
=
converse
;
window
.
crypto
=
{
window
.
crypto
=
{
...
...
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