Skip to content

Commit

Permalink
EVG-19773: Repair js-test and stabilize Legacy Waterfall UI build scr…
Browse files Browse the repository at this point in the history
  • Loading branch information
SupaJoon authored May 12, 2023
1 parent 7b7db6b commit 6801372
Show file tree
Hide file tree
Showing 5 changed files with 7,972 additions and 127 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ source-patch-1*
evergreen
!cmd/evergreen

package-lock.json

# ag and ripgrep ignore file
.ignore
114 changes: 57 additions & 57 deletions public/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
module.exports = function(grunt) {
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),

require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

babel: {
options: {
sourceMap: true,
plugins: ['transform-react-jsx'],
presets: ['es2015', 'react'],
},
dist: {
files: [{
expand: true,
cwd: 'static/app',
src: ['**/*.jsx'],
dest: 'static/dist/js',
ext: '.js',
}]
babel: {
options: {
sourceMap: true,
plugins: ["transform-react-jsx"],
presets: ["env"],
},
dist: {
files: [
{
expand: true,
cwd: "static/app",
src: ["**/*.jsx"],
dest: "static/dist/js",
ext: ".js",
},
},
],
},
},

watch: {
css: {
files: ['static/less/**'],
tasks: ['css']
},
react: {
files: ['static/app/**/*.jsx'],
tasks: ['babel']
}
watch: {
css: {
files: ["static/less/**"],
tasks: ["css"],
},
react: {
files: ["static/app/**/*.jsx"],
tasks: ["babel"],
},
},

less: {
main: {
options: {
paths: ["static/less"],
sourceMap: true,
sourceMapFilename: "static/dist/less.map",
sourceMapURL: "/static/dist/less.map",
sourceMapRootpath: "../../",
},

less: {
main: {
options: {
paths: ['static/less'],
sourceMap: true,
sourceMapFilename: 'static/dist/less.map',
sourceMapURL: '/static/dist/less.map',
sourceMapRootpath: '../../'
},
files: {
'static/dist/css/styles.css': 'static/less/main.less'
}
}
files: {
"static/dist/css/styles.css": "static/less/main.less",
},
},
},

cssmin: {
combine: {
files: {
'static/dist/css/styles.min.css': 'static/dist/css/styles.css'
}
}
}
});
cssmin: {
combine: {
files: {
"static/dist/css/styles.min.css": "static/dist/css/styles.css",
},
},
},
});

grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-react');
grunt.loadNpmTasks("grunt-babel");
grunt.loadNpmTasks("grunt-contrib-less");
grunt.loadNpmTasks("grunt-contrib-cssmin");
grunt.loadNpmTasks("grunt-contrib-watch");

grunt.registerTask('css', ['less', 'cssmin']);
grunt.registerTask('default', ['css']);
grunt.registerTask("css", ["less", "cssmin"]);
grunt.registerTask("default", ["css"]);
};
Loading

0 comments on commit 6801372

Please sign in to comment.