Skip to content

Commit

Permalink
build(common): setup env-dependent ts build process
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Yorsh committed Jun 7, 2019
1 parent df7cf31 commit 5e28352
Show file tree
Hide file tree
Showing 7 changed files with 180 additions and 22 deletions.
155 changes: 144 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@
"bugs": {
"url": "https://github.com/akveo/react-native-ui-kitten/issues"
},
"main": "index.js",
"scripts": {
"start": "npm run start:pg:dev",
"start:pg": "npm run install:pg && npm start --prefix ./src/playground",
"start:pg:prod": "npm run env:set -- prod && npm run start:pg",
"start:pg:dev": "npm run env:set -- dev && npm run start:pg",
"env:set": "sh ./scripts/environment/set-env.sh",
"build": "tsc",
"env:set": "./scripts/environment/set-env.sh",
"build": "./scripts/build/compile-ts.sh",
"build:transform": "./scripts/build/transform-paths.sh",
"build:dev": "npm run build -- dev && npm run build:transform -- dev",
"build:prod": "npm run build -- prod && npm run build:transform -- prod",
"clean": "rimraf ./dist",
"docs:parse": "gulp docs",
"docs:serve": "cd docs && npm start",
Expand All @@ -28,11 +30,11 @@
"ci:install": "npm ci && npm run ci:install:pg",
"ci:install:pg": "( cd ./src/playground && npm ci )",
"ci:lint": "npm run lint",
"ci:build": "npm run build -- -p ./tsconfig.dev.json",
"ci:build": "npm run build:prod",
"ci:test": "npm t -- --ci --coverage && cat ./dist/jest/coverage/lcov.info | coveralls",
"install:pg": "( cd ./src/playground && npm i )",
"publish": "./scripts/publish/publish.sh",
"release:prepare": "npm run clean && npm run build -- -p ./tsconfig.publish.json",
"release:prepare": "npm run clean && npm run build:prod",
"release:validate": "npm run lint && npm run test",
"release": "npm run release:prepare && npm run release:validate && npm run publish",
"test": "jest"
Expand Down Expand Up @@ -72,6 +74,7 @@
"rimraf": "^2.6.2",
"ts-jest": "^23.10.5",
"ts-node": "^3.2.2",
"tscpaths": "0.0.9",
"tslint": "^5.12.1",
"typedoc": "^0.14.2",
"typescript": "^3.5.1"
Expand Down
4 changes: 4 additions & 0 deletions scripts/build/compile-ts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

env=${1}
tsc -p ./tsconfig.${env}.json
4 changes: 4 additions & 0 deletions scripts/build/transform-paths.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

env=${1}
tscpaths -p ./tsconfig.${env}.json -s ./src -o ./dist/tsc-out
2 changes: 1 addition & 1 deletion src/framework/ui/support/services/validation.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isValidString } from '@kitten/ui/support/services/validation.service';
import { isValidString } from './validation.service';

describe('@validation: service checks', () => {

Expand Down
Loading

0 comments on commit 5e28352

Please sign in to comment.