Skip to content

Commit 2d47112

Browse files
committed
feat(core): initial commit
0 parents  commit 2d47112

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+10413
-0
lines changed

.babelignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/**/*

.babelrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"presets": [
3+
"@babel/preset-env"
4+
],
5+
"plugins": [
6+
"@babel/plugin-proposal-object-rest-spread"
7+
],
8+
"retainLines": true
9+
}

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.nyc_output
2+
coverage
3+
dist
4+
node_modules

.eslintrc

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true,
5+
"es6": true
6+
},
7+
"parser": "babel-eslint",
8+
"plugins": [
9+
"babel"
10+
],
11+
"extends": [
12+
"eslint:recommended"
13+
],
14+
"rules": {
15+
"comma-dangle": [1, "always-multiline"],
16+
"no-cond-assign": [1, "except-parens"],
17+
"no-console": 0,
18+
"no-constant-condition": 1,
19+
"no-control-regex": 1,
20+
"no-debugger": 1,
21+
"no-dupe-args": 1,
22+
"no-dupe-keys": 1,
23+
"no-duplicate-case": 0,
24+
"no-empty-character-class": 1,
25+
"no-empty": 1,
26+
"no-ex-assign": 1,
27+
"no-extra-boolean-cast": 1,
28+
"no-extra-parens": 0,
29+
"no-extra-semi": 1,
30+
"no-func-assign": 1,
31+
"no-inner-declarations": [1, "functions"],
32+
"no-invalid-regexp": 1,
33+
"no-irregular-whitespace": 1,
34+
"no-negated-in-lhs": 1,
35+
"no-obj-calls": 1,
36+
"no-regex-spaces": 1,
37+
"no-reserved-keys": 0,
38+
"no-sparse-arrays": 1,
39+
"no-unexpected-multiline": 1,
40+
"no-unreachable": 1,
41+
"use-isnan": 1,
42+
"valid-jsdoc": 1,
43+
"valid-typeof": 1,
44+
"accessor-pairs": 0,
45+
"block-scoped-var": 0,
46+
"complexity": 0,
47+
"consistent-return": 1,
48+
"curly": [1, "all"],
49+
"default-case": 0,
50+
"dot-notation": [1, { "allowKeywords": true, "allowPattern": "" }],
51+
"dot-location": [1, "property"],
52+
"eqeqeq": 1,
53+
"guard-for-in": 0,
54+
"no-alert": 1,
55+
"no-caller": 1,
56+
"no-div-regex": 1,
57+
"no-else-return": 1,
58+
"no-eq-null": 0,
59+
"no-eval": 1,
60+
"no-extend-native": 1,
61+
"no-extra-bind": 1,
62+
"no-fallthrough": 0,
63+
"no-floating-decimal": 1,
64+
"no-implied-eval": 1,
65+
"no-iterator": 1,
66+
"no-labels": 1,
67+
"no-lone-blocks": 1,
68+
"no-loop-func": 1,
69+
"no-multi-spaces": 1,
70+
"no-multi-str": 1,
71+
"no-native-reassign": 1,
72+
"no-new-func": 1,
73+
"no-new-wrappers": 1,
74+
"no-new": 1,
75+
"no-octal-escape": 1,
76+
"no-octal": 1,
77+
"no-param-reassign": 0,
78+
"no-process-env": 0,
79+
"no-proto": 1,
80+
"no-redeclare": 1,
81+
"no-return-assign": 0,
82+
"no-script-url": 1,
83+
"no-self-compare": 1,
84+
"no-sequences": 1,
85+
"no-throw-literal": 1,
86+
"no-unused-expressions": 0,
87+
"no-void": 0,
88+
"no-warning-comments": [1, { "terms": ["todo", "tofix"], "location": "start" }],
89+
"no-with": 1,
90+
"radix": 1,
91+
"vars-on-top": 1,
92+
"wrap-iife": [1, "inside"],
93+
"yoda": [1, "never"],
94+
95+
"strict": 1,
96+
97+
"no-catch-shadow": 0,
98+
"no-delete-var": 1,
99+
"no-label-var": 1,
100+
"no-shadow-restricted-names": 1,
101+
"no-shadow": 1,
102+
"no-undef-init": 1,
103+
"no-undef": 1,
104+
"no-undefined": 1,
105+
"no-unused-vars": [1, { "vars": "local", "args": "after-used" }],
106+
"no-use-before-define": 1,
107+
108+
"handle-callback-err": 1,
109+
"no-mixed-requires": 1,
110+
"no-new-require": 1,
111+
"no-path-concat": 1,
112+
"no-process-exit": 1,
113+
"no-restricted-modules": [1, ""],
114+
"no-sync": 0,
115+
116+
"array-bracket-spacing": [1, "never"],
117+
"brace-style": [1, "1tbs", { "allowSingleLine": true }],
118+
"camelcase": [1, { "properties": "always" }],
119+
"comma-spacing": [1, { "before": false, "after": true }],
120+
"comma-style": [1, "last"],
121+
"computed-property-spacing": 0,
122+
"consistent-this": 0,
123+
"eol-last": 1,
124+
"func-names": 0,
125+
"func-style": 0,
126+
"indent": [1, 2],
127+
"key-spacing": [1, { "beforeColon": false, "afterColon": true }],
128+
"linebreak-style": 0,
129+
"max-nested-callbacks": [0, 3],
130+
"new-cap": 0,
131+
"new-parens": 1,
132+
"newline-after-var": 0,
133+
"no-array-constructor": 1,
134+
"no-continue": 1,
135+
"no-inline-comments": 0,
136+
"no-lonely-if": 1,
137+
"no-mixed-spaces-and-tabs": 1,
138+
"no-multiple-empty-lines": [1, { "max": 2 }],
139+
"no-nested-ternary": 0,
140+
"no-new-object": 1,
141+
"no-spaced-func": 1,
142+
"no-ternary": 0,
143+
"no-trailing-spaces": 1,
144+
"no-underscore-dangle": 0,
145+
"no-unneeded-ternary": 1,
146+
"object-curly-spacing": 0,
147+
"one-var": [1, "never"],
148+
"operator-assignment": 0,
149+
"padded-blocks": [0, "never"],
150+
"quote-props": [0, "as-needed"],
151+
"quotes": [1, "single"],
152+
"semi-spacing": [1, { "before": false, "after": true }],
153+
"semi": [1, "always"],
154+
"sort-vars": 0,
155+
"space-after-keywords": 0,
156+
"space-before-blocks": [1, "always"],
157+
"space-before-function-paren": [1, { "anonymous": "always", "named": "never", "asyncArrow": "always" }],
158+
"space-in-parens": [1, "never"],
159+
"space-infix-ops": 1,
160+
"keyword-spacing": 1,
161+
"space-unary-ops": 0,
162+
"spaced-comment": [1, "always"],
163+
"wrap-regex": 1,
164+
165+
"constructor-super": 1,
166+
"generator-star-spacing": 0,
167+
"no-this-before-super": 1,
168+
"no-var": 1,
169+
"object-shorthand": 0,
170+
"prefer-const": 1,
171+
172+
"max-depth": [0, 3],
173+
"max-len": [1, { "code": 120, "ignoreTemplateLiterals": true, "ignoreStrings": true }],
174+
"max-params": 0,
175+
"max-statements": 0,
176+
"no-bitwise": 1,
177+
"no-plusplus": 1
178+
}
179+
}

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Packages #
2+
############
3+
# it's better to unpack these files and commit the raw source
4+
# git has its own built in compression methods
5+
*.7z
6+
*.dmg
7+
*.gz
8+
*.iso
9+
*.jar
10+
*.rar
11+
*.tar
12+
*.zip
13+
14+
# Logs and databases #
15+
######################
16+
*.log
17+
*.sql
18+
*.sqlite
19+
20+
# OS generated files #
21+
######################
22+
.DS_Store
23+
.DS_Store?
24+
._*
25+
.Spotlight-V100
26+
.Trashes
27+
ehthumbs.db
28+
Thumbs.db
29+
30+
# Custom #
31+
###############
32+
.nyc_output
33+
coverage
34+
dist
35+
node_modules
36+
yarn-error.log

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
8+
node_js:
9+
- '9'
10+
- '8'
11+
install:
12+
- yarn install
13+
script:
14+
- yarn validate
15+
after_success:
16+
- yarn report-coverage
17+
- yarn travis-deploy-once "yarn semantic-release"
18+
branches:
19+
only:
20+
- master

CODE_OF_CONDUCT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
education, socio-economic status, nationality, personal appearance, race,
10+
religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at lectii2008@gmail.com. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Ovidiu Barabula
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Frontvue-Plugin-Pug
2+
3+
[![Build Status](https://travis-ci.org/0vidiu/frontvue-plugin-pug.svg?branch=master)](https://travis-ci.org/0vidiu/frontvue-plugin-pug) [![codecov](https://codecov.io/gh/0vidiu/frontvue-plugin-pug/branch/master/graph/badge.svg)](https://codecov.io/gh/0vidiu/frontvue-plugin-pug) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
4+
5+
## A Frontvue plugin for Pug boilerplate and processing
6+
This plugin will be one of the available options to choose from when you configure a new project using Frontvue. It handles Pug files and comes with a boilerplate template of Pug partials. It comes with the following tasks:
7+
* *pug:config* — registers a configuration questionnaire;
8+
* *pug:template* — copies the Pug template;
9+
* *pug:clean* — removes the build folder;
10+
* *pug:process* — handles compiling of Pug partials;
11+
* *pug:watch* — starts listeners for changes in Pug partials;
12+
13+
## Default configuration
14+
```js
15+
{
16+
// Source files directory name
17+
sourceDir: 'pug',
18+
19+
// Directory name where the HTML file(s) will be outputted
20+
buildDir: 'html'
21+
}
22+
```

0 commit comments

Comments
 (0)