remove bower

This commit is contained in:
Riku Rouvila
2015-07-08 20:33:01 +03:00
parent 7ed49d7818
commit 57cc7be367
4 changed files with 5 additions and 27 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,5 @@
npm-debug.log
node_modules
bower_components
public
.DS_Store
rev-manifest.json

View File

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

View File

@@ -1,17 +0,0 @@
{
"name": "gulp-template",
"version": "0.0.0",
"authors": [
"Riku Rouvila <riku.rouvila@gmail.com>"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
}
}

View File

@@ -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"
]
}