Skip to content

Commit

Permalink
refactor: refactor with monorep architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver committed Oct 8, 2019
1 parent 9072cd1 commit 2542b06
Show file tree
Hide file tree
Showing 598 changed files with 34,957 additions and 31,740 deletions.
Binary file added .DS_Store
Binary file not shown.
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

18 changes: 7 additions & 11 deletions .editorconfig
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
# http://editorconfig.org
root = true

# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
indent_size = 1

[*.md]
trim_trailing_whitespace = false
14 changes: 0 additions & 14 deletions .eslintignore

This file was deleted.

52 changes: 0 additions & 52 deletions .eslintrc

This file was deleted.

32 changes: 9 additions & 23 deletions .gitignore
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@

# Created by https://www.gitignore.io/api/node

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# lock
package-lock.json

# Runtime data
pids
*.pid
Expand Down Expand Up @@ -40,7 +41,7 @@ node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/
# typings/

# Optional npm cache directory
.npm
Expand All @@ -60,22 +61,7 @@ typings/
# dotenv environment variables file
.env

build
dist
temp
.DS_Store
.idea
*.sw*
*.un~
demos/gd.html
demos/data
demos/image
.vscode
demos/hexagon.html
demos/model
testdemo
lib
webpack-dev.config.js
webpack.config.js
.si.yml
git_log.sh

# End of https://www.gitignore.io/api/node

lib/
82 changes: 0 additions & 82 deletions .npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 80,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always"
}
3 changes: 3 additions & 0 deletions .storybook/addons.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import '@storybook/addon-actions/register';
import '@storybook/addon-notes/register';
import '@storybook/addon-storysource/register';
31 changes: 31 additions & 0 deletions .storybook/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { configure, addParameters } from '@storybook/react';
import '@storybook/addon-console';
import { create } from '@storybook/theming';
import '!style-loader!css-loader!sass-loader!./iframe.scss';

addParameters({
options: {
isFullscreen: false,
showAddonsPanel: true,
showSearchBox: false,
panelPosition: 'bottom',
hierarchySeparator: /\./,
hierarchyRootSeparator: /\|/,
enableShortcuts: true,
theme: create({
base: 'light',
brandTitle: 'L7 POC for new architecture',
brandUrl: 'https://github.com/xiaoiver/L7-POC',
gridCellSize: 12,
})
},
});

// automatically import all files ending in *.stories.tsx
const req = require.context('../stories', true, /\.stories\.tsx$/);

function loadStories() {
req.keys().forEach(req);
}

configure(loadStories, module);
7 changes: 7 additions & 0 deletions .storybook/iframe.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
html, body {
margin: 0;
}

.dg.ac {
z-index: 999 !important;
}
35 changes: 35 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = ({ config }) => {

// config.module.rules.push({
// test: /\.glsl$/,
// loader: 'raw-loader'
// });

// config.module.rules.push({
// test: /\.worker\.(js|ts)$/,
// use: {
// loader: 'worker-loader',
// options: { inline: true, fallback: false }
// }
// });

config.module.rules.push({
test: /\.(ts|tsx)$/,
loader: require.resolve('awesome-typescript-loader'),
});

config.module.rules.push({
test: /\.stories\.tsx?$/,
loaders: [
{
loader: require.resolve('@storybook/addon-storysource/loader'),
options: { parser: 'typescript' },
},
],
enforce: 'pre',
});

config.resolve.extensions.push('.ts', '.tsx', '.js', '.glsl');

return config;
};
7 changes: 7 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"processors": ["stylelint-processor-styled-components"],
"extends": [
"stylelint-config-standard",
"stylelint-config-styled-components"
]
}
19 changes: 0 additions & 19 deletions .torch.compile.opts.js

This file was deleted.

25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

3 changes: 0 additions & 3 deletions CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 2542b06

Please sign in to comment.