diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-01-07 23:53:32 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-01-07 23:53:32 +0100 |
commit | 8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf (patch) | |
tree | 899a872633f8c87a7ebb067b40b1ff1369851527 /packages/theme | |
parent | Merge (diff) | |
download | ferdium-app-8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf.tar.gz ferdium-app-8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf.tar.zst ferdium-app-8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf.zip |
wip
Diffstat (limited to 'packages/theme')
-rw-r--r-- | packages/theme/package.json | 7 | ||||
-rw-r--r-- | packages/theme/src/themes/dark/index.ts | 2 | ||||
-rw-r--r-- | packages/theme/src/themes/default/index.ts | 2 | ||||
-rw-r--r-- | packages/theme/webpack.config.js | 25 |
4 files changed, 29 insertions, 7 deletions
diff --git a/packages/theme/package.json b/packages/theme/package.json index 0bc0423bf..8b4cb8ef6 100644 --- a/packages/theme/package.json +++ b/packages/theme/package.json | |||
@@ -6,9 +6,6 @@ | |||
6 | "homepage": "https://github.com/meetfranz/franz", | 6 | "homepage": "https://github.com/meetfranz/franz", |
7 | "license": "Apache-2.0", | 7 | "license": "Apache-2.0", |
8 | "main": "lib/index.js", | 8 | "main": "lib/index.js", |
9 | "files": [ | ||
10 | "lib/**/*" | ||
11 | ], | ||
12 | "publishConfig": { | 9 | "publishConfig": { |
13 | "access": "public" | 10 | "access": "public" |
14 | }, | 11 | }, |
@@ -17,8 +14,8 @@ | |||
17 | "url": "git+https://github.com/meetfranz/franz.git" | 14 | "url": "git+https://github.com/meetfranz/franz.git" |
18 | }, | 15 | }, |
19 | "scripts": { | 16 | "scripts": { |
20 | "dev": "tsc -w", | 17 | "dev": "NODE_ENV=development ../../node_modules/.bin/webpack -w", |
21 | "prepare": "tsc", | 18 | "prepare": "../../node_modules/.bin/webpack", |
22 | "preprepare": "npm run test", | 19 | "preprepare": "npm run test", |
23 | "test": "npx mocha" | 20 | "test": "npx mocha" |
24 | }, | 21 | }, |
diff --git a/packages/theme/src/themes/dark/index.ts b/packages/theme/src/themes/dark/index.ts index 7eac5a3c3..3c17d03ae 100644 --- a/packages/theme/src/themes/dark/index.ts +++ b/packages/theme/src/themes/dark/index.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import color from 'color'; | 1 | import * as color from 'color'; |
2 | 2 | ||
3 | import * as legacyStyles from '../legacy'; | 3 | import * as legacyStyles from '../legacy'; |
4 | 4 | ||
diff --git a/packages/theme/src/themes/default/index.ts b/packages/theme/src/themes/default/index.ts index b22730413..f7d58a375 100644 --- a/packages/theme/src/themes/default/index.ts +++ b/packages/theme/src/themes/default/index.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import color from 'color'; | 1 | import * as color from 'color'; |
2 | 2 | ||
3 | import * as legacyStyles from '../legacy'; | 3 | import * as legacyStyles from '../legacy'; |
4 | 4 | ||
diff --git a/packages/theme/webpack.config.js b/packages/theme/webpack.config.js new file mode 100644 index 000000000..f7311109d --- /dev/null +++ b/packages/theme/webpack.config.js | |||
@@ -0,0 +1,25 @@ | |||
1 | const path = require('path'); | ||
2 | |||
3 | console.log(__dirname); | ||
4 | |||
5 | module.exports = { | ||
6 | context: __dirname, | ||
7 | entry: path.join(__dirname, '/src/index.ts'), | ||
8 | output: { | ||
9 | filename: 'index.js', | ||
10 | path: path.join(__dirname, 'lib'), | ||
11 | libraryTarget: 'commonjs2', | ||
12 | }, | ||
13 | module: { | ||
14 | rules: [{ | ||
15 | test: /\.tsx?$/, | ||
16 | loader: 'ts-loader', | ||
17 | exclude: /node_modules/, | ||
18 | }], | ||
19 | }, | ||
20 | resolve: { | ||
21 | extensions: ['.tsx', '.ts', '.js'], | ||
22 | }, | ||
23 | devtool: 'inline-source-map', | ||
24 | mode: process.env.NODE_ENV === 'development' ? 'development' : 'production', | ||
25 | }; | ||