Style with jscs.

This commit is contained in:
Alexis Lahouze 2016-10-09 20:33:59 +02:00
parent 9f0258905d
commit d7ead2aa5c
13 changed files with 120 additions and 120 deletions

View File

@ -26,9 +26,9 @@ module.exports = function(grunt) {
grunt.initConfig(configs);
grunt.registerTask('dependencies', [
'shell:npm_install',
'shell:bower_install',
'shell:pip_install',
'shell:npmInstall',
'shell:bowerInstall',
'shell:pipInstall',
'wiredep:app'
]);

View File

@ -7,7 +7,7 @@ module.exports = {
base: '<%= accountant.frontend.src %>',
apiUrl: 'http://localhost:5000/api/',
swaggerUiUrl: 'http://localhost:5000/swaggerui/',
livereload: 1337,
livereload: 1337
},
proxies: [{
context: '/api',
@ -32,7 +32,7 @@ module.exports = {
return [
connectLogger(),
connect().use('/api', apiProxy),
connect().use('/swaggerUi', swaggerUiProxy),
connect().use('/swaggerUi', swaggerUiProxy)
].concat(middlewares);
}
}

View File

@ -7,9 +7,9 @@ module.exports = {
dot: true,
cwd: '<%= accountant.frontend.src %>',
dest: '<%= accountant.frontend.dist %>',
src :[
src: [
'*.html',
'views/*.html',
'views/*.html'
]
}]
},

View File

@ -13,5 +13,5 @@ module.exports = {
'!<%= accountant.frontend.dist %>/css/*.map.css',
'!<%= accountant.frontend.dist %>/js/*.map.js'
]
},
}
};

View File

@ -2,7 +2,7 @@ module.exports = {
options: {
config: '.jscsrc'
},
frontend_js: [
frontendJs: [
'<%= accountant.frontend.src %>/js/*.js'
],
toolchain: [

View File

@ -3,7 +3,7 @@ module.exports = {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
frontend_js: [
frontendJs: [
'<%= accountant.frontend.src %>/js/*.js'
],
toolchain: [

View File

@ -1,11 +1,11 @@
module.exports = {
npm_install: {
npmInstall: {
command: 'npm install'
},
bower_install: {
bowerInstall: {
command: 'bower install'
},
pip_install: {
pipInstall: {
command: 'pip install --upgrade --requirement requirements.txt'
}
};

View File

@ -7,7 +7,7 @@ module.exports = {
options: {
assetsDir: [
'<%= accountant.frontend.dist %>',
'<%= accountant.frontend.dist %>/css',
'<%= accountant.frontend.dist %>/css'
],
patterns: {
js: [[/(images\/[^''""]*\.(png|jpg|jpeg|gif|webp|svg))/g, 'Replacing references to images']]

View File

@ -38,6 +38,6 @@ module.exports = {
},
requirements: {
files: ['requirements.txt'],
tasks: ['shell:pip_install']
tasks: ['shell:pipInstall']
}
};