mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-01-26 11:23:58 +00:00
remove bower
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,5 @@
|
||||
npm-debug.log
|
||||
node_modules
|
||||
bower_components
|
||||
public
|
||||
.DS_Store
|
||||
rev-manifest.json
|
||||
|
||||
10
README.md
10
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
|
||||
|
||||
|
||||
17
bower.json
17
bower.json
@@ -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": {
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user