remove bower and grunt js

This commit is contained in:
Mathieu Jaumotte 2021-03-21 11:43:35 +01:00
parent f4c556812e
commit 371da5d9bf
6 changed files with 0 additions and 263 deletions

View File

@ -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']);
};

View File

@ -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/`

View File

@ -1,21 +0,0 @@
{
"name": "Chill-JS-CSS",
"version": "0.0.0",
"homepage": "https://github.com/Chill-project/Main",
"authors": [
"Champs-Libres <info@champs-libres.coop>"
],
"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"
}
}

View File

@ -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 <info@champs-libres.coop>",
"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": {
}
}

View File

@ -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']);
};

View File

@ -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 <info@champs-libres.coop>",
"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": {}
}