diff --git a/README.md b/README.md index f94aebe..6d80175 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ # [Clavi](http://github.com/krushndayshmookh/clavi) ### clavi-auto - automated build repository -HIGHLY EXPERIMENTAL \ No newline at end of file +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 +~~~ diff --git a/build/www/index.html b/build/www/index.html new file mode 100644 index 0000000..a925aea --- /dev/null +++ b/build/www/index.html @@ -0,0 +1 @@ +<!DOCTYPE html><html><head><title>Hello</title></head><body><p>Hello World!</p></body></html> diff --git a/build/www/pages/index.html b/build/www/pages/index.html new file mode 100644 index 0000000..a925aea --- /dev/null +++ b/build/www/pages/index.html @@ -0,0 +1 @@ +<!DOCTYPE html><html><head><title>Hello</title></head><body><p>Hello World!</p></body></html> diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..655a422 --- /dev/null +++ b/gulpfile.js @@ -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']); diff --git a/package-lock.json b/package-lock.json index 0ab706f..2a992e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -471,6 +471,12 @@ "integrity": "sha1-VxzkWSjdQK9lFPxAEYZgFsE4RbQ=", "dev": true }, + "gulp-pug": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/gulp-pug/-/gulp-pug-3.3.0.tgz", + "integrity": "sha1-RpgsFDnAlMNgVC7YulyILTu3Ec8=", + "dev": true + }, "gulp-util": { "version": "3.0.8", "resolved": "https://registry.npmjs.org/gulp-util/-/gulp-util-3.0.8.tgz", diff --git a/package.json b/package.json index a449242..f994ae6 100644 --- a/package.json +++ b/package.json @@ -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" + } } diff --git a/src/index.pug b/src/index.pug new file mode 100644 index 0000000..0a6bfef --- /dev/null +++ b/src/index.pug @@ -0,0 +1,6 @@ +doctype html +html + head + title Hello + body + p Hello World! diff --git a/src/pages/index.pug b/src/pages/index.pug new file mode 100644 index 0000000..0a6bfef --- /dev/null +++ b/src/pages/index.pug @@ -0,0 +1,6 @@ +doctype html +html + head + title Hello + body + p Hello World!