Skip to content

Commit

Permalink
Introduce webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
CFiggers committed Sep 2, 2023
1 parent 3bbe54e commit 06d6106
Show file tree
Hide file tree
Showing 24 changed files with 103 additions and 1,322 deletions.
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@
},
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
}
},
"cSpell.words": [
"calva",
"Jackout",
"paredit"
]
}
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"isBackground": true,

// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch",
"problemMatcher": "$ts-webpack-watch",
"tasks": [
{
"label": "npm",
Expand Down
26 changes: 17 additions & 9 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
.vscode/**
.vscode-test/**
out/test/**
test/**
src/**
**/*.map
.gitignore
tsconfig.json
vsc-extension-quickstart.md
# Put everything on the blacklist by default
*
*/**
**/.DS_Store
*/**/.DS_Store

# Whitelist
!language-configuration.json
!hy.configuration.json
!images/**
!dist/**
!package.json
!README.md
!CHANGELOG.md
!LICENSE.md
!syntaxes/**
!snippets/**
3 changes: 3 additions & 0 deletions dist/extension.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions dist/extension.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
1 change: 1 addition & 0 deletions dist/extension.js.map

Large diffs are not rendered by default.

26 changes: 19 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"hy",
"syntax"
],
"version": "0.0.4",
"version": "0.0.5",
"publisher": "hylang",
"icon": "images/hy-logo-small.png",
"main": "./out/hyMain",
"main": "./dist/extension.js",
"license": "MIT",
"author": {
"name": "Caleb Figgers"
Expand Down Expand Up @@ -929,13 +929,21 @@
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"test": "node ./node_modules/vscode/bin/test"
"compile": "npm run compile-cljs && npm run compile-ts",
"lint": "eslint . --ext .ts,.tsx",
"watch": "webpack --mode none --watch",
"compile-cljs": "npx shadow-cljs compile :calva-lib",
"compile-ts": "npx tsc --project ./tsconfig.json",
"clean": "rimraf ./out && rimraf ./tsconfig.tsbuildinfo && rimraf ./cljs-out",
"precompile": "npm i && npm run clean",
"release-cljs": "npx shadow-cljs release :calva-lib",
"prerelease": "npm run precompile && npm run release-cljs",
"release": "webpack --mode production",
"vscode:prepublish": "npm run release"
},
"dependencies": {
"@types/universal-analytics": "^0.4.2",
"acorn": "^6.4.1",
"acorn": "^6.4.1",
"immutable": "3.8.1",
"immutable-cursor": "2.0.1",
"lodash": "^4.17.19",
Expand All @@ -948,6 +956,10 @@
"@types/node": "^12.12.0",
"@types/vscode": "^1.34.0",
"mocha": "^10.1.0",
"typescript": "^4.7.4"
"rimraf": "^5.0.1",
"ts-loader": "^9.4.4",
"typescript": "^4.7.4",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
}
}
13 changes: 0 additions & 13 deletions src/cljs-lib/test/calva/fmt/editor_test.cljs

This file was deleted.

Loading

0 comments on commit 06d6106

Please sign in to comment.