Skip to content

Commit

Permalink
chore: facilitate better cross-project development (microsoft#863)
Browse files Browse the repository at this point in the history
* add non-clobbering build and watch scripts

* preserve output so multiple packages can be watched

* fix prepare script

* fixing animation build script

* fixing broken builds

* align animation package

* reverting image file

* fixing watch script in fast-animation
  • Loading branch information
nicholasrice authored Sep 10, 2018
1 parent 1467553 commit 7f4c906
Show file tree
Hide file tree
Showing 22 changed files with 87 additions and 46 deletions.
6 changes: 4 additions & 2 deletions packages/fast-animation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
},
"main": "dist/index.js",
"scripts": {
"build": "tsc -p ./lib/tsconfig.json",
"build:app": "webpack --config webpack/webpack.react.config.js",
"prepare": "tsc -p ./lib/tsconfig.json",
"prepare": "npm run build",
"start": "node_modules/.bin/webpack-dev-server --config webpack/webpack.react.config.js --progress",
"test": "npm run unit-tests && npm run build:app",
"tslint": "tslint -c ./tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'",
"unit-tests": "jest"
"unit-tests": "jest",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
6 changes: 4 additions & 2 deletions packages/fast-application-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json",
"prepare": "npm run clean:dist && npm run build",
"test": "npm run tslint && npm run unit-tests",
"tslint": "tslint -c ./tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'",
"unit-tests": "jest --maxWorkers=4",
"unit-tests:watch": "jest --watch"
"unit-tests:watch": "jest --watch",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
6 changes: 4 additions & 2 deletions packages/fast-colors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json",
"prepare": "npm run clean:dist && npm run build",
"test": "npm run tslint && npm run unit-tests",
"tslint": "tslint -c ./tslint.json '**/*.ts'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts'",
"unit-tests": "jest --maxWorkers=4",
"unit-tests:watch": "jest --watch"
"unit-tests:watch": "jest --watch",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json",
"prepare": "npm run clean:dist && npm run build",
"test": "npm run tslint",
"tslint": "tslint -c ./tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'"
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"devDependencies": {
"@microsoft/fast-tslint-rules": "^2.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json",
"prepare": "npm run clean:dist && npm run build",
"test": "npm run tslint",
"tslint": "tslint -c ./tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'"
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"devDependencies": {
"@microsoft/fast-tslint-rules": "^2.1.0",
Expand Down
8 changes: 5 additions & 3 deletions packages/fast-components-react-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,22 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json && npm run copy:all",
"build:app": "webpack --progress",
"clean:dist": "node ../../build/clean.js dist",
"convert:readme": "node ../../build/convert-readme.js .tmp",
"copy:all": "npm run copy:json-schema && npm run copy:readme",
"copy:json-schema": "node ../../build/copy-schemas.js",
"copy:readme": "node ../../build/copy-readme.js",
"build:app": "webpack --progress",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json && npm run copy:all",
"prepare": "npm run clean:dist && npm run build",
"start": "webpack-dev-server",
"test": "npm run convert:readme && npm run tslint && npm run unit-tests && npm run build:app",
"tslint": "tslint -c ./tslint.json 'src/**/*.ts{,x}' '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix 'src/**/*.ts{,x}' '**/*.ts{,x}'",
"unit-tests": "jest --maxWorkers=4 --env=jsdom --setupTestFrameworkScriptFile=raf/polyfill",
"unit-tests:update": "jest --updateSnapshot",
"unit-tests:watch": "jest --watch"
"unit-tests:watch": "jest --watch",
"watch": "tsc -p ./tsconfig -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface ICheckboxHandledProps {
/**
* The HTML tag (defaults to CheckboxHTMLTags.checkbox)
*/
tag?: CheckboxHTMLTags;
tag?: string;

/**
* The checked state
Expand Down
8 changes: 5 additions & 3 deletions packages/fast-components-react-msft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,22 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json && npm run copy:all",
"build:app": "webpack --progress --mode=production",
"clean:dist": "node ../../build/clean.js dist",
"convert:readme": "node ../../build/convert-readme.js .tmp",
"copy:all": "npm run copy:json-schema && npm run copy:readme",
"copy:json-schema": "node ../../build/copy-schemas.js",
"copy:readme": "node ../../build/copy-readme.js",
"build:app": "webpack --progress --mode=production",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json && npm run copy:all",
"prepare": "npm run clean:dist && npm run build",
"start": "webpack-dev-server",
"test": "npm run convert:readme && npm run tslint && npm run unit-tests && npm run build:app",
"tslint": "tslint -c ./tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'",
"unit-tests": "jest --maxWorkers=4",
"unit-tests:update": "jest --updateSnapshot",
"unit-tests:watch": "jest --watch"
"unit-tests:watch": "jest --watch",
"watch": "tsc -p ./tsconfig.json -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
5 changes: 4 additions & 1 deletion packages/fast-components-styles-msft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
"tslint": "tslint -c ./tslint.json '**/*.ts'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts'",
"test": "npm run tslint",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json"
"build": "tsc -p ./tsconfig.json",
"build:watch": "npm run build -- -w",
"prepare": "npm run clean:dist && npm run build",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"devDependencies": {
"@microsoft/fast-application-utilities": "^2.1.0",
Expand Down
8 changes: 5 additions & 3 deletions packages/fast-css-editor-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json && npm run copy:all",
"build:app": "webpack --progress",
"clean:dist": "node ../../build/clean.js dist",
"copy:all": "npm run copy:json-schema",
"copy:json-schema": "node ../../build/copy-schemas.js",
"build:app": "webpack --progress",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json && npm run copy:all",
"prepare": "npm run clean:dist && npm run build",
"start": "webpack-dev-server",
"test": "npm run unit-tests && npm run build:app",
"tslint": "tslint -c ./tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'",
"unit-tests": "jest --maxWorkers=4",
"unit-tests:update": "jest --updateSnapshot",
"unit-tests:watch": "jest --watch"
"unit-tests:watch": "jest --watch",
"watch": "tsc -p ./tsconfig.json -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
8 changes: 5 additions & 3 deletions packages/fast-development-site-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build:app": "webpack --progress",
"clean:dist": "node ../../build/clean.js dist",
"convert:readme": "node ../../build/convert-readme.js --src=app/**/README.md .tmp",
"build:app": "webpack --progress",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json",
"prepare": "npm run clean:dist && npm run build",
"start": "webpack-dev-server --progress",
"test": "npm run convert:readme && npm run tslint && npm run build:app",
"tslint": "tslint -c ./tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'"
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"dependencies": {
"@microsoft/fast-application-utilities": "^2.1.0",
Expand Down
8 changes: 5 additions & 3 deletions packages/fast-form-generator-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"clean:dist": "node ../../build/clean.js dist",
"build": "tsc -p ./tsconfig.json",
"build:app": "webpack --progress",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"start": "webpack-dev-server",
"test": "npm run tslint && npm run unit-tests && npm run build:app",
"tslint": "tslint -c ./tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'",
"unit-tests": "jest --maxWorkers=4",
"unit-tests:update": "jest --updateSnapshot",
"unit-tests:watch": "jest --watch"
"unit-tests:watch": "jest --watch",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
8 changes: 5 additions & 3 deletions packages/fast-jest-snapshots-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"prepare": "tsc -p ./tsconfig.json",
"test": "npm run tslint",
"build": "tsc -p ./tsconfig.json",
"prepare": "npm run build",
"start": "webpack-dev-server",
"test": "npm run tslint",
"tslint": "tslint -c ./tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'"
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"devDependencies": {
"@microsoft/fast-tslint-rules": "^2.1.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/fast-jss-manager-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts'",
"tslint:watch": "node build/tslint-watch.js",
"unit-tests": "jest --maxWorkers=4",
"unit-tests:watch": "jest --watch"
"unit-tests:watch": "jest --watch",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
6 changes: 4 additions & 2 deletions packages/fast-jss-manager-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json",
"prepare": "npm run clean:dist && npm run build",
"test": "npm run tslint && npm run unit-tests",
"tslint": "tslint -c tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c tslint.json '**/*.ts{,x}' --fix",
"tslint:watch": "node build/tslint-watch.js",
"unit-tests": "jest --maxWorkers=4",
"unit-tests:watch": "jest --watch && npm-watch"
"unit-tests:watch": "jest --watch && npm-watch",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
6 changes: 4 additions & 2 deletions packages/fast-jss-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json",
"prepare": "npm run clean:dist && npm run build",
"test": "npm run tslint",
"tslint": "tslint -c ./tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'",
"test": "npm run tslint"
"watch": "npm run build -- -w --preserveWatchOutput"
},
"devDependencies": {
"@microsoft/fast-tslint-rules": "^2.1.0",
Expand Down
6 changes: 4 additions & 2 deletions packages/fast-jss-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"test": "npm run tslint && npm run unit-tests",
"tslint": "tslint -c ./tslint.json '**/*.ts'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts'",
"test": "npm run tslint && npm run unit-tests",
"unit-tests": "jest --maxWorkers=4",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json"
"watch": "npm run build -- -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
8 changes: 5 additions & 3 deletions packages/fast-layouts-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@
"main": "dist/index.js",
"type": "dist/index.d.ts",
"scripts": {
"clean:dist": "node ../../build/clean.js dist",
"build": "tsc -p ./tsconfig.json",
"build:app": "webpack --progress",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"start": "webpack-dev-server",
"test": "npm run tslint && npm run unit-tests && npm run build:app",
"tslint": "tslint -c ./tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'",
"unit-tests": "jest --maxWorkers=4",
"unit-tests:update": "jest --updateSnapshot",
"unit-tests:watch": "jest --watch"
"unit-tests:watch": "jest --watch",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
6 changes: 4 additions & 2 deletions packages/fast-markdown-msft-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json",
"prepare": "npm run clean:dist && npm run build",
"test": "npm run tslint && npm run unit-tests",
"tslint": "tslint -c tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c tslint.json '**/*.ts{,x}' --fix",
"unit-tests": "jest --maxWorkers=4",
"unit-tests:watch": "jest --watch && npm-watch"
"unit-tests:watch": "jest --watch && npm-watch",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
1 change: 1 addition & 0 deletions packages/fast-markdown-msft-react/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.*"
]
}
6 changes: 4 additions & 2 deletions packages/fast-viewer-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@
],
"main": "dist/index.js",
"scripts": {
"build": "tsc -p ./src/tsconfig.json",
"build:app": "webpack --progress",
"prepare": "tsc -p ./src/tsconfig.json",
"prepare": "npm run build",
"start": "webpack-dev-server --progress",
"test": "npm run tslint && npm run unit-tests && npm run build:app",
"tslint": "tslint -c tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c tslint.json '**/*.ts{,x}' --fix",
"unit-tests": "jest --maxWorkers=4",
"unit-tests:update": "jest --update"
"unit-tests:update": "jest --update",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down
6 changes: 4 additions & 2 deletions packages/fast-web-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && tsc -p ./tsconfig.json",
"prepare": "npm run clean:dist && npm run build",
"test": "npm run tslint && npm run unit-tests",
"tslint": "tslint -c ./tslint.json '**/*.ts{,x}'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts{,x}'",
"unit-tests": "jest --maxWorkers=4",
"unit-tests:watch": "jest --watch"
"unit-tests:watch": "jest --watch",
"watch": "npm run build -- -w --preserveWatchOutput"
},
"jest": {
"collectCoverage": true,
Expand Down

0 comments on commit 7f4c906

Please sign in to comment.