Skip to content

Commit 309929e

Browse files
committed
Implement switching betwween different project languages
1 parent 9012444 commit 309929e

File tree

2 files changed

+87
-3
lines changed

2 files changed

+87
-3
lines changed

package-lock.json

+84
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,16 @@
77
"build": "react-app-rewired build",
88
"test": "react-app-rewired test",
99
"deploy": "npm run build-preview && npm run build-docs && gh-pages -d build --repo git@github.com:modularcode/modular-admin-react.git --branch gh-pages",
10-
1110
"build-preview": "cross-env PUBLIC_PATH='/' npm run build && echo modular-admin-react.modularcode.io > ./build/CNAME",
1211
"build-docs": "build-storybook --docs -s ./public -o build/docs",
1312
"build-storybook": "build-storybook",
1413
"storybook": "start-storybook -p 6060",
15-
14+
"use:es": "symlink-dir .src-es src",
15+
"use:ts": "symlink-dir .src-ts src",
1616
"es:init": "npm run es:clean && npm run es:build && npm run es:prettify",
1717
"es:clean": "rimraf src-es/",
1818
"es:build": "tsc --project ./tsconfig.to-es.json",
1919
"es:prettify": "prettier --config ./.prettierrc.js --write \"src-es/**/*.(js|jsx)\"",
20-
2120
"eject": "react-scripts eject"
2221
},
2322
"homepage": "http://modular-admin-react.modularcode.io",
@@ -71,6 +70,7 @@
7170
"react-app-rewired": "^2.1.8",
7271
"react-docgen-typescript-loader": "^3.7.2",
7372
"rimraf": "^3.0.2",
73+
"symlink-dir": "^5.0.0",
7474
"ts-loader": "^9.1.1"
7575
},
7676
"eslintConfig": {

0 commit comments

Comments
 (0)