Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typescript for naming.presets #323

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

yarastqt
Copy link
Member

@yarastqt yarastqt commented Jun 24, 2018

Resolve for this #322

TODO:

  • Починить тесты

@yarastqt yarastqt force-pushed the yarastqt.issue-322 branch from 0876c9f to 025a0c9 Compare June 24, 2018 19:10
@yarastqt
Copy link
Member Author

Добавилд сборку для es и commonjs модулей, сделал общий конфиг для typescript, его можно будет заиспользовать в остальных пакетах.

Так же возможно вынести куда-то в общее место секцию со скриптами build:cjs, build:es, build:typings, правда я пока не придумал куда.

@yarastqt
Copy link
Member Author

cc @zxqfox @Yeti-or

@yarastqt yarastqt force-pushed the yarastqt.issue-322 branch from 025a0c9 to 9679fe8 Compare August 15, 2018 12:58
"files": [
"*.js",
"index.d.ts"
],
"scripts": {
"build:cjs": "tsc --module commonjs --outDir lib",
"build:es": "tsc --module es2015 --outDir es",
"build:typings": "tsc --emitDeclarationOnly --declaration --declarationDir typings",
Copy link
Member

Choose a reason for hiding this comment

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

А зачем тайпинги отдельно собирать? Можно же за один прихлоп.

Copy link
Member Author

@yarastqt yarastqt Aug 15, 2018

Choose a reason for hiding this comment

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

Если в конфиге указать, то он будет ругаться на то, что у нас уже есть сгенерированные файлы, можно конечно в 1 билд скрипт это добавить типо tsc --module commonjs --outDir lib --declaration --declarationDir typings
Кажется норм, уберу этот скрипт

@yarastqt yarastqt force-pushed the yarastqt.issue-322 branch 2 times, most recently from 8d64b43 to 36f1949 Compare August 16, 2018 20:08
@yarastqt yarastqt force-pushed the yarastqt.issue-322 branch from 36f1949 to eb7bf91 Compare August 19, 2018 16:43
@yarastqt yarastqt force-pushed the yarastqt.issue-322 branch from eb7bf91 to 40b0e1b Compare August 19, 2018 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants