diff --git a/.gitignore b/.gitignore index 5702678..c221633 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,4 @@ typings/ # End of https://www.gitignore.io/api/node +build/ diff --git a/package.json b/package.json index b8a0f07..54a90e9 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,11 @@ "description": "Base Presentation Repository for Reveal.js", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "build-js": "browserify src/index.js -o build/index.js && cp -r node_modules/reveal.js/plugin build/ && cp node_modules/reveal.js/lib/js/head.min.js build/head.min.js", + "build-css": "node-sass src/index.scss build/index.css --source-map-embed", + "build-html": "cp src/index.html build/index.html", + "build": "mkdir -p build && npm run build-js && npm run build-css && npm run build-html", + "start": "tstatic build/" }, "repository": { "type": "git", @@ -17,12 +21,12 @@ }, "homepage": "https://github.com/RealOrangeOne/presentation-base#readme", "devDependencies": { - "browserify": "^14.4.0", - "node-sass": "^4.5.3" + "browserify": "14.4.0", + "node-sass": "4.5.3" }, "dependencies": { - "highlight.js": "^9.12.0", - "reveal.js": "^3.5.0", - "tstatic": "^1.1.0" + "highlight.js": "9.12.0", + "reveal.js": "3.5.0", + "tstatic": "1.1.0" } } diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..6888622 --- /dev/null +++ b/src/index.html @@ -0,0 +1,19 @@ + + +
+