Skip to content

Commit

Permalink
feat: initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateu Aguiló Bosch committed Jun 9, 2018
1 parent 56255b6 commit c013111
Show file tree
Hide file tree
Showing 22 changed files with 7,209 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: true,
},
shippedProposals: true,
},
],
'@babel/preset-flow',
],
};
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

# This is the top-most .editorconfig file; do not search in parent directories.
root = true

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

# Markdown.
[*.md]
trim_trailing_whitespace = false
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"login": "e0ipso",
"id": 1140906,
"avatar_url": "https://avatars0.githubusercontent.com/u/1140906?s=24",
"gravatar_id": "",
"url": "https://api.github.com/users/e0ipso",
"html_url": "https://github.com/e0ipso",
"followers_url": "https://api.github.com/users/e0ipso/followers",
"following_url": "https://api.github.com/users/e0ipso/following{/other_user}",
"gists_url": "https://api.github.com/users/e0ipso/gists{/gist_id}",
"starred_url": "https://api.github.com/users/e0ipso/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/e0ipso/subscriptions",
"organizations_url": "https://api.github.com/users/e0ipso/orgs",
"repos_url": "https://api.github.com/users/e0ipso/repos",
"events_url": "https://api.github.com/users/e0ipso/events{/privacy}",
"received_events_url": "https://api.github.com/users/e0ipso/received_events",
"type": "User",
"site_admin": false,
"name": "Mateu Aguiló Bosch",
"company": "Lullabot",
"blog": "http://about.me/e0ipso",
"location": "Ca'n Picafort, Mallorca, Spain",
"email": null,
"hireable": null,
"bio": "Engineer and programmer focused on online applications.",
"public_repos": 66,
"public_gists": 35,
"followers": 83,
"following": 44,
"created_at": "2011-10-20T14:27:43Z",
"updated_at": "2018-05-29T16:13:36Z"
}
]
73 changes: 73 additions & 0 deletions .emdaer/README.emdaer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!--emdaer-p
- '@emdaer/plugin-import'
- path: .emdaer/docs/title.md
runEmdaer: false
-->

<!--emdaer-p
- '@emdaer/plugin-import'
- path: .emdaer/docs/header.md
runEmdaer: false
-->

<!--emdaer-t
- '@emdaer/transform-table-of-contents'
-->
<!--emdaer-p
- '@emdaer/plugin-shields'
- shields:
- alt: 'Travis'
image: 'travis/contentacms/contentajs.svg'
link: 'https://travis-ci.org/contentacms/contentajs/'
style: 'flat-square'
- alt: 'Coverage'
image: 'coveralls/github/contentacms/contentajs.svg'
link: 'https://coveralls.io/github/contentacms/contentajs/'
style: 'flat-square'
- alt: 'Documented with emdaer'
image: 'badge/📓-documented%20with%20emdaer-F06632.svg'
link: 'https://github.com/emdaer/emdaer'
style: 'flat-square'
-->

<!--emdaer-p
- '@emdaer/plugin-import'
- path: .emdaer/docs/why.md
runEmdaer: false
-->

<!--emdaer-p
- '@emdaer/plugin-import'
- path: .emdaer/docs/features.md
runEmdaer: false
-->

<!--emdaer-p
- '@emdaer/plugin-import'
- path: .emdaer/docs/install.md
runEmdaer: true
-->

<!--emdaer-p
- '@emdaer/plugin-import'
- path: .emdaer/docs/notes.md
runEmdaer: false
-->

## Contributors
<!--emdaer-p
- '@emdaer/plugin-contributors-details-github'
-->

## License
<!--emdaer-p
- '@emdaer/plugin-license-reference'
-->

<!--emdaer-t
- '@emdaer/transform-prettier'
- options:
proseWrap: preserve
singleQuote: true
trailingComma: es5
-->
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# node_modules ignored by default

# Ignore generated files
__coverage__
scratch
lib
flow-typed
!.babelrc.js
!.eslintrc.js
12 changes: 12 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
parser: 'babel-eslint',
env: { node: true },
plugins: ['prettier', 'flowtype'],
extends: ['problems', 'plugin:prettier/recommended'],
overrides: [
{
files: ['**/*.test.js'],
env: { jest: true },
},
],
};
14 changes: 14 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[ignore]
.*/node_modules/config-chain/test/broken.json
.*/node_modules/findup/test/fixture/.*
.*/node_modules/npmconf/test/fixtures/.*

[include]

[libs]

[options]
emoji=true
module.ignore_non_literal_requires=true

[lints]
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# package directories
/lib
/config/local.yml
/config/local.yaml
node_modules
jspm_packages

# Serverless directories
.serverless

# Jest data
__coverage__

# Local development
.vscode
.idea
16 changes: 16 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
!lib
__coverage__
scratch
src
util
.babelrc
.emdaer
.eslintrc.js
.eslintignore
.nvmrc
.travis.yml
*.config.js
.flowconfig
.gitignore
flow-typed
*.test.js
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/carbon
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# node_modules ignored by default

# Ignore generated files
__coverage__
scratch
lib
flow-typed
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
language: node_js
cache:
directories:
- node_modules
- .tmp
notifications:
email: false
before_install:
- git fetch --tags

stages:
- name: test
# require the event type to not be a semantic release tag.
if: NOT tag =~ ^v\d+\.\d+\.\d+$

jobs:
include:
-
stage: test
node_js: 'lts/carbon'
script:
- npm run lint
- npm run test-ci
# Report coverage to coveralls.io
- cat ./__coverage__/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- rimraf ./__coverage__

-
stage: deploy
if: branch = master
# Semantic release will fail if it's not using node 8.
node_js: 'lts/carbon'
script: npm run semantic-release
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mateu Aguiló Bosch <e0ipso>
6 changes: 6 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: ['@commitlint/config-angular'],
rules: {
'header-max-length': [2, 'always', 100],
},
};
Loading

0 comments on commit c013111

Please sign in to comment.