Ref Gruntfile. Removes foundation dependencies
This commit is contained in:
parent
5357f30a0e
commit
ed9531fa46
17 changed files with 19 additions and 3887 deletions
62
Gruntfile.js
62
Gruntfile.js
|
|
@ -65,7 +65,7 @@ module.exports = function(grunt) {
|
|||
},
|
||||
},
|
||||
css: {
|
||||
files: ['src/sass/*.css', 'src/css/*.css'],
|
||||
files: ['src/css/*.css'],
|
||||
tasks: ['concat:css']
|
||||
},
|
||||
sass: {
|
||||
|
|
@ -110,12 +110,10 @@ module.exports = function(grunt) {
|
|||
'bower_components/qrcode-generator/js/qrcode.js',
|
||||
'bower_components/qrcode-decoder-js/lib/qrcode-decoder.js',
|
||||
'bower_components/moment/min/moment-with-locales.js',
|
||||
'bower_components/angular-ui-router/release/angular-ui-router.js',
|
||||
'bower_components/angular-moment/angular-moment.js',
|
||||
'bower_components/ng-lodash/build/ng-lodash.js',
|
||||
'bower_components/angular-qrcode/angular-qrcode.js',
|
||||
'bower_components/angular-gettext/dist/angular-gettext.js',
|
||||
'bower_components/angular-sanitize/angular-sanitize.js',
|
||||
'bower_components/ng-csv/build/ng-csv.js',
|
||||
'bower_components/angular-mocks/angular-mocks.js',
|
||||
'angular-pbkdf2/angular-pbkdf2.js',
|
||||
|
|
@ -144,43 +142,7 @@ module.exports = function(grunt) {
|
|||
css: {
|
||||
src: ['src/sass/*.css', 'src/css/*.css'],
|
||||
dest: 'public/css/copay.css'
|
||||
},
|
||||
foundation: {
|
||||
src: [
|
||||
'bower_components/angular/angular-csp.css',
|
||||
'bower_components/foundation/css/foundation.css',
|
||||
'bower_components/animate.css/animate.css'
|
||||
],
|
||||
dest: 'public/css/foundation.css',
|
||||
},
|
||||
ionic_js: {
|
||||
src: [
|
||||
'bower_components/ionic/release/js/ionic.bundle.min.js'
|
||||
],
|
||||
dest: 'public/lib/ionic.bundle.js'
|
||||
},
|
||||
ionic_css: {
|
||||
src: [
|
||||
'bower_components/ionic/release/css/ionic.min.css'
|
||||
],
|
||||
dest: 'public/css/ionic.css',
|
||||
},
|
||||
ui_components_js: {
|
||||
src: [
|
||||
'bower_components/jquery/dist/jquery.js',
|
||||
'bower_components/roundSlider/dist/roundslider.min.js',
|
||||
'bower_components/angular-gridster/dist/angular-gridster.min.js',
|
||||
'bower_components/javascript-detect-element-resize/detect-element-resize.js'
|
||||
],
|
||||
dest: 'public/lib/ui-components.js'
|
||||
},
|
||||
ui_components_css: {
|
||||
src: [
|
||||
'bower_components/roundSlider/dist/roundslider.min.css',
|
||||
'bower_components/angular-gridster/dist/angular-gridster.min.css'
|
||||
],
|
||||
dest: 'public/css/ui-components.css',
|
||||
},
|
||||
}
|
||||
},
|
||||
uglify: {
|
||||
options: {
|
||||
|
|
@ -217,18 +179,24 @@ module.exports = function(grunt) {
|
|||
},
|
||||
},
|
||||
copy: {
|
||||
icons: {
|
||||
expand: true,
|
||||
flatten: true,
|
||||
src: 'bower_components/foundation-icon-fonts/foundation-icons.*',
|
||||
dest: 'public/icons/'
|
||||
},
|
||||
ionic_fonts: {
|
||||
expand: true,
|
||||
flatten: true,
|
||||
src: 'bower_components/ionic/release/fonts/ionicons.*',
|
||||
dest: 'public/fonts/'
|
||||
},
|
||||
ionic_js: {
|
||||
expand: true,
|
||||
flatten: true,
|
||||
src: 'bower_components/ionic/release/js/ionic.bundle.min.js',
|
||||
dest: 'public/lib/'
|
||||
},
|
||||
ionic_css: {
|
||||
expand: true,
|
||||
flatten: true,
|
||||
src: 'bower_components/ionic/release/css/ionic.min.css',
|
||||
dest: 'public/css/'
|
||||
},
|
||||
linux: {
|
||||
files: [{
|
||||
expand: true,
|
||||
|
|
@ -281,7 +249,7 @@ module.exports = function(grunt) {
|
|||
}
|
||||
});
|
||||
|
||||
grunt.registerTask('default', ['nggettext_compile', 'exec:appConfig', 'exec:coinbase', 'browserify', 'sass', 'concat', 'copy:icons', 'copy:ionic_fonts']);
|
||||
grunt.registerTask('default', ['nggettext_compile', 'exec:appConfig', 'exec:coinbase', 'browserify', 'sass', 'concat', 'copy:ionic_fonts', 'copy:ionic_js', 'copy:ionic_css']);
|
||||
grunt.registerTask('prod', ['default', 'uglify']);
|
||||
grunt.registerTask('translate', ['nggettext_extract']);
|
||||
grunt.registerTask('test', ['karma:unit']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue