Skip to content

Commit d364918

Browse files
authored
Merge pull request #13 from jihchi/integrate_plugin-rescript
Integrate `plugin-rescript`
2 parents 5898778 + c8d2d62 commit d364918

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@
3030
"access": "public"
3131
},
3232
"scripts": {
33-
"build": "npm run build:res && snowpack build",
34-
"build:res": "rescript build",
35-
"clean": "npm run clean:res",
36-
"clean:res": "rescript clean",
33+
"build": "snowpack build",
34+
"clean": "rescript clean",
3735
"start": "snowpack dev",
3836
"test": "web-test-runner \"src/**/__tests__/*.bs.js\""
3937
},
@@ -43,14 +41,14 @@
4341
"react-dom": "^17.0.2"
4442
},
4543
"devDependencies": {
44+
"@jihchi/plugin-rescript": "^1.0.0",
4645
"@snowpack/plugin-dotenv": "^2.1.0",
4746
"@snowpack/plugin-react-refresh": "^2.4.2",
48-
"@snowpack/plugin-run-script": "^2.3.0",
4947
"@snowpack/web-test-runner-plugin": "^0.2.2",
5048
"@testing-library/react": "^11.2.6",
5149
"@web/test-runner": "^0.12.19",
5250
"chai": "^4.3.4",
5351
"rescript": "^9.1.1",
54-
"snowpack": "^3.3.3"
52+
"snowpack": "~3.0"
5553
}
5654
}

snowpack.config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ module.exports = {
88
plugins: [
99
'@snowpack/plugin-react-refresh',
1010
'@snowpack/plugin-dotenv',
11-
[
12-
'@snowpack/plugin-run-script',
13-
{
14-
cmd: 'npm run build:res',
15-
watch: '$1 -- -w',
16-
},
17-
],
11+
'@jihchi/plugin-rescript',
1812
],
1913
packageOptions: {
2014
/* ... */

0 commit comments

Comments
 (0)