Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
feat: create packages for integration
Browse files Browse the repository at this point in the history
  • Loading branch information
patzick committed Nov 4, 2019
1 parent f15b6d7 commit 5525f08
Show file tree
Hide file tree
Showing 19 changed files with 95 additions and 36 deletions.
1 change: 1 addition & 0 deletions packages/composables/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @shopware-pwa/composables
File renamed without changes.
7 changes: 7 additions & 0 deletions packages/composables/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict";

if (process.env.NODE_ENV === "production") {
module.exports = require("./dist/composables.cjs.prod.js");
} else {
module.exports = require("./dist/composables.cjs.js");
}
19 changes: 19 additions & 0 deletions packages/composables/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@shopware-pwa/composables",
"version": "0.1.0",
"description": "@shopware-pwa/composables",
"main": "index.js",
"module": "dist/composables.esm-bundler.js",
"files": [
"index.js",
"dist"
],
"types": "dist/composables.d.ts",
"unpkg": "dist/composables.global.js",
"sideEffects": false,
"repository": {
"type": "git",
"url": "git+https://github.com/DivanteLtd/shopware-pwa"
},
"license": "MIT"
}
Empty file.
1 change: 1 addition & 0 deletions packages/default-theme/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @shopware-pwa/default-theme
7 changes: 7 additions & 0 deletions packages/default-theme/api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../api-extractor.json",
"mainEntryPointFilePath": "./dist/packages/<unscopedPackageName>/src/index.d.ts",
"dtsRollup": {
"untrimmedFilePath": "./dist/<unscopedPackageName>.d.ts"
}
}
7 changes: 7 additions & 0 deletions packages/default-theme/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict";

if (process.env.NODE_ENV === "production") {
module.exports = require("./dist/default-theme.cjs.prod.js");
} else {
module.exports = require("./dist/default-theme.cjs.js");
}
19 changes: 19 additions & 0 deletions packages/default-theme/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@shopware-pwa/default-theme",
"version": "0.1.0",
"description": "@shopware-pwa/default-theme",
"main": "index.js",
"module": "dist/default-theme.esm-bundler.js",
"files": [
"index.js",
"dist"
],
"types": "dist/default-theme.d.ts",
"unpkg": "dist/default-theme.global.js",
"sideEffects": false,
"repository": {
"type": "git",
"url": "git+https://github.com/DivanteLtd/shopware-pwa"
},
"license": "MIT"
}
Empty file.
1 change: 1 addition & 0 deletions packages/helpers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @shopware-pwa/helpers
7 changes: 7 additions & 0 deletions packages/helpers/api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../api-extractor.json",
"mainEntryPointFilePath": "./dist/packages/<unscopedPackageName>/src/index.d.ts",
"dtsRollup": {
"untrimmedFilePath": "./dist/<unscopedPackageName>.d.ts"
}
}
7 changes: 7 additions & 0 deletions packages/helpers/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict";

if (process.env.NODE_ENV === "production") {
module.exports = require("./dist/helpers.cjs.prod.js");
} else {
module.exports = require("./dist/helpers.cjs.js");
}
19 changes: 19 additions & 0 deletions packages/helpers/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "@shopware-pwa/helpers",
"version": "0.1.0",
"description": "@shopware-pwa/helpers",
"main": "index.js",
"module": "dist/helpers.esm-bundler.js",
"files": [
"index.js",
"dist"
],
"types": "dist/helpers.d.ts",
"unpkg": "dist/helpers.global.js",
"sideEffects": false,
"repository": {
"type": "git",
"url": "git+https://github.com/DivanteLtd/shopware-pwa"
},
"license": "MIT"
}
Empty file added packages/helpers/src/index.ts
Empty file.
1 change: 0 additions & 1 deletion packages/vue/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions packages/vue/index.js

This file was deleted.

27 changes: 0 additions & 27 deletions packages/vue/package.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/vue/src/index.ts

This file was deleted.

0 comments on commit 5525f08

Please sign in to comment.