Submit Search
Task Automatisierung mit Grunt.js
2 likes
•
1,484 views
3
3rfan
1 of 24
Download now
Download to read offline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
More Related Content
PPTX
GRUNT - The JavaScript Task Runner
Larry Nung
PDF
PostCSS
Joan Leon
PPTX
Docker for localhost development (on Serbian)
Milan Urukalo
PDF
GruntJs Installation and popular plugins. MoscowJS
Dmitri Kunin
PDF
Евгений Гаврюшин — Генератор БЭМ-проектов на Yeoman
Yandex
PDF
Automated css
Hayashi Yuichi
PDF
Joomla in a Box – A Vagrant box for local Joomla development
Joomlatools
PDF
Plugins con React y la REST API (Elio Rivero, WCBA 2017)
wpargentina
GRUNT - The JavaScript Task Runner
Larry Nung
PostCSS
Joan Leon
Docker for localhost development (on Serbian)
Milan Urukalo
GruntJs Installation and popular plugins. MoscowJS
Dmitri Kunin
Евгений Гаврюшин — Генератор БЭМ-проектов на Yeoman
Yandex
Automated css
Hayashi Yuichi
Joomla in a Box – A Vagrant box for local Joomla development
Joomlatools
Plugins con React y la REST API (Elio Rivero, WCBA 2017)
wpargentina
What's hot
(16)
PDF
Affär - inte teknik
Per Åström
PDF
Wordpress 24/7
Антон Еремин
TXT
Config
guest4f11e4
PDF
Gulp.js - alternatywa do Grunta
The Software House
PDF
Automation build
Ivanildo Silva de LIMA
PDF
Discover ServiceWorker
Sandro Paganotti
PDF
C/C++とWebAssemblyを利用したライブラリ開発
祐司 伊藤
PDF
用 Javascript 實現你的想像
Anna Su
PDF
Using Node.js for everything or what it is to write a book about it
Krasimir Tsonev
PDF
PayPal's NemoJS and Applitools Eyes - Visual Testing with Node.js
Applitools
PDF
Progressive Mobile Web Apps
dynamis
PDF
Spring Boot 소개
beom kyun choi
DOCX
Clustering j boss7
UAT
PDF
Modern Mobile Web Apps
dynamis
ODP
Des Templates Heiliger Gral
Alexander Schmidt
PDF
Firefox OS Add-on in 10 minutes
Bob Chao
Affär - inte teknik
Per Åström
Wordpress 24/7
Антон Еремин
Config
guest4f11e4
Gulp.js - alternatywa do Grunta
The Software House
Automation build
Ivanildo Silva de LIMA
Discover ServiceWorker
Sandro Paganotti
C/C++とWebAssemblyを利用したライブラリ開発
祐司 伊藤
用 Javascript 實現你的想像
Anna Su
Using Node.js for everything or what it is to write a book about it
Krasimir Tsonev
PayPal's NemoJS and Applitools Eyes - Visual Testing with Node.js
Applitools
Progressive Mobile Web Apps
dynamis
Spring Boot 소개
beom kyun choi
Clustering j boss7
UAT
Modern Mobile Web Apps
dynamis
Des Templates Heiliger Gral
Alexander Schmidt
Firefox OS Add-on in 10 minutes
Bob Chao
Ad
Task Automatisierung mit Grunt.js
1.
Task Automatisierung mit Grunt.js Erfan
Ebrahimnia | MASSIVE ART | VlbgWebDev
2.
SASS / LESS
kompilieren Bilder optimieren Assets versionieren Tests ausführen JavaScript Linting das wars … Ne Spaß, es kann noch viel mehr CSS minifizieren File Header Kommentar hinzufügen
4.
= Ben Alman
5.
MAKE RAKE Ruby Make
6.
Apache Ant: <?xml version="1.0"
encoding="utf-8"?> <project name="demo" default="prod"> <!-- Concatenate JS files --> <target name="-js.concatenate"> <concat destfile="/Users/3rfan/demo/dist/js/main.build.js" > <fileset dir="/Users/3rfan/demo/js/" includes="main.js"/> </concat> <echo>Finished</echo> </target> </project>
8.
Grunt: module.exports = function
(grunt) { grunt.loadNpmTasks( 'grunt-contrib-uglify' ); grunt.initConfig({ uglify: { dist: { files: { 'dist/main.min.js' ['js/main.js'] : } } } }); grunt.registerTask( 'build', ['uglify']); }
11.
Grunt installieren: npm install
-g grunt-cli
12.
Benötigte Files: Gruntfile.js package.json
13.
package.json { "name": "my-awesome-app", "version": "0.0.0", "devDependencies":
{ "grunt": "~0.4.x" } }
14.
Gruntfile: module.exports = function
(grunt) { grunt.loadNpmTasks( 'grunt-contrib-uglify' ); grunt.initConfig({ uglify: { dist: { files: { 'dist/main.min.js' ['js/main.js'] : } } } }); grunt.registerTask( 'build', ['uglify']); }
15.
Gruntfile: module.exports = function
(grunt) { grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.initConfig({ uglify: { dist: { files: { 'dist/main.min.js': ['js/main.js'] } } } }); grunt.registerTask('build', ['uglify']); }
16.
Gruntfile: module.exports = function
(grunt) { grunt.loadNpmTasks( 'grunt-contrib-uglify' ); grunt.initConfig({ uglify: { dist: { files: { 'dist/main.min.js': ['js/main.js'] } } } }); grunt.registerTask('build', ['uglify']); }
17.
package.json { "name": "my-awesome-app", "version": "0.0.0", "devDependencies":
{ "grunt": "~0.4.x" } }
18.
package.json { "name": "my-awesome-app", "version": "0.0.0", "devDependencies":
{ "grunt": "~0.4.x", "grunt-contrib-uglify": "0.2.7" } }
19.
Gruntfile: module.exports = function
(grunt) { grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.initConfig({ uglify: { dist: { files: { 'dist/main.min.js' ['js/main.js'] : } } } }); grunt.registerTask('build', ['uglify']); }
20.
Gruntfile: module.exports = function
(grunt) { grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.initConfig({ uglify: { dist: { files: { 'dist/main.min.js': ['js/main.js'] } } } }); grunt.registerTask( 'build', ['uglify']); }
21.
Live Coding
23.
console.log('Danke!');
Download