Skip to content

Commit 144a4dd

Browse files
committed
build: rename build/ to scripts/
1 parent 2494772 commit 144a4dd

14 files changed

+18
-18
lines changed

.flowconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[ignore]
22
.*/node_modules/.*
33
.*/test/.*
4-
.*/build/.*
4+
.*/scripts/.*
55
.*/examples/.*
66
.*/benchmarks/.*
77

.github/CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ The default test script will do the following: lint with ESLint -> type check wi
7575

7676
## Project Structure
7777

78-
- **`build`**: contains build-related configuration files. In most cases you don't need to touch them. However, it would be helpful to familiarize yourself with the following files:
78+
- **`scripts`**: contains build-related scripts and configuration files. In most cases you don't need to touch them. However, it would be helpful to familiarize yourself with the following files:
7979

80-
- `build/alias.js`: module import aliases used across all source code and tests.
80+
- `scripts/alias.js`: module import aliases used across all source code and tests.
8181

82-
- `build/config.js`: contains the build configurations for all files found in `dist/`. Check this file if you want to find out the entry source file for a dist file.
82+
- `scripts/config.js`: contains the build configurations for all files found in `dist/`. Check this file if you want to find out the entry source file for a dist file.
8383

8484
- **`dist`**: contains built files for distribution. Note this directory is only updated when a release happens; they do not reflect the latest changes in development branches.
8585

package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
"types/*.d.ts"
1414
],
1515
"scripts": {
16-
"dev": "rollup -w -c build/config.js --environment TARGET:web-full-dev",
17-
"dev:cjs": "rollup -w -c build/config.js --environment TARGET:web-runtime-cjs",
18-
"dev:esm": "rollup -w -c build/config.js --environment TARGET:web-runtime-esm",
16+
"dev": "rollup -w -c scripts/config.js --environment TARGET:web-full-dev",
17+
"dev:cjs": "rollup -w -c scripts/config.js --environment TARGET:web-runtime-cjs",
18+
"dev:esm": "rollup -w -c scripts/config.js --environment TARGET:web-runtime-esm",
1919
"dev:test": "karma start test/unit/karma.dev.config.js",
20-
"dev:ssr": "rollup -w -c build/config.js --environment TARGET:web-server-renderer",
21-
"dev:compiler": "rollup -w -c build/config.js --environment TARGET:web-compiler ",
22-
"dev:weex": "rollup -w -c build/config.js --environment TARGET:weex-framework",
23-
"dev:weex:factory": "rollup -w -c build/config.js --environment TARGET:weex-factory",
24-
"dev:weex:compiler": "rollup -w -c build/config.js --environment TARGET:weex-compiler ",
25-
"build": "node build/build.js",
20+
"dev:ssr": "rollup -w -c scripts/config.js --environment TARGET:web-server-renderer",
21+
"dev:compiler": "rollup -w -c scripts/config.js --environment TARGET:web-compiler ",
22+
"dev:weex": "rollup -w -c scripts/config.js --environment TARGET:weex-framework",
23+
"dev:weex:factory": "rollup -w -c scripts/config.js --environment TARGET:weex-factory",
24+
"dev:weex:compiler": "rollup -w -c scripts/config.js --environment TARGET:weex-compiler ",
25+
"build": "node scripts/build.js",
2626
"build:ssr": "npm run build -- web-runtime-cjs,web-server-renderer",
2727
"build:weex": "npm run build -- weex",
2828
"test": "npm run lint && flow check && npm run test:types && npm run test:cover && npm run test:e2e -- --env phantomjs && npm run test:ssr && npm run test:weex",
@@ -37,10 +37,10 @@
3737
"flow": "flow check",
3838
"sauce": "karma start test/unit/karma.sauce.config.js",
3939
"bench:ssr": "npm run build:ssr && node benchmarks/ssr/renderToString.js && node benchmarks/ssr/renderToStream.js",
40-
"release": "bash build/release.sh",
41-
"release:weex": "bash build/release-weex.sh",
42-
"release:note": "node build/gen-release-note.js",
43-
"setup": "node build/setup.js",
40+
"release": "bash scripts/release.sh",
41+
"release:weex": "bash scripts/release-weex.sh",
42+
"release:note": "node scripts/gen-release-note.js",
43+
"setup": "node scripts/setup.js",
4444
"commit": "git-cz"
4545
},
4646
"repository": {

build/alias.js scripts/alias.js

File renamed without changes.

build/build.js scripts/build.js

File renamed without changes.

build/config.js scripts/config.js

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

build/setup.js scripts/setup.js

File renamed without changes.

test/unit/karma.base.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var alias = require('../../build/alias')
1+
var alias = require('../../scripts/alias')
22
var webpack = require('webpack')
33

44
var webpackConfig = {

0 commit comments

Comments
 (0)