Style with jscs.
This commit is contained in:
parent
9f0258905d
commit
d7ead2aa5c
@ -26,9 +26,9 @@ module.exports = function(grunt) {
|
|||||||
grunt.initConfig(configs);
|
grunt.initConfig(configs);
|
||||||
|
|
||||||
grunt.registerTask('dependencies', [
|
grunt.registerTask('dependencies', [
|
||||||
'shell:npm_install',
|
'shell:npmInstall',
|
||||||
'shell:bower_install',
|
'shell:bowerInstall',
|
||||||
'shell:pip_install',
|
'shell:pipInstall',
|
||||||
'wiredep:app'
|
'wiredep:app'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ module.exports = {
|
|||||||
base: '<%= accountant.frontend.src %>',
|
base: '<%= accountant.frontend.src %>',
|
||||||
apiUrl: 'http://localhost:5000/api/',
|
apiUrl: 'http://localhost:5000/api/',
|
||||||
swaggerUiUrl: 'http://localhost:5000/swaggerui/',
|
swaggerUiUrl: 'http://localhost:5000/swaggerui/',
|
||||||
livereload: 1337,
|
livereload: 1337
|
||||||
},
|
},
|
||||||
proxies: [{
|
proxies: [{
|
||||||
context: '/api',
|
context: '/api',
|
||||||
@ -32,7 +32,7 @@ module.exports = {
|
|||||||
return [
|
return [
|
||||||
connectLogger(),
|
connectLogger(),
|
||||||
connect().use('/api', apiProxy),
|
connect().use('/api', apiProxy),
|
||||||
connect().use('/swaggerUi', swaggerUiProxy),
|
connect().use('/swaggerUi', swaggerUiProxy)
|
||||||
].concat(middlewares);
|
].concat(middlewares);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,9 +7,9 @@ module.exports = {
|
|||||||
dot: true,
|
dot: true,
|
||||||
cwd: '<%= accountant.frontend.src %>',
|
cwd: '<%= accountant.frontend.src %>',
|
||||||
dest: '<%= accountant.frontend.dist %>',
|
dest: '<%= accountant.frontend.dist %>',
|
||||||
src :[
|
src: [
|
||||||
'*.html',
|
'*.html',
|
||||||
'views/*.html',
|
'views/*.html'
|
||||||
]
|
]
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
@ -13,5 +13,5 @@ module.exports = {
|
|||||||
'!<%= accountant.frontend.dist %>/css/*.map.css',
|
'!<%= accountant.frontend.dist %>/css/*.map.css',
|
||||||
'!<%= accountant.frontend.dist %>/js/*.map.js'
|
'!<%= accountant.frontend.dist %>/js/*.map.js'
|
||||||
]
|
]
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
|
@ -2,7 +2,7 @@ module.exports = {
|
|||||||
options: {
|
options: {
|
||||||
config: '.jscsrc'
|
config: '.jscsrc'
|
||||||
},
|
},
|
||||||
frontend_js: [
|
frontendJs: [
|
||||||
'<%= accountant.frontend.src %>/js/*.js'
|
'<%= accountant.frontend.src %>/js/*.js'
|
||||||
],
|
],
|
||||||
toolchain: [
|
toolchain: [
|
||||||
|
@ -3,7 +3,7 @@ module.exports = {
|
|||||||
jshintrc: '.jshintrc',
|
jshintrc: '.jshintrc',
|
||||||
reporter: require('jshint-stylish')
|
reporter: require('jshint-stylish')
|
||||||
},
|
},
|
||||||
frontend_js: [
|
frontendJs: [
|
||||||
'<%= accountant.frontend.src %>/js/*.js'
|
'<%= accountant.frontend.src %>/js/*.js'
|
||||||
],
|
],
|
||||||
toolchain: [
|
toolchain: [
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
npm_install: {
|
npmInstall: {
|
||||||
command: 'npm install'
|
command: 'npm install'
|
||||||
},
|
},
|
||||||
bower_install: {
|
bowerInstall: {
|
||||||
command: 'bower install'
|
command: 'bower install'
|
||||||
},
|
},
|
||||||
pip_install: {
|
pipInstall: {
|
||||||
command: 'pip install --upgrade --requirement requirements.txt'
|
command: 'pip install --upgrade --requirement requirements.txt'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -7,7 +7,7 @@ module.exports = {
|
|||||||
options: {
|
options: {
|
||||||
assetsDir: [
|
assetsDir: [
|
||||||
'<%= accountant.frontend.dist %>',
|
'<%= accountant.frontend.dist %>',
|
||||||
'<%= accountant.frontend.dist %>/css',
|
'<%= accountant.frontend.dist %>/css'
|
||||||
],
|
],
|
||||||
patterns: {
|
patterns: {
|
||||||
js: [[/(images\/[^''""]*\.(png|jpg|jpeg|gif|webp|svg))/g, 'Replacing references to images']]
|
js: [[/(images\/[^''""]*\.(png|jpg|jpeg|gif|webp|svg))/g, 'Replacing references to images']]
|
||||||
|
@ -38,6 +38,6 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
requirements: {
|
requirements: {
|
||||||
files: ['requirements.txt'],
|
files: ['requirements.txt'],
|
||||||
tasks: ['shell:pip_install']
|
tasks: ['shell:pipInstall']
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user