Skip to content

Commit

Permalink
Remove webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelboyles committed Aug 6, 2021
1 parent b307a15 commit 139b184
Show file tree
Hide file tree
Showing 9 changed files with 2,519 additions and 12,918 deletions.
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ module.exports = {
globals: {
'ts-jest': {
compiler: 'ttypescript',
tsconfig: './tsconfig.json',
diagnostics: false //TODO work out why type-checking fails
tsconfig: './src/test/tsconfig-test.json',
diagnostics: false //TODO work out why type-checking fails
},
}
};
15,316 changes: 2,489 additions & 12,827 deletions package-lock.json

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"version": "0.0.1",
"description": "Simplify writing Redux reducers with compile-time transformations",
"scripts": {
"build": "webpack && node build/copy-to-dist.js",
"start": "webpack serve --mode development --open --hot",
"build": "tsc && node build/copy-to-dist.js",
"test": "jest",
"testcov": "jest --coverage",
"prepack": "node ../build/message.js"
Expand All @@ -21,18 +20,20 @@
"type": "git",
"url": "https://github.com/michaelboyles/redcr"
},
"files": [
"index.d.ts",
"index.js",
"transform.js"
],
"main": "index.js",
"types": "index.d.ts",
"devDependencies": {
"@types/jest": "^26.0.24",
"@types/node": "^15.12.5",
"html-webpack-plugin": "^5.3.2",
"@types/node": "^16.4.13",
"jest": "^27.0.6",
"ts-jest": "^27.0.4",
"ts-loader": "^8.1.0",
"ts-node": "^10.1.0",
"ttypescript": "1.5.12",
"typescript": "^4.3.4",
"webpack": "^5.28.0",
"webpack-cli": "^4.6.0",
"webpack-dev-server": "^3.11.2"
"typescript": "^4.3.5"
}
}
9 changes: 0 additions & 9 deletions src/test/manual/index.html

This file was deleted.

21 changes: 0 additions & 21 deletions src/test/manual/main.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/test/manual/misc.ts

This file was deleted.

12 changes: 12 additions & 0 deletions src/test/tsconfig-test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "ES2021",
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true,
"allowJs": true,
"plugins": [
{ "transform": "./src/transform.ts" },
]
}
}
11 changes: 6 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"files": ["src/index.ts", "src/transform.ts"],
"compilerOptions":
{
"jsx": "react",
"plugins": [
{ "transform": "./src/transform.ts" },
],
"target": "ES2021",
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true
"strict": true,
"declaration": true,
"outDir": "dist",
"removeComments": true,
"allowJs": true
}
}
35 changes: 0 additions & 35 deletions webpack.config.js

This file was deleted.

0 comments on commit 139b184

Please sign in to comment.