diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/README.md b/README.md new file mode 100644 index 0000000..e2b37db --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Enuma Project Scaffoldings + +This repo contains various scaffoldings for starting different kinds of +project. + +The command to download a template has the following syntax: + + npx degit enumatech/scaffolding/ + +For example, to download the Vuetify prototyping template: + + npx degit enumatech/scaffolding/vuetify-prototype new-project diff --git a/vuetify-prototype/bin/copy-assets b/vuetify-prototype/bin/copy-assets new file mode 100755 index 0000000..cd25c45 --- /dev/null +++ b/vuetify-prototype/bin/copy-assets @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +set -o errexit +set -o nounset +set -o pipefail + +echo 'Copying assets to static folder...' + +mkdir static/js +echo 'Created static/js folder' + +cp node_modules/vue/dist/vue.{js,min.js} static/js/ +echo 'Copied Vue' + +cp node_modules/vue-router/dist/vue-router.{js,min.js} static/js/ +echo 'Copied Vue Router' + +cp node_modules/http-vue-loader/src/httpVueLoader.js static/js/ +echo 'Copied Http Vue Loader' + +cp node_modules/vuetify/dist/vuetify.{js,js.map,min.js} static/js/ +cp node_modules/vuetify/dist/vuetify.{css,css.map,min.css} static/css/ +echo 'Copied Vuetify' + +cp node_modules/@mdi/font/css/* static/css/ +cp node_modules/@mdi/font/fonts/* static/fonts/ +echo 'Copied material design fonts' \ No newline at end of file diff --git a/vuetify-prototype/components/Home.vue b/vuetify-prototype/components/Home.vue new file mode 100644 index 0000000..eacb689 --- /dev/null +++ b/vuetify-prototype/components/Home.vue @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/vuetify-prototype/index.html b/vuetify-prototype/index.html new file mode 100644 index 0000000..fd91fd3 --- /dev/null +++ b/vuetify-prototype/index.html @@ -0,0 +1,37 @@ + + + + + + + + Vue Prototype + + + + + + + + + + + + +
+ +
+ + + + + + \ No newline at end of file diff --git a/vuetify-prototype/package-lock.json b/vuetify-prototype/package-lock.json new file mode 100644 index 0000000..f9dfc20 --- /dev/null +++ b/vuetify-prototype/package-lock.json @@ -0,0 +1,38 @@ +{ + "name": "vue-prototype", + "version": "0.1.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@mdi/font": { + "version": "4.9.95", + "resolved": "https://registry.npmjs.org/@mdi/font/-/font-4.9.95.tgz", + "integrity": "sha512-m2sbAs+SMwRnWpkMriBxEulwuhmqRyh6X+hdOZlqSxYZUM2C2TaDnQ4gcilzdoAgru2XYnWViZ/xPuSDGgRXVw==", + "dev": true + }, + "http-vue-loader": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/http-vue-loader/-/http-vue-loader-1.4.1.tgz", + "integrity": "sha512-76YWtwNlyMVg6hmq8slUaadeBTXSPXHO2NrU2+tdZ8gMk0qWRYiI+NK/Qul6D5za5gzH1r6SmDrgsy4WTtECpA==", + "dev": true + }, + "vue": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.11.tgz", + "integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ==", + "dev": true + }, + "vue-router": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.1.5.tgz", + "integrity": "sha512-BszkPvhl7I9h334GjckCh7sVFyjTPMMJFJ4Bsrem/Ik+B/9gt5tgrk8k4gGLO4ZpdvciVdg7O41gW4DisQWurg==", + "dev": true + }, + "vuetify": { + "version": "2.2.12", + "resolved": "https://registry.npmjs.org/vuetify/-/vuetify-2.2.12.tgz", + "integrity": "sha512-rtNug+2I45p/ahEeY54nWM/8UyJ1LouS5CpwWjb6JaaMusE3GHD3FBwvb/FMyR+vWZkCxJpLIRfRT0cRpr/QJA==", + "dev": true + } + } +} diff --git a/vuetify-prototype/package.json b/vuetify-prototype/package.json new file mode 100644 index 0000000..674c562 --- /dev/null +++ b/vuetify-prototype/package.json @@ -0,0 +1,15 @@ +{ + "name": "vue-prototype", + "version": "0.1.0", + "private": true, + "scripts": { + "postinstall": "bin/copy-assets" + }, + "devDependencies": { + "@mdi/font": "4.9.95", + "http-vue-loader": "1.4.1", + "vue": "2.6.11", + "vue-router": "3.1.5", + "vuetify": "2.2.12" + } +} diff --git a/vuetify-prototype/router/index.js b/vuetify-prototype/router/index.js new file mode 100644 index 0000000..7d91d93 --- /dev/null +++ b/vuetify-prototype/router/index.js @@ -0,0 +1,16 @@ +Vue.use(VueRouter) + +const routes = [ + { + path: '/', + name: 'home', + component: httpVueLoader('components/Home.vue') + }, +] + +const router = new VueRouter({ +mode: 'history', +routes +}) + +export default router diff --git a/vuetify-prototype/static/css/fonts.css b/vuetify-prototype/static/css/fonts.css new file mode 100644 index 0000000..761ba9e --- /dev/null +++ b/vuetify-prototype/static/css/fonts.css @@ -0,0 +1,59 @@ +/* roboto-100 - latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 100; + src: local('Roboto Thin'), local('Roboto-Thin'), + url('../fonts/roboto-v20-latin-100.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ + url('../fonts/roboto-v20-latin-100.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* roboto-300 - latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + src: local('Roboto Light'), local('Roboto-Light'), + url('../fonts/roboto-v20-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ + url('../fonts/roboto-v20-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* roboto-regular - latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + src: local('Roboto'), local('Roboto-Regular'), + url('../fonts/roboto-v20-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ + url('../fonts/roboto-v20-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* roboto-500 - latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 500; + src: local('Roboto Medium'), local('Roboto-Medium'), + url('../fonts/roboto-v20-latin-500.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ + url('../fonts/roboto-v20-latin-500.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* roboto-700 - latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + src: local('Roboto Bold'), local('Roboto-Bold'), + url('../fonts/roboto-v20-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ + url('../fonts/roboto-v20-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} + +/* roboto-900 - latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 900; + src: local('Roboto Black'), local('Roboto-Black'), + url('../fonts/roboto-v20-latin-900.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ + url('../fonts/roboto-v20-latin-900.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ +} diff --git a/vuetify-prototype/static/fonts/roboto-v20-latin-100.woff b/vuetify-prototype/static/fonts/roboto-v20-latin-100.woff new file mode 100644 index 0000000..7306a7b Binary files /dev/null and b/vuetify-prototype/static/fonts/roboto-v20-latin-100.woff differ diff --git a/vuetify-prototype/static/fonts/roboto-v20-latin-100.woff2 b/vuetify-prototype/static/fonts/roboto-v20-latin-100.woff2 new file mode 100644 index 0000000..a5cc283 Binary files /dev/null and b/vuetify-prototype/static/fonts/roboto-v20-latin-100.woff2 differ diff --git a/vuetify-prototype/static/fonts/roboto-v20-latin-300.woff b/vuetify-prototype/static/fonts/roboto-v20-latin-300.woff new file mode 100644 index 0000000..2f6bdb5 Binary files /dev/null and b/vuetify-prototype/static/fonts/roboto-v20-latin-300.woff differ diff --git a/vuetify-prototype/static/fonts/roboto-v20-latin-300.woff2 b/vuetify-prototype/static/fonts/roboto-v20-latin-300.woff2 new file mode 100644 index 0000000..ef8c883 Binary files /dev/null and b/vuetify-prototype/static/fonts/roboto-v20-latin-300.woff2 differ diff --git a/vuetify-prototype/static/fonts/roboto-v20-latin-500.woff b/vuetify-prototype/static/fonts/roboto-v20-latin-500.woff new file mode 100644 index 0000000..8699258 Binary files /dev/null and b/vuetify-prototype/static/fonts/roboto-v20-latin-500.woff differ diff --git a/vuetify-prototype/static/fonts/roboto-v20-latin-500.woff2 b/vuetify-prototype/static/fonts/roboto-v20-latin-500.woff2 new file mode 100644 index 0000000..6362d7f Binary files /dev/null and b/vuetify-prototype/static/fonts/roboto-v20-latin-500.woff2 differ diff --git a/vuetify-prototype/static/fonts/roboto-v20-latin-700.woff b/vuetify-prototype/static/fonts/roboto-v20-latin-700.woff new file mode 100644 index 0000000..0f14eff Binary files /dev/null and b/vuetify-prototype/static/fonts/roboto-v20-latin-700.woff differ diff --git a/vuetify-prototype/static/fonts/roboto-v20-latin-700.woff2 b/vuetify-prototype/static/fonts/roboto-v20-latin-700.woff2 new file mode 100644 index 0000000..32b25ee Binary files /dev/null and b/vuetify-prototype/static/fonts/roboto-v20-latin-700.woff2 differ diff --git a/vuetify-prototype/static/fonts/roboto-v20-latin-900.woff b/vuetify-prototype/static/fonts/roboto-v20-latin-900.woff new file mode 100644 index 0000000..4d50531 Binary files /dev/null and b/vuetify-prototype/static/fonts/roboto-v20-latin-900.woff differ diff --git a/vuetify-prototype/static/fonts/roboto-v20-latin-900.woff2 b/vuetify-prototype/static/fonts/roboto-v20-latin-900.woff2 new file mode 100644 index 0000000..802499d Binary files /dev/null and b/vuetify-prototype/static/fonts/roboto-v20-latin-900.woff2 differ diff --git a/vuetify-prototype/static/fonts/roboto-v20-latin-regular.woff b/vuetify-prototype/static/fonts/roboto-v20-latin-regular.woff new file mode 100644 index 0000000..69c8825 Binary files /dev/null and b/vuetify-prototype/static/fonts/roboto-v20-latin-regular.woff differ diff --git a/vuetify-prototype/static/fonts/roboto-v20-latin-regular.woff2 b/vuetify-prototype/static/fonts/roboto-v20-latin-regular.woff2 new file mode 100644 index 0000000..1a53701 Binary files /dev/null and b/vuetify-prototype/static/fonts/roboto-v20-latin-regular.woff2 differ