Skip to content

Commit

Permalink
added Grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
VashonG committed Jul 20, 2023
1 parent 2f69302 commit 711c7da
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 4 deletions.
33 changes: 33 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
module.exports = function (grunt) {
// Project configuration
grunt.initConfig({
// Task configurations
concat: {
options: {
separator: ';',
},
dist: {
src: ['src/*.js'],
dest: 'dist/bundle.js',
},
},
uglify: {
options: {
mangle: false,
},
dist: {
files: {
'dist/bundle.min.js': ['dist/bundle.js'],
},
},
},
});

// Load Grunt plugins
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');

// Register Grunt tasks
grunt.registerTask('default', ['concat', 'uglify']);
};

29 changes: 25 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "anima-project",
"name": "carat",
"version": "1.0.0",
"description": "A React project automatically generated by Anima, the design-to-code platform",
"source": "./index.html",
Expand Down Expand Up @@ -27,9 +27,30 @@
"@storybook/react": "^7.0.3",
"@storybook/react-webpack5": "^7.0.3",
"@storybook/testing-library": "^0.0.14-next.2",
"grunt": "^1.6.1",
"grunt-contrib-concat": "^2.1.0",
"grunt-contrib-uglify": "^5.2.2",
"parcel": "^2.8.0",
"parcel-reporter-static-files-copy": "^1.5.0",
"process": "^0.11.10",
"storybook": "^7.0.3"
}
}
"storybook": "^7.0.3",
"webpack-cli": "^5.1.4"
},
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/Karat-Card/Carat-Club-Dashboard.git"
},
"keywords": [
"carat",
"credit",
"typescript",
"dashboard"
],
"author": "Vashon Gonzales",
"license": "MIT",
"bugs": {
"url": "https://github.com/Karat-Card/Carat-Club-Dashboard/issues"
},
"homepage": "https://github.com/Karat-Card/Carat-Club-Dashboard#readme"
}

0 comments on commit 711c7da

Please sign in to comment.