Skip to content

Commit

Permalink
Added gulpfile and preliminary build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
krushndayshmookh committed Jun 6, 2017
1 parent c41e36f commit aa1e395
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 27 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# [Clavi](http://github.com/krushndayshmookh/clavi)
### clavi-auto - automated build repository
HIGHLY EXPERIMENTAL
HIGHLY EXPERIMENTAL

### Instructions
You need to have ~~nodejs~~, ~~npm~~ and ~~git~~ installed.

~~~shell
# clone the repo:
git clone https://github.com/krushndayshmookh/clavi-auto.git

# install dependencies:
npm install

# compile html files:
npm run-script buildhtml
~~~
1 change: 1 addition & 0 deletions build/www/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html><head><title>Hello</title></head><body><p>Hello World!</p></body></html>
1 change: 1 addition & 0 deletions build/www/pages/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html><head><title>Hello</title></head><body><p>Hello World!</p></body></html>
13 changes: 13 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var gulp = require('gulp');
var pug = require('gulp-pug');



gulp.task('buildhtml', function () {
return gulp.src('src/**/*.pug')
.pipe(pug())
.pipe(gulp.dest('build/www'))
});


gulp.task('default', ['buildhtml']);
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 30 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
{
"name": "clavi",
"version": "0.1.0",
"description": "Your college on your palm.",
"main": "index.js",
"scripts": {
"test": "test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/krushndayshmookh/clavi-auto.git"
},
"keywords": [
"clavi"
],
"author": "Krushn Dayshmookh",
"license": "MIT",
"bugs": {
"url": "https://github.com/krushndayshmookh/clavi-auto/issues"
},
"homepage": "https://github.com/krushndayshmookh/clavi-auto#readme",
"dependencies": {},
"devDependencies": {
"bower": "^1.8.0",
"gulp": "^3.9.1",
"pug": "^2.0.0-rc.2"
}
"name": "clavi",
"version": "0.1.0",
"description": "Your college on your palm.",
"main": "index.js",
"scripts": {
"test": "test",
"buildhtml": "gulp buildhtml",
"build": "true",
"postinstall": "bower install"
},
"repository": {
"type": "git",
"url": "git+https://github.com/krushndayshmookh/clavi-auto.git"
},
"keywords": [
"clavi"
],
"author": "Krushn Dayshmookh",
"license": "MIT",
"bugs": {
"url": "https://github.com/krushndayshmookh/clavi-auto/issues"
},
"homepage": "https://github.com/krushndayshmookh/clavi-auto#readme",
"dependencies": {},
"devDependencies": {
"bower": "^1.8.0",
"gulp": "^3.9.1",
"gulp-pug": "^3.3.0",
"pug": "^2.0.0-rc.2"
}
}
6 changes: 6 additions & 0 deletions src/index.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
doctype html
html
head
title Hello
body
p Hello World!
6 changes: 6 additions & 0 deletions src/pages/index.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
doctype html
html
head
title Hello
body
p Hello World!

0 comments on commit aa1e395

Please sign in to comment.