I am making changes to the typescript files which I though browserfy would watch and then update the js files but that is not happening.
I had an earlier error in terminal bash:tsc not found but I was still able to npm start.
Typescript is not converting the JS files
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I don't have experience with browserify yet but tsc in watch mode does it.
Here is the config we use that is borrowed from Angular2 QuickStart.
npm start runs the server and compiles the files in tsc:w watch mode, so when ts changes, js is compiled. Lite server picks it up and refreshes the page. Do you have a similar config?
Here is the config we use that is borrowed from Angular2 QuickStart.
Code: Select all
{
"name": "angular2-quickstart",
"version": "1.0.0",
"scripts": {
"start": "concurrently \"npm run tsc:w\" \"npm run lite\" ",
"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server",
"typings": "typings",
"postinstall": "typings install"
},
"license": "ISC",
"dependencies": {
"angular2": "2.0.0-beta.7",
"systemjs": "0.19.22",
"es6-promise": "^3.0.2",
"es6-shim": "^0.33.3",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2",
"zone.js": "0.5.15"
},
"devDependencies": {
"concurrently": "^2.0.0",
"lite-server": "^2.1.0",
"typescript": "^1.8.2",
"typings":"^0.6.8"
}
}
Got it working by reinstalling
Code: Select all
npm install typings
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Glad to hear!
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests