Browse Source

clean up repo

pull/1/head
Cian Butler 4 years ago
parent
commit
ff5b368c2f
Signed by: butlerx GPG Key ID: B37CA765BAA89170
9 changed files with 1 additions and 3387 deletions
  1. +1
    -0
      .npmignore
  2. +0
    -3
      package/.eslintignore
  3. +0
    -51
      package/.eslintrc
  4. +0
    -55
      package/.npmignore
  5. +0
    -9
      package/LICENSE
  6. +0
    -44
      package/README.md
  7. +0
    -51
      package/package.json
  8. +0
    -160
      package/schema.json
  9. +0
    -3014
      package/yarn.lock

+ 1
- 0
.npmignore View File

@@ -1,3 +1,4 @@
docs
.babelrc
.eslint*
.flow*


+ 0
- 3
package/.eslintignore View File

@@ -1,3 +0,0 @@
node_modules/
lib/
fixture/

+ 0
- 51
package/.eslintrc View File

@@ -1,51 +0,0 @@
{
"parser": "babel-eslint",
"plugins": [
"flowtype"
],
"extends": [
"standard",
"plugin:flowtype/recommended"
],
"env": {
"es6": true,
"node": true
},
"rules": {
"flowtype/no-types-missing-file-annotation": 0,
"no-multi-spaces": 0,
"comma-dangle": [
"error",
"always-multiline"
],
"key-spacing": [
"error",
{
"multiLine": {
"beforeColon": false,
"afterColon": true
},
"align": {
"beforeColon": false,
"afterColon": true,
"on": "colon",
"mode": "strict"
}
}
],
"semi": [
"error",
"always"
],
"no-var": [
"error"
],
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
]
}
}

+ 0
- 55
package/.npmignore View File

@@ -1,55 +0,0 @@
.babelrc
.elint*
.flow*
.git*
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pids
*.pid
*.seed
*.pid.lock
lib-cov
coverage
.nyc_output
.grunt
src
bower_components
.lock-wscript
build/Release
node_modules/
jspm_packages/
typings/
.npm
.eslintcache
.node_repl_history
*.tgz
.yarn-integrity
.env
.dropbox
.dropbox.attr
.dropbox.cache
*~
.fuse_hidden*
.directory
.Trash-*
.nfs*
*.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

+ 0
- 9
package/LICENSE View File

@@ -1,9 +0,0 @@
MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 0
- 44
package/README.md View File

@@ -1,44 +0,0 @@
# Events Page

Static event page generator using handlebar.js

## Installation

yarn add event-page

## Usage

To build your page, from Command line run:

event-gen

or from node

```javascript
const event = ('event-page');

event({
title: "Amazing event",
source: "source",
output: {
dir: "public",
css: "main.css",
}
schema: "./schema.json",
menu: [{
title: "Home",
url: ""
}, {
"title": "Speaker List",
"url": "Speakers"
}, {
"title": "Call For Talks",
"url": "CFT"
}],
theme: 'theme',
helper: 'helpers',
templates: 'templates',
css: 'main.scss',
static: [ 'js', 'fonts', 'images'],
});
```

+ 0
- 51
package/package.json View File

@@ -1,51 +0,0 @@
{
"name": "event-page",
"version": "1.0.8",
"description": "simple static site generator for events",
"main": "lib/generate.js",
"bin": {
"event-gen": "lib/cli.js"
},
"author": "butlerx",
"license": "MIT",
"scripts": {
"lint": "eslint .",
"fix": "eslint . --fix",
"build": "babel src --source-maps --out-dir lib",
"build:watch": "babel src --watch --source-maps --out-dir lib",
"prepublish": "yarn run build"
},
"dependencies": {
"command-line-args": "^4.0.5",
"fs-extra": "^3.0.1",
"glob": "^7.1.2",
"handlebars": "^4.0.10",
"json-matter": "^1.0.2",
"jsonschema": "^1.1.1",
"lodash": "^4.17.4",
"marked": "^0.3.6",
"node-sass": "^4.5.3"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "6.24.1",
"babel-eslint": "^7.2.3",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-es6-promise": "1.1.1",
"babel-plugin-syntax-async-functions": "6.13.0",
"babel-plugin-transform-async-to-generator": "6.24.1",
"babel-plugin-transform-object-assign": "6.22.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-flow": "^6.23.0",
"es6-promise": "^4",
"eslint": "3.19.0",
"eslint-config-standard": "10.2.1",
"eslint-plugin-flowtype": "^2.33.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-json": "^1.2.0",
"eslint-plugin-node": "^4.2.2",
"eslint-plugin-promise": "3.5.0",
"eslint-plugin-standard": "3.0.1",
"flow-bin": "^0.47.0"
}
}

+ 0
- 160
package/schema.json View File

@@ -1,160 +0,0 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"default": "Home"
},
"template": {
"type": "string",
"minLength": 1,
"default": "schedule"
},
"location": {
"type": "string",
"minLength": 1,
"default": "Dublin City University"
},
"start": {
"type": "integer",
"multipleOf": 1,
"maximum": 10000,
"minimum": 1,
"exclusiveMaximum": false,
"exclusiveMinimum": false,
"default": 15
},
"end": {
"type": "integer",
"multipleOf": 1,
"maximum": 10000,
"minimum": 1,
"exclusiveMaximum": false,
"exclusiveMinimum": false,
"default": 29
},
"month": {
"type": "string",
"minLength": 1,
"default": "March"
},
"year": {
"type": "integer",
"multipleOf": 1,
"maximum": 10000,
"minimum": 1,
"exclusiveMaximum": false,
"exclusiveMinimum": false,
"default": 2017
},
"live": {
"type": "string",
"minLength": 1,
"default": "2017-03-15T17:00:00"
},
"archive": {
"type": "string",
"minLength": 1,
"default": "false"
},
"video": {
"type": "string",
"minLength": 1,
"default": "https://www.youtube.com/embed/videoseries?list=PLPaLJSHTDMFhbDmyUeik6IHXmzVtWQQxu"
},
"days": {
"type": "array",
"uniqueItems": false,
"items": {
"type": "object",
"properties": {
"day": {
"type": "string",
"minLength": 1,
"default": "Wednesday 29th"
},
"description": {
"type": "string",
"minLength": 1,
"default": "Mobile Development"
},
"events": {
"type": "array",
"uniqueItems": false,
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"default": "TBA"
},
"by": {
"type": "string",
"minLength": 1,
"default": "TBA"
},
"time": {
"type": "string",
"minLength": 1,
"default": "17:00"
},
"place": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"default": "LG26"
},
"map": {
"type": "string",
"minLength": 1,
"default": "Somewhere in DCU"
}
},
"required": [
"id",
"map"
]
},
"description": {
"type": "string",
"minLength": 1,
"default": "TBA"
}
},
"required": [
"name",
"by",
"time",
"place",
"description"
]
}
}
},
"required": [
"day",
"description",
"events"
]
}
}
},
"required": [
"title",
"template",
"location",
"start",
"end",
"month",
"year",
"live",
"archive",
"video",
"days"
]
}

+ 0
- 3014
package/yarn.lock
File diff suppressed because it is too large
View File


Loading…
Cancel
Save