Skip to content

Commit d44e69b

Browse files
authored
chore: Re-add package meta data & utilities (#1)
* chore: Copy over license * chore: Copy over CoC * chore: Adding gitignore & editor config * chore: Nest source files * chore: Sort package.json * chore: Add jsconfig.json
1 parent 728a004 commit d44e69b

16 files changed

+146
-18
lines changed

.editorconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[{.*rc,*.yml}]
11+
indent_style = space
12+
indent_size = 2
13+
14+
[package.json]
15+
insert_final_newline = false
16+
17+
[*.md]
18+
trim_trailing_whitespace = false
19+
20+
[test/fixtures/**/*.expected.*]
21+
trim_trailing_whitespace = false
22+
insert_final_newline = false

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/*
8+
!.yarn/releases
9+
!.yarn/plugins
10+
.pnp.*
11+
12+
# testing
13+
/coverage
14+
15+
# production
16+
/dist
17+
/build
18+
/.yalc
19+
20+
# misc
21+
.DS_Store
22+
.env.local
23+
.env.development.local
24+
.env.test.local
25+
.env.production.local
26+
27+
npm-debug.log*
28+
yarn-debug.log*
29+
yarn-error.log*

CODE_OF_CONDUCT.md

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

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) 2020 The Preact Authors
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.

jsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ESNext",
4+
"module": "NodeNext",
5+
"moduleResolution": "NodeNext",
6+
"noEmit": true,
7+
"allowJs": true,
8+
"checkJs": true
9+
}
10+
}

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
{
22
"name": "preact-iso",
33
"version": "2.3.1",
4-
"description": "Isomorphic utilities for Preact",
5-
"main": "./index.js",
6-
"module": "./index.js",
7-
"types": "./index.d.ts",
84
"type": "module",
9-
"scripts": {
10-
"test-build": "node --experimental-modules test/bundle-using-wmr.js",
11-
"test": "node --experimental-vm-modules node_modules/.bin/jest"
12-
},
5+
"main": "src/index.js",
6+
"module": "src/index.js",
7+
"types": "src/index.d.ts",
138
"exports": {
14-
".": "./index.js",
15-
"./router": "./router.js",
16-
"./lazy": "./lazy.js",
17-
"./prerender": "./prerender.js",
18-
"./hydrate": "./hydrate.js"
9+
".": "./src/index.js",
10+
"./router": "./src/router.js",
11+
"./lazy": "./src/lazy.js",
12+
"./prerender": "./src/prerender.js",
13+
"./hydrate": "./src/hydrate.js"
1914
},
15+
"license": "MIT",
16+
"description": "Isomorphic utilities for Preact",
2017
"author": "The Preact Authors (https://preactjs.com)",
2118
"repository": {
2219
"type": "git",
2320
"url": "https://github.com/preactjs/wmr",
2421
"directory": "packages/preact-iso"
2522
},
26-
"license": "MIT",
23+
"scripts": {
24+
"test-build": "node --experimental-modules test/bundle-using-wmr.js",
25+
"test": "node --experimental-vm-modules node_modules/.bin/jest"
26+
},
27+
"peerDependencies": {
28+
"preact": ">=10",
29+
"preact-render-to-string": ">=5"
30+
},
2731
"devDependencies": {
2832
"htm": "^3.0.4",
2933
"jest": "26.6.3",
3034
"preact": "^10.5.12",
3135
"preact-render-to-string": "^5.1.12"
32-
},
33-
"peerDependencies": {
34-
"preact": ">=10",
35-
"preact-render-to-string": ">=5"
3636
}
3737
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

index.js renamed to src/index.js

File renamed without changes.

0 commit comments

Comments
 (0)