mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Initial Grunt architecture
This commit is contained in:
parent
918d84545a
commit
d794301301
48
Gruntfile.js
Normal file
48
Gruntfile.js
Normal file
@ -0,0 +1,48 @@
|
||||
grunt.loadNpmTasks('grunt-contrib-connect');
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
//grunt.loadNpmTasks('grunt-contrib-nodeunit');
|
||||
grunt.loadNpmTasks('grunt-ghost');
|
||||
|
||||
grunt.registerTask('test', ['jshint', /*'nodeunit',*/ 'connect', 'ghost']);
|
||||
|
||||
jshint: {
|
||||
/*options: {
|
||||
jshintrc: '.jshintrc'
|
||||
},*/
|
||||
files: [
|
||||
'Gruntfile.js',
|
||||
'package.json',
|
||||
'source/**/*.js'/*,
|
||||
'<%= nodeunit.tests %>'*/
|
||||
]
|
||||
},
|
||||
/*
|
||||
nodeunit: {
|
||||
tests: ['tests/nodeunit/*_test.js']
|
||||
},
|
||||
*/
|
||||
connect: {
|
||||
www: {
|
||||
options: {
|
||||
base: 'source',
|
||||
port: 4545
|
||||
}
|
||||
}
|
||||
},
|
||||
ghost: {
|
||||
test: {
|
||||
files: [{
|
||||
src: ['tests/integration/casperjs/*_test.js']
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
args: {
|
||||
baseUrl: 'http://localhost:' +
|
||||
'<%= connect.www.options.port %>/'
|
||||
},
|
||||
direct: false,
|
||||
logLevel: 'error',
|
||||
printCommand: false,
|
||||
printFilePaths: true
|
||||
}
|
||||
}
|
38
package.json
38
package.json
@ -1,15 +1,25 @@
|
||||
{
|
||||
"author": "People",
|
||||
"name": "piskel",
|
||||
"description": "Web based 2d animations editor",
|
||||
"version": "0.0.1",
|
||||
"homepage": "http://github.com/juliandescottes/piskel",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "http://github.com/juliandescottes/piskel.git"
|
||||
},
|
||||
"scripts": { "test": "make test" },
|
||||
"devDependencies": {
|
||||
"jshint": "0.6.1"
|
||||
}
|
||||
{
|
||||
"author": "People",
|
||||
"name": "piskel",
|
||||
"description": "Web based 2d animations editor",
|
||||
"version": "0.0.1",
|
||||
"homepage": "http://github.com/juliandescottes/piskel",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "http://github.com/juliandescottes/piskel.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "grunt test"
|
||||
//"test": "make test"
|
||||
},
|
||||
"devDependencies": {
|
||||
//"jshint": "0.6.1",
|
||||
"grunt": "0.4.1",
|
||||
// Grunt task to start a web server:
|
||||
"grunt-contrib-connect": "0.3.0",
|
||||
"grunt-contrib-jshint": "0.5.4",
|
||||
//"grunt-contrib-nodeunit": "0.1.2",
|
||||
// Grunt task to run CasperJS tests:
|
||||
"grunt-ghost": "1.0.12"
|
||||
}
|
||||
}
|
1
tests/integration/casperjs/smoke_test.js
Normal file
1
tests/integration/casperjs/smoke_test.js
Normal file
@ -0,0 +1 @@
|
||||
// pouet
|
Loading…
Reference in New Issue
Block a user