Skip to content

Commit

Permalink
Restructure project
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Jun 30, 2021
1 parent e689f61 commit e1dc0f9
Show file tree
Hide file tree
Showing 42 changed files with 207 additions and 36 deletions.
15 changes: 8 additions & 7 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"extends": [
"lxsmnsyc/typescript"
],
"root": true,
"parserOptions": {
"project": "./tsconfig.json"
"project": [
"./tsconfig.eslint.json",
"./packages/*/tsconfig.json"
]
},
"rules": {
"no-bitwise": "off"
}
"extends": [
"lxsmnsyc/typescript"
]
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ typings/
.serverless

# FuseBox cache
.fusebox/
.fusebox/
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# blurhash-as

> Lazily render components
## Packages

| Package | Version | Example | Notes |
| --- | --- | --- | --- |
| [`blurhash-as`](https://github.com/lxsmnsyc/laze/tree/main/packages/blurhash-as) | [![NPM](https://img.shields.io/npm/v/blurhash-as.svg)](https://www.npmjs.com/package/blurhash-as) | [![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?style=flat-square&logo=codesandbox)](https://codesandbox.io/s/github/lxsmnsyc/blurhash-as/tree/main/examples/blurhash-as) | demo |

## License

MIT © [lxsmnsyc](https://github.com/lxsmnsyc)
21 changes: 21 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
"packages/*",
"examples/*"
],
"command": {
"version": {
"exact": true
},
"publish": {
"npmClient": "yarn",
"allowBranch": [
"main"
],
"registry": "https://registry.npmjs.org/"
}
},
"version": "0.0.0"
}
54 changes: 26 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,37 @@
{
"name": "blurhash-as",
"name": "blurhash-as-workspace",
"version": "0.0.0",
"main": "index.js",
"author": "Alexis Munsayac <[email protected]>",
"license": "MIT",
"dependencies": {
"@assemblyscript/loader": "^0.19.4"
"private": true,
"workspaces": [
"packages/*",
"examples/*"
],
"scripts": {
"lint": "lerna run lint",
"bootstrap": "lerna bootstrap",
"clean": "lerna run clean",
"build": "lerna run build",
"type-check": "lerna run type-check",
"test": "lerna run test",
"test:coverage": "lerna run test -- --coverage",
"lerna": "lerna"
},
"devDependencies": {
"assemblyscript": "^0.19.4",
"benny": "^3.6.15",
"blurhash": "^1.1.3",
"eslint": "^7.29.0",
"eslint-config-lxsmnsyc": "^0.2.3",
"image-encode": "^1.3.1",
"image-pixels": "^2.2.2",
"typescript": "^4.3.4"
},
"scripts": {
"asbuild:untouched": "asc assembly/index.ts --target debug --exportRuntime",
"asbuild:optimized": "asc assembly/index.ts --target release --exportRuntime",
"asbuild": "yarn asbuild:untouched && yarn asbuild:optimized",
"test": "node tests"
"@typescript-eslint/parser": "^4.26.1",
"eslint": "^7.28.0",
"eslint-config-lxsmnsyc": "^0.2.1",
"lerna": "^4.0.0",
"typescript": "^4.3.2"
},
"description": "Blurhash algorithm implementation in AssemblyScript",
"repository": {
"url": "https://github.com/lxsmnsyc/ecmason.git",
"url": "https://github.com/lxsmnsyc/blurhash-as.git",
"type": "git"
},
"homepage": "https://github.com/lxsmnsyc/ecmason",
"homepage": "https://github.com/lxsmnsyc/blurhash-as",
"bugs": {
"url": "https://github.com/lxsmnsyc/ecmason/issues"
},
"publishConfig": {
"access": "public"
},
"author": "Alexis Munsayac",
"private": false
}
"url": "https://github.com/lxsmnsyc/blurhash-as/issues"
}
}
11 changes: 11 additions & 0 deletions packages/blurhash-as/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": [
"lxsmnsyc/typescript"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"no-bitwise": "off"
}
}
76 changes: 76 additions & 0 deletions packages/blurhash-as/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# FuseBox cache
.fusebox/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
51 changes: 51 additions & 0 deletions packages/blurhash-as/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "blurhash-as",
"version": "0.0.0",
"types": "index.d.ts",
"main": "index.js",
"module": "index.esm.js",
"exports": {
".": {
"require": "./index.js",
"import": "./index.esm.js"
},
"./browser": {
"require": "./index.browser.js",
"import": "./index.browser.esm.js"
}
},
"license": "MIT",
"dependencies": {
"@assemblyscript/loader": "^0.19.4"
},
"devDependencies": {
"assemblyscript": "^0.19.4",
"benny": "^3.6.15",
"blurhash": "^1.1.3",
"eslint": "^7.29.0",
"eslint-config-lxsmnsyc": "^0.2.3",
"image-encode": "^1.3.1",
"image-pixels": "^2.2.2",
"typescript": "^4.3.4"
},
"scripts": {
"asbuild:untouched": "asc assembly/index.ts --target debug --exportRuntime",
"asbuild:optimized": "asc assembly/index.ts --target release --exportRuntime",
"asbuild": "yarn asbuild:untouched && yarn asbuild:optimized",
"test": "node tests"
},
"description": "Blurhash algorithm implementation in AssemblyScript",
"repository": {
"url": "https://github.com/lxsmnsyc/ecmason.git",
"type": "git"
},
"homepage": "https://github.com/lxsmnsyc/ecmason",
"bugs": {
"url": "https://github.com/lxsmnsyc/ecmason/issues"
},
"publishConfig": {
"access": "public"
},
"author": "Alexis Munsayac",
"private": false
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.

0 comments on commit e1dc0f9

Please sign in to comment.