Skip to content

Commit

Permalink
refactor: refactor examples
Browse files Browse the repository at this point in the history
  • Loading branch information
osdevisnot committed Mar 12, 2021
1 parent 0e237d4 commit 4c01cea
Show file tree
Hide file tree
Showing 15 changed files with 202 additions and 315 deletions.
7 changes: 7 additions & 0 deletions examples/const-enums/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
"name": "const-enums",
"version": "0.0.0",
"private": true,
"license": "MIT",
"module": "dist/index.esm.js",
"source": "src/index.ts",
"types": "dist/index.d.ts",
"dependencies": {
"typescript": "*"
},
"devDependencies": {
"klap": "*"
},
"klap": {
"usets": true
}
Expand Down
18 changes: 11 additions & 7 deletions examples/dev-expressions/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"name": "dev-expressions",
"version": "0.0.0",
"private": true,
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"source": "src/index.js",
"browser": "dist/index.js"
"name": "dev-expressions",
"version": "0.0.0",
"private": true,
"license": "MIT",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"source": "src/index.js",
"browser": "dist/index.js",
"devDependencies": {
"klap": "*"
}
}
51 changes: 26 additions & 25 deletions examples/dynamic-imports/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{
"name": "dynamic-import",
"version": "0.0.0",
"private": true,
"files": [
"dist"
],
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"source": "src/index.js",
"browser": "dist/index.js",
"scripts": {
"build": "klap build",
"start": "klap start",
"watch": "klap watch"
},
"dependencies": {
"react": "*",
"react-dom": "*"
},
"devDependencies": {
"klap": "2.1.0"
},
"klap": {
"example": "public/index.js"
}
"name": "dynamic-import",
"version": "0.0.0",
"private": true,
"license": "MIT",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"source": "src/index.js",
"browser": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"build": "klap build",
"start": "klap start",
"watch": "klap watch"
},
"dependencies": {
"react": "*",
"react-dom": "*"
},
"devDependencies": {
"klap": "*"
},
"klap": {
"example": "public/index.js"
}
}
4 changes: 4 additions & 0 deletions examples/jsx-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
"name": "jsx-runtime",
"version": "0.0.0",
"private": true,
"license": "MIT",
"module": "dist/index.esm.js",
"source": "src/index.js",
"devDependencies": {
"klap": "*"
},
"klap": {
"runtime": "preact"
}
Expand Down
14 changes: 9 additions & 5 deletions examples/minimal/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "minimal",
"version": "0.0.0",
"private": true,
"module": "dist/index.esm.js",
"source": "src/index.js"
"name": "minimal",
"version": "0.0.0",
"private": true,
"license": "MIT",
"module": "dist/index.esm.js",
"source": "src/index.js",
"devDependencies": {
"klap": "*"
}
}
77 changes: 0 additions & 77 deletions examples/react-component/package-lock.json

This file was deleted.

51 changes: 26 additions & 25 deletions examples/react-component/package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{
"name": "react-component",
"version": "0.0.0",
"private": true,
"files": [
"dist"
],
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"source": "src/index.js",
"browser": "dist/index.js",
"scripts": {
"build": "klap build",
"start": "klap start",
"watch": "klap watch"
},
"dependencies": {
"react": "*",
"react-dom": "*"
},
"devDependencies": {
"klap": "2.1.0"
},
"klap": {
"example": "public/index.js"
}
"name": "react-component",
"version": "0.0.0",
"private": true,
"license": "MIT",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"source": "src/index.js",
"browser": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"build": "klap build",
"start": "klap start",
"watch": "klap watch"
},
"dependencies": {
"react": "*",
"react-dom": "*"
},
"devDependencies": {
"klap": "*"
},
"klap": {
"example": "public/index.js"
}
}
59 changes: 31 additions & 28 deletions examples/react-sc-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
{
"name": "react-sc-typescript",
"version": "0.0.0",
"files": [
"dist"
],
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"source": "src/index.tsx",
"browser": "dist/index.js",
"scripts": {
"build": "klap build",
"start": "klap start",
"watch": "klap watch"
},
"dependencies": {
"react": "*",
"react-dom": "*",
"styled-components": "*"
},
"devDependencies": {
"klap": "2.1.0"
},
"klap": {
"globals": {
"styled-components": "styledComponents"
},
"example": "public/index.tsx"
}
"name": "react-sc-typescript",
"version": "0.0.0",
"license": "MIT",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"source": "src/index.tsx",
"browser": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"build": "klap build",
"start": "klap start",
"watch": "klap watch"
},
"dependencies": {
"react": "*",
"react-dom": "*",
"react-is": "*",
"styled-components": "*",
"typescript": "*"
},
"devDependencies": {
"klap": "*"
},
"klap": {
"globals": {
"styled-components": "styledComponents"
},
"example": "public/index.tsx"
}
}
77 changes: 0 additions & 77 deletions examples/react-typescript/package-lock.json

This file was deleted.

Loading

0 comments on commit 4c01cea

Please sign in to comment.