Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

chore(scripts): clean up package scripts #3794

Merged
merged 1 commit into from
Dec 7, 2016

Conversation

cnishina
Copy link
Member

@cnishina cnishina commented Dec 5, 2016

  • npm start - installs dependencies and starts the testapp
  • npm run website - installs dependencies and starts the website
  • cleanup testapp package scripts that are not used
  • npm run format - shortcut for 'gulp format' for contributors that failed format check test

"tsc": "tsc",
"tsc:w": "tsc -w",
"lite": "lite-server"
"install_testapp": "npm install && npm run tsc",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be postinstall. Obviously we're installing the testapp, since we're in that folder. And postinstall isn't a problem since we never publish the testapp.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, postinstall would be better. Changed.

"lite": "lite-server"
"install_testapp": "npm install && npm run tsc",
"start": "npm run install_testapp && node scripts/web-server.js",
"start_detach": "node scripts/web-server.js &",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's weird that start does an install but start_detach doesn't.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, what is the point of this command? Presumably people could do npm start & on their own?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing install_testapp from start in favor of npm install. Removing start_detach since its only used in Travis.

- npm start - installs dependencies and starts the testapp
- npm run website - installs dependencies and starts the website
- cleanup testapp package scripts that are not used
- npm run format - shortcut for 'gulp format' for contributors that failed format check test
@cnishina cnishina merged commit 50c29ac into angular:master Dec 7, 2016
@cnishina cnishina deleted the cleanup_package branch January 6, 2017 20:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants