Skip to content
Snippets Groups Projects
Commit 2058ddfb authored by Jack Reed's avatar Jack Reed
Browse files

Create a way to build an es module version of Mirador

parent 0ac5ac1d
No related branches found
No related tags found
No related merge requests found
...@@ -7,14 +7,16 @@ ...@@ -7,14 +7,16 @@
"dist" "dist"
], ],
"scripts": { "scripts": {
"clean": "rm -rf ./dist",
"lint": "node_modules/.bin/eslint ./ && node_modules/.bin/sass-lint -v ./src/styles/**/* && node ./scripts/i18n-lint.js", "lint": "node_modules/.bin/eslint ./ && node_modules/.bin/sass-lint -v ./src/styles/**/* && node ./scripts/i18n-lint.js",
"server": "node_modules/.bin/http-server", "server": "node_modules/.bin/http-server",
"test": "npm run build && npm run lint && npm run size && jest -c jest.json", "test": "npm run build && npm run lint && npm run size && jest -c jest.json",
"test:watch": "jest -c jest.json --watch", "test:watch": "jest -c jest.json --watch",
"build": "webpack --mode=production", "build": "webpack --mode=production",
"build:dev": "webpack --mode=development", "build:dev": "webpack --mode=development",
"build:es": "mkdir -p dist/es && cp -r src dist/es && babel dist/es -d dist/es",
"build:watch": "webpack --watch --mode=development", "build:watch": "webpack --watch --mode=development",
"prepublishOnly": "rm -rf ./dist && npm run build", "prepublishOnly": "npm run clean && npm run build:es && npm run build",
"size": "size-limit", "size": "size-limit",
"start": "npm run build:dev && concurrently \"npm run build:watch\" \"npm run server -- -p 4444\"", "start": "npm run build:dev && concurrently \"npm run build:watch\" \"npm run server -- -p 4444\"",
"server:json": "node ./scripts/json-server/server.js >> ./scripts/json-server/json-server.log" "server:json": "node ./scripts/json-server/server.js >> ./scripts/json-server/json-server.log"
...@@ -65,6 +67,7 @@ ...@@ -65,6 +67,7 @@
"uuid": "^3.3.2" "uuid": "^3.3.2"
}, },
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.0", "@babel/core": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.3.4", "@babel/plugin-transform-runtime": "^7.3.4",
"@babel/preset-env": "^7.3.1", "@babel/preset-env": "^7.3.1",
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment