Commit ac9115ff authored by Sang D NGO's avatar Sang D NGO

Merge branch 'issue-1-jade2pug' into 'master'

issue#1: change jade to pug

See merge request !1
parents 10602a66 b35059c3
......@@ -62,6 +62,22 @@ module.exports = function(grunt) {
midway_backend: runGrunt.newProcess(['test-midway-backend']),
unit_backend: runGrunt.newProcess(['test-unit-backend']),
unit_frontend: runGrunt.newProcess(['test-frontend'])
},
puglint: {
all: {
options: {
config: {
disallowAttributeInterpolation: true,
disallowLegacyMixinCall: true,
validateExtensions: true,
validateIndentation: 2
}
},
src: [
'frontend/**/*.pug'
]
}
}
});
......@@ -80,8 +96,10 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-run-grunt');
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-wait-server');
grunt.loadNpmTasks('grunt-puglint');
grunt.registerTask('linters', 'Check code for lint', ['eslint:all', 'lint_pattern:all', 'lint_pattern:css']);
grunt.registerTask('pug-linter', 'Check the pug/jade files', ['puglint:all']);
grunt.registerTask('linters', 'Check code for lint', ['eslint:all', 'lint_pattern:all', 'lint_pattern:css', 'pug-linter']);
grunt.registerTask('linters-dev', 'Check changed files for lint', ['prepare-quick-lint', 'eslint:quick', 'lint_pattern:quick']);
grunt.registerTask('spawn-servers', 'spawn servers', ['shell:mongo', 'shell:redis']);
grunt.registerTask('kill-servers', 'kill servers', ['shell:mongo:kill', 'shell:redis:kill']);
......
extends /modules/subheader/responsive-subheader
extends /modules/subheader/responsive-subheader.pug
block left
seed-burger-button.hidden-md
......
......@@ -22,7 +22,7 @@ module.exports = function(config) {
'test/config/mocks.js',
`frontend/app/${MODULE_PREFIX}.app.js`,
'frontend/app/**/*.js',
'frontend/app/**/*.jade',
'frontend/app/**/*.pug',
'frontend/app/*.js'
],
frameworks: ['mocha'],
......@@ -33,7 +33,7 @@ module.exports = function(config) {
reporters: ['coverage', 'spec'],
preprocessors: {
'frontend/app/**/*.js': ['coverage'],
'**/*.jade': ['ng-jade2module']
'**/*.pug': ['ng-jade2module']
},
plugins: [
......@@ -46,7 +46,7 @@ module.exports = function(config) {
'karma-ng-jade2module-preprocessor'
],
coverageReporter: {type: 'text', dir: '/tmp'},
coverageReporter: { type: 'text', dir: '/tmp' },
ngJade2ModulePreprocessor: {
stripPrefix: 'frontend',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment