From 371da5d9bfca859ac834dddacbf575387eac5a8b Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Sun, 21 Mar 2021 11:43:35 +0100 Subject: [PATCH] remove bower and grunt js --- .../ChillMainBundle/Resources/Gruntfile.js | 143 ------------------ .../ChillMainBundle/Resources/README.md | 19 --- .../ChillMainBundle/Resources/bower.json | 21 --- .../ChillMainBundle/Resources/package.json | 18 --- .../ChillPersonBundle/Resources/Gruntfile.js | 46 ------ .../ChillPersonBundle/Resources/package.json | 16 -- 6 files changed, 263 deletions(-) delete mode 100644 src/Bundle/ChillMainBundle/Resources/Gruntfile.js delete mode 100644 src/Bundle/ChillMainBundle/Resources/README.md delete mode 100644 src/Bundle/ChillMainBundle/Resources/bower.json delete mode 100644 src/Bundle/ChillMainBundle/Resources/package.json delete mode 100644 src/Bundle/ChillPersonBundle/Resources/Gruntfile.js delete mode 100644 src/Bundle/ChillPersonBundle/Resources/package.json diff --git a/src/Bundle/ChillMainBundle/Resources/Gruntfile.js b/src/Bundle/ChillMainBundle/Resources/Gruntfile.js deleted file mode 100644 index ff2a6b438..000000000 --- a/src/Bundle/ChillMainBundle/Resources/Gruntfile.js +++ /dev/null @@ -1,143 +0,0 @@ -module.exports = function(grunt) { - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - - chill: { - folders: { - pub: './public', - fonts: '<%= chill.folders.pub %>/fonts', - bower: './bower_components/', - css: '<%= chill.folders.pub %>/css/', - js: '<%= chill.folders.pub %>/js/', - sass: '<%= chill.folders.pub %>/sass/', - } - }, - bower: { - install: { - options: { - targetDir: '<%= chill.folders.bower %>', - install: true, - copy: false, - //cleanBowerDir: true, - verbose: true - } - } - }, - copy: { - scratch: { - files: [ - { - cwd: '<%= chill.folders.bower %>Scratch-CSS-Design/stylesheets/sass', - src: ['**', '!_custom.scss', '!custom/**/*'], - dest: '<%= chill.folders.sass %>', - expand: true, - }, - { - cwd: '<%= chill.folders.bower %>Scratch-CSS-Design/fonts/', - src: '**', - dest: '<%= chill.folders.fonts %>', - expand: true, - } - ] - }, - select2: { - files: [ - { - cwd: '<%= chill.folders.bower %>select2', - src: ['*.js'], - dest: '<%= chill.folders.js %>select2', - expand: true, - }, - { - cwd: '<%= chill.folders.bower %>select2', - src: ['*.css', 'select2.png'], - dest: '<%= chill.folders.css %>select2', - expand: true, - } - ] - }, - pikaday: { - files: [ - { - cwd: '<%= chill.folders.bower %>pikaday/css', - src: ['pikaday.css'], - dest: '<%= chill.folders.css %>', - expand: true, - }, - { - cwd: '<%= chill.folders.bower %>pikaday', - src: ['pikaday.js', 'plugins/pikaday.jquery.js'], - dest: '<%= chill.folders.js %>pikaday', - expand: true, - } - ] - }, - moment: { - files: [ - { - cwd: '<%= chill.folders.bower %>moment', - src: ['moment.js'], - dest: '<%= chill.folders.js %>', - expand: true, - } - ] - }, - chill_standard: { /* copy all files in chill standard (done by app/console assets:install) */ - files: [ - { - cwd: './public', - src: '**', - dest: '../../../../web/bundles/chillmain/', - expand: true, - } - ] - }, - jquery: { - src: '<%= chill.folders.bower %>jquery/dist/jquery.js', - dest: '<%= chill.folders.js %>/jquery.js' - } - }, - sass: { - dist: { - options: { - debugInfo: false, - }, - files: [{ - expand: true, - cwd: '<%= chill.folders.sass.src %>', - src: ['*.scss'], - dest: '<%= chill.folders.css %>', - ext: '.css' - }] - } - }, - watch: { - css: { - files: [ '<%= chill.folders.sass %>/*.scss', '<%= chill.folders.sass %>/**/*.scss' ], - tasks: ['generatecss'], - /* - options: { - spawn: false, - interrupt: true, - } - */ - } - }, - clean: { - /*css: ['<%= chill.folders.css %>*', '!<%= chill.folders.css %>sass/_custom.scss'], */ - js: ['<%= chill.folders.js %>/select2*', '<%= chill.folders.js %>/pikaday*', '<%= chill.folders.js %>/moment*', '<%= chill.folders.js %>/jquery*'], - chill_standard: ['../../../../web/bundles/chillmain/'], - bowerDir: ['<%= chill.folders.bower %>'] - } - }); - - grunt.loadNpmTasks('grunt-bower-task'); - grunt.loadNpmTasks('grunt-contrib-copy'); - grunt.loadNpmTasks('grunt-contrib-sass'); - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-contrib-clean'); - - grunt.registerTask('generatecss', [/*'clean:css',*/'copy:scratch', 'sass']); - grunt.registerTask('dependencies', ['bower', 'copy']); - grunt.registerTask('default', ['dependencies', 'generatecss']); -}; \ No newline at end of file diff --git a/src/Bundle/ChillMainBundle/Resources/README.md b/src/Bundle/ChillMainBundle/Resources/README.md deleted file mode 100644 index ab650727a..000000000 --- a/src/Bundle/ChillMainBundle/Resources/README.md +++ /dev/null @@ -1,19 +0,0 @@ -ScratchCSS -========== - -Installation ------------- - -```bash -npm install -grunt -``` - -Developpement : autoupdate --------------------------- - -```bash -grunt watch -``` - -This command will copy all the css file into `../../../../web/bundles/chillmain/` \ No newline at end of file diff --git a/src/Bundle/ChillMainBundle/Resources/bower.json b/src/Bundle/ChillMainBundle/Resources/bower.json deleted file mode 100644 index c179fdf8d..000000000 --- a/src/Bundle/ChillMainBundle/Resources/bower.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "Chill-JS-CSS", - "version": "0.0.0", - "homepage": "https://github.com/Chill-project/Main", - "authors": [ - "Champs-Libres " - ], - "description": "JS-CSS files for Chill, a software for social workers", - "private": true, - "devDependencies": { - "Scratch-CSS-Design": "https://github.com/Champs-Libres/ScratchCSS.git", - "pikaday": "https://github.com/dbushell/Pikaday.git#~1.2.0", - "moment": "~2.8.3", - "select2": "~3.5.2", - "jquery": "~2.1.1" - }, - "license": "MIT", - "dependencies": { - "font-awesome": "~4.7.0" - } -} diff --git a/src/Bundle/ChillMainBundle/Resources/package.json b/src/Bundle/ChillMainBundle/Resources/package.json deleted file mode 100644 index 6752da71a..000000000 --- a/src/Bundle/ChillMainBundle/Resources/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "chill-js-css", - "version": "0.0.0", - "description": "JS-CSS files for Chill, a software for social workers", - "directories": {}, - "author": "Champs-Libres ", - "devDependencies": { - "grunt": "^1.0.3", - "grunt-bower-task": "^0.4.0", - "grunt-contrib-clean": "^0.6.0", - "grunt-contrib-copy": "^0.7.0", - "grunt-contrib-sass": "^0.8.1", - "grunt-contrib-watch": "^0.6.1", - "jit-grunt": "^0.9.0" - }, - "dependencies": { - } -} diff --git a/src/Bundle/ChillPersonBundle/Resources/Gruntfile.js b/src/Bundle/ChillPersonBundle/Resources/Gruntfile.js deleted file mode 100644 index 1e3fea92f..000000000 --- a/src/Bundle/ChillPersonBundle/Resources/Gruntfile.js +++ /dev/null @@ -1,46 +0,0 @@ -module.exports = function(grunt) { - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - - chillperson: { - folders: { - pub: './public', - css: '<%= chillperson.folders.pub %>/css/', - sass: '<%= chillperson.folders.pub %>/sass/', - } - }, - sass: { - dist: { - options: { - debugInfo: false, - }, - files: [{ - expand: true, - cwd: '<%= chillperson.folders.sass.src %>', - src: ['*.scss'], - dest: '<%= chillperson.folders.css %>', - ext: '.css' - }] - } - }, - watch: { - css: { - files: [ '<%= chillperson.folders.sass %>/*.scss', '<%= chillperson.folders.sass %>/**/*.scss' ], - tasks: ['generatecss'], - /* - options: { - spawn: false, - interrupt: true, - } - */ - } - }, - }); - - grunt.loadNpmTasks('grunt-contrib-sass'); - grunt.loadNpmTasks('grunt-contrib-watch'); - - grunt.registerTask('generatecss', 'sass'); - - grunt.registerTask('default', ['generatecss']); -}; \ No newline at end of file diff --git a/src/Bundle/ChillPersonBundle/Resources/package.json b/src/Bundle/ChillPersonBundle/Resources/package.json deleted file mode 100644 index 3db5780e7..000000000 --- a/src/Bundle/ChillPersonBundle/Resources/package.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "name": "chill-person-js-css", - "version": "0.0.0", - "description": "JS-CSS files for ChillPerson Bundle, a software for social workers", - "directories": { - }, - "author": "Champs-Libres ", - "devDependencies": { - "grunt": "^0.4.5", - "grunt-contrib-copy": "^0.7.0", - "grunt-contrib-sass": "^0.8.1", - "grunt-contrib-watch": "^0.6.1", - "grunt-contrib-clean": "^0.6.0" - }, - "dependencies": {} -}