Skip to content

Commit 07f26f4

Browse files
committed
Split into create-modular-app and modular-scripts packages
Also, generate the widgets map at transpilation time.
1 parent 27b20a7 commit 07f26f4

23 files changed

+813
-364
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"scripts": {
1010
"prettier": "prettier --write .",
1111
"lint": "eslint --cache --fix --ext .js,.ts,.tsx --max-warnings 0 .",
12-
"test": "jest"
12+
"test": "jest",
13+
"build": "workspaces-run --ignore eslint-config-modular -- yarn build"
1314
},
1415
"devDependencies": {
1516
"@babel/core": "^7.9.6",
@@ -41,7 +42,8 @@
4142
"react": "^16.13.1",
4243
"react-dom": "^16.13.1",
4344
"semver": "^7.3.2",
44-
"typescript": "~3.9.3"
45+
"typescript": "~3.9.3",
46+
"workspaces-run": "^1.0.1"
4547
},
4648
"husky": {
4749
"hooks": {

packages/cli/src/cli.ts

Lines changed: 0 additions & 347 deletions
This file was deleted.
File renamed without changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "create-modular-app",
3+
"version": "0.0.0",
4+
"license": "Apache-2.0",
5+
"bin": {
6+
"create-modular-app": "build/cli.js"
7+
},
8+
"engines": {
9+
"node": ">=10"
10+
},
11+
"scripts": {
12+
"clean": "rimraf build",
13+
"prebuild": "yarn clean",
14+
"build": "babel --root-mode upward src --out-dir build --extensions .ts --ignore *.test.ts"
15+
},
16+
"dependencies": {
17+
"chalk": "^4.1.0",
18+
"execa": "^4.0.2",
19+
"fs-extra": "^9.0.1"
20+
},
21+
"devDependencies": {
22+
"@types/fs-extra": "^5.0.2",
23+
"@types/node": "*",
24+
"rimraf": "^3.0.2"
25+
}
26+
}

0 commit comments

Comments
 (0)