Skip to content
This repository was archived by the owner on Sep 17, 2022. It is now read-only.

Commit ac96800

Browse files
committed
Setup tsup and jest
1 parent 7279914 commit ac96800

File tree

4 files changed

+3391
-232
lines changed

4 files changed

+3391
-232
lines changed

jest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2+
module.exports = {
3+
preset: 'ts-jest',
4+
testEnvironment: 'node',
5+
testMatch: ['<rootDir>/__tests__/**/*spec.[jt]s?(x)']
6+
};

package.json

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,40 @@
2020
"webpack",
2121
"loader"
2222
],
23-
"main": "dist/fluent-vue-loader.cjs.js",
24-
"module": "dist/fluent-vue-loader.esm.js",
25-
"types": "dist/fluent-vue-loader.d.ts",
26-
"exports": {
27-
"import": "./dist/fluent-vue-loader.esm.js",
28-
"require": "./dist/fluent-vue-loader.cjs.js"
29-
},
30-
"files": [
31-
"dist",
32-
"README.md"
33-
],
3423
"author": "Ivan Demchuk <ivan.demchuk@gmail.com>",
3524
"repository": {
3625
"type": "git",
3726
"url": "https://github.com/Demivan/fluent-vue"
3827
},
3928
"homepage": "https://fluent-vue.demivan.me/integrations/webpack.html",
4029
"license": "MIT",
30+
"scripts": {
31+
"build": "tsup src/index.ts --format esm,cjs --dts",
32+
"test": "jest"
33+
},
34+
"main": "dist/index.js",
35+
"module": "dist/index.mjs",
36+
"types": "dist/index.d.ts",
37+
"exports": {
38+
"import": "./dist/index.mjs",
39+
"require": "./dist/index.js"
40+
},
41+
"files": [
42+
"dist",
43+
"README.md"
44+
],
4145
"devDependencies": {
46+
"@fluent/bundle": "^0.17.0",
47+
"@types/jest": "^27.0.2",
4248
"@types/loader-utils": "^2.0.3",
49+
"@vue/compiler-sfc": "^3.2.20",
50+
"jest": "^27.3.1",
51+
"memfs": "^3.3.0",
52+
"ts-jest": "^27.0.7",
53+
"tsup": "^5.5.0",
54+
"typescript": "^4.4.4",
55+
"vue": "^3.2.20",
56+
"vue-loader": "^16.8.2",
4357
"webpack": "^5.58.2"
4458
},
4559
"dependencies": {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy