From 57cc7be36731b0246c7b0ecb9879ea59a3db0678 Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Wed, 8 Jul 2015 20:33:01 +0300 Subject: [PATCH] remove bower --- .gitignore | 1 - README.md | 10 +++++----- bower.json | 17 ----------------- package.json | 4 ---- 4 files changed, 5 insertions(+), 27 deletions(-) delete mode 100644 bower.json diff --git a/.gitignore b/.gitignore index 4979fbc..ce30f25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ npm-debug.log node_modules -bower_components public .DS_Store rev-manifest.json diff --git a/README.md b/README.md index 84a9b22..19dc495 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ ## CLI Commands * npm install - * Installs server-side dependencies from NPM and client-side dependencies from Bower + * Installs server-side dependencies from npm * npm start * Compiles your files, starts watching files for changes, serves static files to port 9001 * npm run build @@ -41,10 +41,10 @@ Minification, uglification and other tasks you're expected to run before deployi It should be possible to delete directory completely and after **npm start** or **npm run build** everything should be as they were before the deletion. #### Dependencies -All dependencies are meant to be installed with **bower** or with **npm**. -* JavaScript-files from both **bower_components** and **node_modules** can be *require()*'d in client-side modules. -* CSS files can be [imported](https://learnboost.github.io/stylus/docs/import.html) from **bower_components** and **node_modules** using relative path from the stylus file to the css file e.g `@import '../../bower_components/bootstrap/dist/css/bootstrap.css'` -* You can either create a new gulp task for copying other assets from directories mentioned above or use an array as a value for [assets sources](https://github.com/leonidas/gulp-project-template/blob/master/gulpfile.js#L38) e.g `source: ['./src/assets/**/*.*', 'bower_components/bootstrap/fonts*/*.*']` *(notice the asterisk after 'fonts'? It makes gulp copy the whole directory instead of just the files inside of it)* +All dependencies are meant to be installed with **npm**. +* JavaScript-files from **node_modules** can be *require()*'d in client-side modules. +* CSS files can be [imported](https://learnboost.github.io/stylus/docs/import.html) from **node_modules** using relative path from the stylus file to the css file e.g `@import '../../node_modules/bootstrap/dist/css/bootstrap.css'` +* You can either create a new gulp task for copying other assets from directories mentioned above or use an array as a value for [assets sources](https://github.com/leonidas/gulp-project-template/blob/master/gulpfile.js#L38) e.g `source: ['./src/assets/**/*.*', 'node_modules/bootstrap/fonts*/*.*']` *(notice the asterisk after 'fonts'? It makes gulp copy the whole directory instead of just the files inside of it)* ## Suggested development tools diff --git a/bower.json b/bower.json deleted file mode 100644 index ca2fc99..0000000 --- a/bower.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "gulp-template", - "version": "0.0.0", - "authors": [ - "Riku Rouvila " - ], - "license": "MIT", - "ignore": [ - "**/.*", - "node_modules", - "bower_components", - "test", - "tests" - ], - "dependencies": { - } -} diff --git a/package.json b/package.json index e4cce79..8e7c4eb 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,6 @@ "license": "MIT", "main": "gulpfile.js", "scripts": { - "prepublish": "bower install", "start": "gulp", "build": "gulp build", "test": "mocha src/**/__tests__/*.js --compilers js:babel/register --require test/test-helper" @@ -21,12 +20,10 @@ "devDependencies": { "babel": "^5.6.14", "babelify": "^6.1.1", - "bower": "~1.3.5", "browser-sync": "^2.7.2", "browserify": "^10.2.1", "chai": "^3.0.0", "deamdify": "^0.1.1", - "debowerify": "~0.9.1", "gulp": "~3.8.1", "gulp-autoprefixer": "1.0.1", "gulp-duration": "0.0.0", @@ -48,7 +45,6 @@ "browserify": { "transform": [ "babelify", - "debowerify", "deamdify" ] }