diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b06886e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +assets \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c7fc86f --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +all: + npm ci + npm run build \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..06d1711 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,26 @@ +// Load gulp and gulp-copy +var gulp = require('gulp'); +var copy = require('gulp-copy'); + +// Define a task to copy all css and js files from the source directory +gulp.task('copy-assets', function() { + // Use a glob pattern to select all css and js files in the source directory and its subdirectories + return gulp.src([ + './node_modules/bootstrap/dist/**/*.+(css|js)', + './node_modules/feather-icons/dist/**/*.+(css|js)', + './node_modules/progress-tracker/src/styles/*.+(css|js)' + ]) // Specify the base folder as src + .pipe(copy('./assets/', { // Copy the files to the assets folder + prefix: 3, // Remove the src folder from the path + rename: function(path) { // Rename the path + if (path.extname === '.css') { // If the file is a css file + path.dirname = 'css'; // Change the folder name to css + } else if (path.extname === '.js') { // If the file is a js file + path.dirname = 'js'; // Change the folder name to js + } + } + })); +}); + +// Define a default task that runs the copy-assets task +gulp.task('default', gulp.series('copy-assets')); \ No newline at end of file diff --git a/index.html b/index.html index 7ed8d34..f869d1b 100644 --- a/index.html +++ b/index.html @@ -1,15 +1,13 @@ - Questionnaire Wizard - - - - - - - - + Questionnaire Wizard + + + + + +
@@ -89,25 +87,25 @@