Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Cassani committed Jun 22, 2021
2 parents 06da249 + 2de35a6 commit 849074f
Show file tree
Hide file tree
Showing 131 changed files with 3,016 additions and 4,964 deletions.
52 changes: 29 additions & 23 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ const cssWatchFilesUploadPage = [
]
const cssWatchManage = [cssBase + 'sass/commons/*']

const babelifyTransform = [
'babelify',
{presets: ['@babel/preset-react', ['@babel/preset-env']]},
]

module.exports = function (grunt) {
const conf = grunt.file.read(incPath + 'version.ini')
const version = conf
Expand All @@ -58,12 +63,7 @@ module.exports = function (grunt) {
browserify: {
components: {
options: {
transform: [
[
'babelify',
{presets: ['@babel/preset-react', ['@babel/preset-env']]},
],
],
transform: [babelifyTransform],
browserifyOptions: {
paths: [__dirname + '/node_modules'],
},
Expand All @@ -77,12 +77,7 @@ module.exports = function (grunt) {
},
qualityReport: {
options: {
transform: [
[
'babelify',
{presets: ['@babel/preset-react', ['@babel/preset-env']]},
],
],
transform: [babelifyTransform],
browserifyOptions: {
paths: [__dirname + '/node_modules'],
},
Expand All @@ -91,6 +86,17 @@ module.exports = function (grunt) {
src: `${basePath}cat_source/es6/components/quality_report/QualityReport.js`,
dest: buildPath + 'qa-report.js',
},
manage: {
options: {
transform: [babelifyTransform],
browserifyOptions: {
paths: [__dirname + '/node_modules'],
},
watch: true,
},
src: [basePath + 'cat_source/es6/components/projects/Dashboard.js'],
dest: buildPath + 'manage-components.js',
},
},

/**
Expand Down Expand Up @@ -229,7 +235,13 @@ module.exports = function (grunt) {
src: [basePath + 'lib/semantic.min.js'],
dest: buildPath + 'semantic.js',
},

manage: {
src: [
basePath + 'outsource.js',
basePath + 'cat_source/es6/ajax_utils/*.js',
],
dest: buildPath + 'manage.js',
},
common: {
src: [
basePath + 'common.js',
Expand All @@ -239,14 +251,6 @@ module.exports = function (grunt) {
],
dest: buildPath + 'common.js',
},
manage: {
src: [
basePath + 'manage.js',
basePath + 'outsource.js',
basePath + 'cat_source/es6/ajax_utils/*.js',
],
dest: buildPath + 'manage.js',
},
analyze_new: {
src: [
basePath + 'analyze.js',
Expand Down Expand Up @@ -459,13 +463,14 @@ module.exports = function (grunt) {
grunt.registerTask('bundle:js', [
'browserify:components',
'browserify:qualityReport',
'browserify:manage',
'concat:libs',
'concat:libs_upload',
'concat:semantic',
'concat:app',
'concat:common',
'concat:manage',
'concat:analyze_new',
'concat:manage',
'concat:upload',
'replace:version',
])
Expand All @@ -481,13 +486,14 @@ module.exports = function (grunt) {
grunt.registerTask('bundleDev:js', [
'browserify:components',
'browserify:qualityReport',
'browserify:manage',
'concat:libs',
'concat:libs_upload',
'concat:semantic',
'concat:app',
'concat:common',
'concat:manage',
'concat:analyze_new',
'concat:manage',
'concat:upload',
'replace:version',
])
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"psr/log": "~1.0",
"symfony/console": "^2.8",
"symfony/filesystem": "^2.8.9",
"defuse/php-encryption": "2.0.*"
"defuse/php-encryption": "2.0.*",
"matecat/subfiltering": "^1.0"
}
}
Loading

0 comments on commit 849074f

Please sign in to comment.