Skip to content

Commit

Permalink
feat(initial): Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorn Walli committed Feb 20, 2020
1 parent 5dbeadc commit 8677c1b
Show file tree
Hide file tree
Showing 77 changed files with 21,306 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .branchlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"branchNameLinter": {
"prefixes": ["feature", "hotfix", "release"],
"suggestions": {
"features": "feature",
"feat": "feature",
"fix": "hotfix",
"releases": "release"
},
"banned": ["wip"],
"skip": ["skip-ci"],
"disallowed": ["master", "develop", "staging"],
"seperator": "/",
"msgBranchBanned": "Branches with the name \"%s\" are not allowed.",
"msgBranchDisallowed": "Pushing to \"%s\" is not allowed, use git-flow.",
"msgPrefixNotAllowed": "Branch prefix \"%s\" is not allowed.",
"msgPrefixSuggestion": "Instead of \"%s\" try \"%s\".",
"msgSeperatorRequired": "Branch \"%s\" must contain a seperator \"%s\"."
}
}
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Common
node_modules
dist
.nuxt
coverage
reports

# Plugin
lib/plugin.js
lib/worker/plugin.js
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
},
extends: [
'@nuxtjs'
],
rules: {
"vue/name-property-casing": [
"error",
"PascalCase"
],
"vue/component-name-in-template-casing": [
"error",
"kebab-case",
{
"registeredComponentsOnly": true,
"ignores": []
}
]
}
}
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules
*.iml
.idea
*.log*
.nuxt
.vscode/settings.json
!.vscode/launch.json
.DS_Store
coverage
dist
reports
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules/*
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.1.0
35 changes: 35 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Project Changelog"
}
],
[
"@semantic-release/exec",
{
"verifyReleaseCmd": "echo '{\"version\": \"${nextRelease.version}\", \"branch\": \"${options.branch}\", \"date\": \"${Date.now()}\"}' > release.json"
}
],
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"CHANGELOG_PROJECT.md",
"package.json",
"package-lock.json",
"npm-shrinkwrap.json"
]
}
],
[
"@semantic-release/github"
]
]
}
10 changes: 10 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Common
node_modules
dist
.nuxt
coverage
reports

# Files
**/*.js
lib/font-face.css
10 changes: 10 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": [
"stylelint-config-standard",
"stylelint-config-recess-order"
],
"ignoreFiles": [
"./**/*.js"
],
"rules": {}
}
48 changes: 48 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
language: node_js
branches:
except:
- /^v\d+\.\d+\.\d+$/
cache:
npm: true
directories:
- dist
- reports
jobs:
include:
- stage: prepare cache
name: install
before_install:
- rm -rf dist reports
install:
- npm i
- stage: website
name: build
script:
# - echo $TRAVIS_PULL_REQUEST_BRANCH
# - echo $TRAVIS_BRANCH
# - echo $TRAVIS_COMMIT
# - echo $TRAVIS_PULL_REQUEST_SHA
- if [ -z "$TRAVIS_PULL_REQUEST_BRANCH" ]; then export PT_BRANCH=$TRAVIS_BRANCH; else export PT_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH; fi
- if [ -z "$TRAVIS_PULL_REQUEST_SHA" ]; then export PT_COMMIT=$TRAVIS_COMMIT; else export PT_COMMIT=$TRAVIS_PULL_REQUEST_SHA; fi
# - echo $PT_COMMIT
# - echo $PT_BRANCH
- npm run build --base=/nuxt-custom-elements/
- stage: deploy
if: branch = master
install:
- npm i semantic-release @semantic-release/exec @semantic-release/git @semantic-release/changelog --no-save
script:
- npx semantic-release --provider=github
- mkdir gh-pages gh-pages/reports
- cp -R dist/nuxt-custom-elements/* gh-pages/
- cp -R reports/* gh-pages/reports/
- touch gh-pages/.nojekyll
deploy:
provider: pages
cleanup: false
keep_history: false
github_token: $GITHUB_TOKEN
local_dir: gh-pages/
on:
branch: master
edge: true
36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug (build)",
"runtimeVersion": "12.1.0",
"runtimeArgs": [
"--inspect"
],
"program": "${workspaceFolder}/node_modules/.bin/nuxt",
"outputCapture": "std",
"args": [
"build",
"--config-file",
"example/nuxt.config.js"
]
},
{
"type": "node",
"request": "launch",
"name": "Debug (nuxt)",
"runtimeVersion": "12.1.0",
"runtimeArgs": [
"--inspect"
],
"program": "${workspaceFolder}/node_modules/.bin/nuxt",
"outputCapture": "std",
"args": [
"--config-file",
"example/nuxt.config.js"
]
}
]
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Thorn Walli <thorn.walli@grabarzundpartner.de>

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.
Loading

0 comments on commit 8677c1b

Please sign in to comment.