Skip to content

Commit

Permalink
add initial project structure and configs
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberDex committed Dec 22, 2022
1 parent e0587e9 commit aa5a355
Show file tree
Hide file tree
Showing 19 changed files with 42,842 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-typescript"
]
}
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is for unifying the coding style for different editors and IDEs.
# More information at http://EditorConfig.org
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[{*.json,bower.json,.travis.yml}]
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/docs/**
**/dist/**
**/lib/**
**/types/**
temp
docs
dist
node_modules
27 changes: 27 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"root": true,
"extends": "eslint:recommended",
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "tsconfig.json"
},
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"globals": {
"process": true
},
"rules": {
"no-constant-condition": "warn",
"no-dupe-class-members": "off",
"no-unused-vars": "off",
"no-var": "error",
"prefer-const": "off",
"require-atomic-updates": "warn",
"eqeqeq": ["error", "always", { "null": "ignore" }]
}
}
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

*.js text eol=lf
*.ts text eol=lf
*.json text eol=lf
*.yml text eol=lf
*.md text eol=lf
*.txt text eol=lf
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @Zyie @GoodBoyDigital @cyberdex
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug Report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

<!--
Thank you for reporting an issue!
Before opening an issue _please_ check if a similar issue exists by
searching existing issues.
If possible, please provide code that demonstrates the problem.
Links to a running example of the problem are best!
-->

<!-- Bug Report (delete if not applicable) -->
### Expected Behavior

### Current Behavior

### Possible Solution

### Steps to Reproduce

### Environment

- **version**: _e.g. 8.0.0_
- **Browser & Version**: _e.g. Chrome 67_
- **OS & Version**: _e.g. Ubuntu 18.04_
- **Running Example**: _url_
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature Request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Please Describe The Problem To Be Solved**
<!--
(Please present a concise description of the problem to be addressed by this feature request.)
-->

**(Optional): Suggest A Solution**
<!--
(Please describe your preferred solution to the problem. Include an example of the public facing API so it can be discussed)
-->
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# sublime text files
*.sublime*
*.vscode*
*.*~*.TMP
test/lib


# temp files
.DS_Store
Thumbs.db
Desktop.ini
npm-debug.log

# project files
.project

# vim swap files
*.sw*

# emacs temp files
*~
\#*#

# project ignores
!.gitkeep
*__temp
node_modules
# docs/
bin/
lib/
dist/
coverage/
temp
types
yarn.lock
pnpm-lock.yaml

# jetBrains IDE ignores
.idea
.vs-code
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.cache/*
.vscode/*
.history/*
.github/*
/docs/**
build/*

.eslintrc.js
.prettierignore
package-lock.json
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 4,
"useTabs": true
}
24 changes: 24 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
stories: ['../src/stories/**/*.stories.@(ts|tsx|js|jsx|mdx)'],
staticDirs: ['../src/stories/assets'],
output: '../docs/',
logLevel: 'debug',
addons: [
'@storybook/addon-actions',
'@storybook/addon-backgrounds',
'@storybook/addon-controls',
'@storybook/addon-viewport',
'@storybook/addon-links',
'@storybook/addon-highlight',
'@storybook/addon-storysource',
],
core: {
channelOptions: { allowFunction: false, maxDepth: 10 },
disableTelemetry: true,
},
features: {
buildStoriesJson: true,
breakingChangesV7: true,
},
framework: '@pixi/storybook-webpack5',
};
23 changes: 23 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export const parameters = {
layout: 'fullscreen',
pixi: {
applicationOptions: {
transparent: true,
resolution: 1,
antialias: true,
},
},
backgrounds: {
default: 'Dark',
values: [
{
name: 'Dark',
value: '#1b1c1d',
},
{
name: 'Light',
value: '#dddddd',
},
],
},
};
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
# layout
<div align="center">
<h1>PIXI-LAYOUT</h1>
<h3>It is a library a library for arranging pixi elements and make the arrangement basing on their size</h3>
</div>

Here are some useful resources:

- [Full docs](https://pixijs.io/layout/)
- [Github Repo](https://github.com/pixijs/layout)
- [Storybook](https://pixijs.io/ui/layout/)

## Install

```sh
npm install @pixijs/layout
```

There is no default export. The correct way to import pixi-layout is:

```js
import { Layout } from '@pixijs/layout';
```
22 changes: 22 additions & 0 deletions docs-source/pages/getting-started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<div align="center">
<h1>PIXI-LAYOUT</h1>
<h3>It is a library a library for arranging pixi elements</h3>
</div>

Here are some useful resources:

- [Full docs](https://pixijs.io/layout/)
- [Github Repo](https://github.com/pixijs/layout)
- [Storybook](https://pixijs.io/ui/layout/)

## Install

```sh
npm install @pixijs/layout
```

There is no default export. The correct way to import pixi-layout is:

```js
import { Layout } from '@pixijs/layout';
```
Loading

0 comments on commit aa5a355

Please sign in to comment.