Skip to content

Commit aa75360

Browse files
committed
chore: initial commit
1 parent 38087d5 commit aa75360

38 files changed

+11103
-1
lines changed

.circleci/config.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
version: 2
2+
jobs:
3+
dependency_cache:
4+
docker:
5+
- image: rollupcabal/circleci-node-base:latest
6+
steps:
7+
- checkout
8+
- restore_cache:
9+
key: dependency-cache-{{ checksum "package-lock.json" }}
10+
- run:
11+
name: Node Info
12+
command: node --version && npm --version
13+
- run:
14+
name: Install Dependencies
15+
command: npm install
16+
- save_cache:
17+
key: dependency-cache-{{ checksum "package-lock.json" }}
18+
paths:
19+
- ./node_modules
20+
node-v10-latest:
21+
docker:
22+
- image: rollupcabal/circleci-node-v10:latest
23+
steps:
24+
- checkout
25+
- restore_cache:
26+
key: dependency-cache-{{ checksum "package-lock.json" }}
27+
- run:
28+
name: Node Info
29+
command: node --version && npm --version
30+
- run:
31+
name: Workaround for GoogleChrome/puppeteer#290
32+
command: 'sh .circleci/setup-puppeteer.sh'
33+
- run:
34+
name: NPM Rebuild
35+
command: npm install
36+
- run:
37+
name: Run unit tests.
38+
command: npm run ci:coverage
39+
- run:
40+
name: Submit coverage data to codecov.
41+
command: bash <(curl -s https://codecov.io/bash)
42+
when: on_success
43+
analysis:
44+
docker:
45+
- image: rollupcabal/circleci-node-base:latest
46+
steps:
47+
- checkout
48+
- restore_cache:
49+
key: dependency-cache-{{ checksum "package-lock.json" }}
50+
- run:
51+
name: NPM Rebuild
52+
command: npm install
53+
- run:
54+
name: Run linting.
55+
command: npm run lint
56+
- run:
57+
name: Run NSP Security Check.
58+
command: npm run security
59+
- run:
60+
name: Validate Commit Messages
61+
command: npm run ci:lint:commits
62+
workflows:
63+
version: 2
64+
validate:
65+
jobs:
66+
- dependency_cache
67+
- analysis:
68+
requires:
69+
- dependency_cache
70+
filters:
71+
tags:
72+
only: /.*/
73+
- node-v10-latest:
74+
requires:
75+
- analysis
76+
filters:
77+
tags:
78+
only: /.*/

.circleci/setup-puppeteer.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
sudo apt-get update
4+
sudo apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \
5+
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \
6+
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
7+
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
8+
ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

.editorconfig

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

.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/node_modules
2+
dist
3+
*.snap
4+
output.js
5+
*-wps-hmr.*
6+
*.hot-update.js
7+
test/**/output

.eslintrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "shellscape",
3+
"globals": {
4+
"document": true,
5+
"ʎɐɹɔosǝʌɹǝs": true,
6+
"WebSocket": true,
7+
"window": true,
8+
"__webpack_hash__": true
9+
}
10+
}

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package-lock.json -diff
2+
* text=auto
3+
bin/* eol=lf

.github/CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Contributing in webpack-plugin-ramdisk
2+
3+
We 💛 contributions! The rules for contributing to this org are few:
4+
5+
1. Don't be a jerk
6+
1. Search issues before opening a new one
7+
1. Lint and run tests locally before submitting a PR
8+
1. Adhere to the code style the org has chosen
9+
10+
11+
## Before Committing
12+
13+
1. Use at least Node.js v10.11.0 or higher. [NVM](https://github.com/creationix/nvm) can be handy for switching between Node versions.
14+
1. Lint your changes via `npm run lint`. Fix any errors and warnings before committing.
15+
1. Test your changes via `npm run test`. Only Pull Requests with passing tests will be accepted.

.github/ISSUE_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!--
2+
👉🏽 Need help or support? Open a SUPPORT issue instead.
3+
4+
Ahoy!
5+
6+
You're seeing this because you felt none of the other options fit the type of
7+
issue you'd like to create. Please use this opportunity to tell us about the
8+
type of issue you were looking for, so we can try to accommodate similar
9+
issues in the future.
10+
11+
If you're using this template to report an issue covered by an existing issue
12+
type, we'll close it as invalid faster than you can spell 'Mississippi'.
13+
-->

.github/ISSUE_TEMPLATE/BUG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: 🐞 Bug Report
3+
about: Something went awry and you'd like to tell us about it.
4+
5+
---
6+
7+
<!--
8+
⚡️ katchow! We 💛 issues.
9+
10+
Please - do not - remove this template.
11+
Please - do not - skip or remove parts of this template.
12+
Or your issue may be closed.
13+
14+
👉🏽 Need help or support? Open a SUPPORT issue instead.
15+
-->
16+
17+
- Webpack Version:
18+
- Operating System (or Browser):
19+
- Node Version:
20+
- webpack-plugin-ramdisk Version:
21+
22+
### How Do We Reproduce?
23+
24+
<!--
25+
Issues without minimal reproductions will be closed! Please provide one by:
26+
2. Work to isolate the problem and provide the exact steps in this issue, or
27+
3. Provide a minimal repository link (Read https://git.io/fNzHA for instructions). These may take more time to triage than the other options.
28+
-->
29+
30+
31+
### Expected Behavior
32+
33+
34+
### Actual Behavior
35+
36+
<!--
37+
The situation may arise where some small code snippets also need to be provided. In that situation, please add your code below using Fenced Code Blocks (https://help.github.com/articles/creating-and-highlighting-code-blocks/)
38+
-->

.github/ISSUE_TEMPLATE/DOCS.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: 📚 Documentation
3+
about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here.
4+
5+
---
6+
7+
<!--
8+
⚡️ katchow! We 💛 issues.
9+
10+
Please - do not - remove this template.
11+
Please - do not - skip or remove parts of this template.
12+
Or your issue may be closed.
13+
14+
👉🏽 Need help or support? Open a SUPPORT issue instead.
15+
-->
16+
17+
Documentation Is:
18+
19+
<!-- Please place an x (no spaces!) in all [ ] that apply -->
20+
21+
- [ ] Missing
22+
- [ ] Needed
23+
- [ ] Confusing
24+
- [ ] Not Sure?
25+
26+
### Please Explain in Detail...
27+
28+
29+
### Your Proposal for Changes

0 commit comments

Comments
 (0)