Skip to content

Commit 59e761b

Browse files
committed
chore: plugin skeleton/base commit
0 parents  commit 59e761b

17 files changed

+10638
-0
lines changed

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
max_line_length = 120
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const { overrides } = require('@netlify/eslint-config-node/react_config')
2+
3+
module.exports = {
4+
extends: '@netlify/eslint-config-node/react_config',
5+
rules: {
6+
'max-depth': 0,
7+
complexity: 0,
8+
'fp/no-let': 0,
9+
'fp/no-loops': 0,
10+
'fp/no-mutation': 0,
11+
'fp/no-mutating-methods': 0,
12+
'id-length': 0,
13+
'max-statements': 0,
14+
'no-await-in-loop': 0,
15+
'node/exports-style': 0,
16+
'node/global-require': 0,
17+
'node/prefer-global/process': 0,
18+
'no-magic-numbers': 0,
19+
'no-promise-executor-return': 0,
20+
'no-prototype-builtins': 0,
21+
'no-shadow': 0,
22+
'no-unused-vars': 0,
23+
'prefer-regex-literals': 0,
24+
'promise/prefer-await-to-callbacks': 0,
25+
'unicorn/filename-case': 0,
26+
'unicorn/no-array-push-push': 0,
27+
},
28+
overrides: [...overrides],
29+
}

.github/workflows/test.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Plugin Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macOS-latest, windows-latest]
15+
node-version: [10.13.0, '*']
16+
exclude:
17+
- os: macOS-latest
18+
node-version: 10.13.0
19+
- os: windows-latest
20+
node-version: 10.13.0
21+
fail-fast: false
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
check-latest: true
30+
- run: npm ci
31+
name: NPM Install
32+
- name: Linting
33+
run: npm run format:ci
34+
if: "${{ matrix.node-version == '*' }}"

.gitignore

+144
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
### Node ###
2+
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
lerna-debug.log*
10+
11+
# Diagnostic reports (https://nodejs.org/api/report.html)
12+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
13+
14+
# Runtime data
15+
pids
16+
*.pid
17+
*.seed
18+
*.pid.lock
19+
20+
# Directory for instrumented libs generated by jscoverage/JSCover
21+
lib-cov
22+
23+
# Coverage directory used by tools like istanbul
24+
coverage
25+
*.lcov
26+
27+
# nyc test coverage
28+
.nyc_output
29+
30+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
31+
.grunt
32+
33+
# Bower dependency directory (https://bower.io/)
34+
bower_components
35+
36+
# node-waf configuration
37+
.lock-wscript
38+
39+
# Compiled binary addons (https://nodejs.org/api/addons.html)
40+
build/Release
41+
42+
# Dependency directories
43+
node_modules/
44+
jspm_packages/
45+
46+
# TypeScript v1 declaration files
47+
typings/
48+
49+
# TypeScript cache
50+
*.tsbuildinfo
51+
52+
# Optional npm cache directory
53+
.npm
54+
55+
# Optional eslint cache
56+
.eslintcache
57+
58+
# Microbundle cache
59+
.rpt2_cache/
60+
.rts2_cache_cjs/
61+
.rts2_cache_es/
62+
.rts2_cache_umd/
63+
64+
# Optional REPL history
65+
.node_repl_history
66+
67+
# Output of 'npm pack'
68+
*.tgz
69+
70+
# Yarn Integrity file
71+
.yarn-integrity
72+
73+
# dotenv environment variables file
74+
.env
75+
.env.test
76+
.env*.local
77+
78+
# parcel-bundler cache (https://parceljs.org/)
79+
.cache
80+
.parcel-cache
81+
82+
# Next.js build output
83+
.next
84+
85+
# Nuxt.js build / generate output
86+
.nuxt
87+
dist
88+
89+
# Gatsby files
90+
.cache/
91+
# Comment in the public line in if your project uses Gatsby and not Next.js
92+
# https://nextjs.org/blog/next-9-1#public-directory-support
93+
# public
94+
95+
# vuepress build output
96+
.vuepress/dist
97+
98+
# Serverless directories
99+
.serverless/
100+
101+
# FuseBox cache
102+
.fusebox/
103+
104+
# DynamoDB Local files
105+
.dynamodb/
106+
107+
# TernJS port file
108+
.tern-port
109+
110+
# Stores VSCode versions used for testing VSCode extensions
111+
.vscode-test
112+
113+
### OSX ###
114+
# General
115+
.DS_Store
116+
.AppleDouble
117+
.LSOverride
118+
119+
# Icon must end with two \r
120+
Icon
121+
122+
123+
# Thumbnails
124+
._*
125+
126+
# Files that might appear in the root of a volume
127+
.DocumentRevisions-V100
128+
.fseventsd
129+
.Spotlight-V100
130+
.TemporaryItems
131+
.Trashes
132+
.VolumeIcon.icns
133+
.com.apple.timemachine.donotpresent
134+
135+
# Directories potentially created on remote AFP share
136+
.AppleDB
137+
.AppleDesktop
138+
Network Trash Folder
139+
Temporary Items
140+
.apdisk
141+
142+
# End of https://www.toptal.com/developers/gitignore/api/osx,node
143+
144+
.netlify

.prettierignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Markdown
2+
*.md
3+
4+
# Logs
5+
logs
6+
*.log
7+
npm-debug.log*
8+
9+
# Dependency directories
10+
node_modules
11+
12+
# Optional npm cache directory
13+
.npm
14+
15+
# Optional REPL history
16+
.node_repl_history

.prettierrc.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
...require('@netlify/eslint-config-node/.prettierrc.json'),
3+
endOfLine: 'auto',
4+
}

CODE_OF_CONDUCT.md

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

LICENSE.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Luke Oliff
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
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, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
![Netlify Build plugin Angular Serverless – Run Angular Universal seamlessly on Netlify](netlify-plugin-angular.png)
2+
3+
# Essential Angular Serverless Plugin
4+
5+
This build plugin is a utility for supporting Angular Universal on Netlify. This plugin will be installed by running a Netlify-specific Angular schematic, but it can also be installed manually.
6+
7+
## Table of Contents
8+
9+
- [Installation and Configuration](#installation-and-configuration)
10+
11+
## Installation and Configuration
12+
13+
### Angular Schematic
14+
- TBD
15+
16+
### Manual Installation
17+
18+
1. Create a `netlify.toml` in the root of your project. Your file should include
19+
the plugins section below:
20+
21+
```toml
22+
TBD
23+
```
24+
25+
2. From your project's base directory, add this plugin to `devDependencies` in
26+
`package.json`.
27+
28+
```bash
29+
# yarn add -D @netlify/plugin-angular-serverless
30+
npm install -D @netlify/plugin-angular-serverless
31+
```
32+
33+
Read more about
34+
[file-based plugin installation](https://docs.netlify.com/configure-builds/build-plugins/#file-based-installation)
35+
in our docs.

commitlint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] }

manifest.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name: 'netlify-plugin-angular-serverless'
2+
inputs: []

netlify-plugin-angular.png

104 KB
Loading

0 commit comments

Comments
 (0)