mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-03-10 16:02:44 +00:00
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,5 @@
|
|||||||
npm-debug.log
|
npm-debug.log
|
||||||
node_modules
|
node_modules
|
||||||
bower_components
|
|
||||||
public
|
public
|
||||||
.DS_Store
|
.DS_Store
|
||||||
rev-manifest.json
|
rev-manifest.json
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
## CLI Commands
|
## CLI Commands
|
||||||
* npm install
|
* npm install
|
||||||
* Installs server-side dependencies from NPM and client-side dependencies from Bower
|
* Installs server-side dependencies from npm
|
||||||
* npm start
|
* npm start
|
||||||
* Compiles your files, starts watching files for changes, serves static files to port 9001
|
* Compiles your files, starts watching files for changes, serves static files to port 9001
|
||||||
* npm run build
|
* 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.
|
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
|
#### Dependencies
|
||||||
All dependencies are meant to be installed with **bower** or with **npm**.
|
All dependencies are meant to be installed with **npm**.
|
||||||
* JavaScript-files from both **bower_components** and **node_modules** can be *require()*'d in client-side modules.
|
* 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 **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'`
|
* 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/**/*.*', 'bower_components/bootstrap/fonts*/*.*']` *(notice the asterisk after 'fonts'? It makes gulp copy the whole directory instead of just the files inside of it)*
|
* 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
|
## 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",
|
"license": "MIT",
|
||||||
"main": "gulpfile.js",
|
"main": "gulpfile.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublish": "bower install",
|
|
||||||
"start": "gulp",
|
"start": "gulp",
|
||||||
"build": "gulp build",
|
"build": "gulp build",
|
||||||
"test": "mocha src/**/__tests__/*.js --compilers js:babel/register --require test/test-helper"
|
"test": "mocha src/**/__tests__/*.js --compilers js:babel/register --require test/test-helper"
|
||||||
@@ -21,12 +20,9 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel": "^5.6.14",
|
"babel": "^5.6.14",
|
||||||
"babelify": "^6.1.1",
|
"babelify": "^6.1.1",
|
||||||
"bower": "~1.3.5",
|
|
||||||
"browser-sync": "^2.7.2",
|
"browser-sync": "^2.7.2",
|
||||||
"browserify": "^10.2.1",
|
"browserify": "^10.2.1",
|
||||||
"chai": "^3.0.0",
|
"chai": "^3.0.0",
|
||||||
"deamdify": "^0.1.1",
|
|
||||||
"debowerify": "~0.9.1",
|
|
||||||
"gulp": "~3.8.1",
|
"gulp": "~3.8.1",
|
||||||
"gulp-autoprefixer": "1.0.1",
|
"gulp-autoprefixer": "1.0.1",
|
||||||
"gulp-duration": "0.0.0",
|
"gulp-duration": "0.0.0",
|
||||||
@@ -47,9 +43,7 @@
|
|||||||
},
|
},
|
||||||
"browserify": {
|
"browserify": {
|
||||||
"transform": [
|
"transform": [
|
||||||
"babelify",
|
"babelify"
|
||||||
"debowerify",
|
|
||||||
"deamdify"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user