Skip to content

Conversation

@profnandaa
Copy link
Member

index.js has a strong dep for webpack, etc builds. Before publishing, you should run
again to generate all the files but I forgot to do this in 13.5.0 which broke people. For this case, I'd prefer that we restore at least auto-generated file; for now.

However -- we need to find a more long-term solution that helps our publishing pipeline predictability. For my case, I'd skipped a step to auto-generate files. I'd done this one machine but was firewalled, so had to move machines and on the later, I forgot step before publishing.

@ezkemboi @tux-tn -- let's think about the best soln here...

index.js has a strong dep for webpack, etc builds. Before publishing, you should run
> [email protected] pretest /home/nandaa/dev/opensource/validator.js
> npm run build && npm run lint

> [email protected] build /home/nandaa/dev/opensource/validator.js
> npm run build:browser && npm run build:node && npm run build:es

> [email protected] build:browser /home/nandaa/dev/opensource/validator.js
> node --require @babel/register build-browser && npm run minify

> [email protected] minify /home/nandaa/dev/opensource/validator.js
> uglifyjs validator.js -o validator.min.js  --compress --mangle --comments /Copyright/

> [email protected] build:node /home/nandaa/dev/opensource/validator.js
> babel src -d .

Successfully compiled 99 files with Babel (2323ms).

> [email protected] build:es /home/nandaa/dev/opensource/validator.js
> babel src -d es --env-name=es

Successfully compiled 99 files with Babel (1600ms).

> [email protected] lint /home/nandaa/dev/opensource/validator.js
> eslint src test

> [email protected] test /home/nandaa/dev/opensource/validator.js
> nyc mocha --require @babel/register --reporter dot

  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
  ․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․

  207 passing (180ms)

=============================== Coverage summary ===============================
Statements   : 100% ( 1918/1918 )
Branches     : 100% ( 1112/1112 )
Functions    : 100% ( 194/194 )
Lines        : 100% ( 1773/1773 )
================================================================================ again to generate all the files but I forgot to do this in 13.5.0 which broke people. For this case, I'd prefer that we restore at least  autogenerated file; for now.
@profnandaa profnandaa changed the title fix: return index.js due to strong dep fix: return index.js due to strong dep [don't merge yet] Nov 30, 2020
@profnandaa profnandaa added blocked For PRs that are blocked due to pending discussions, etc. 🍿 discussion labels Nov 30, 2020
@ezkemboi
Copy link
Member

Let me think and research the best way to do automation.

@tux-tn
Copy link
Member

tux-tn commented Nov 30, 2020

I suggest to automate this step using github actions:

Copy link
Member

@tux-tn tux-tn left a comment

Choose a reason for hiding this comment

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

If you agree with the idea of using github actions, i suggest also to move all our CI workflow to github-actions for consistence.

@profnandaa
Copy link
Member Author

@tux-tn -- good idea, let's go with that. I'll check out the docs, thanks!

@codecov
Copy link

codecov bot commented Nov 30, 2020

Codecov Report

Merging #1540 (1d3b776) into master (4e3e51c) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1540   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           99        99           
  Lines         1773      1773           
=========================================
  Hits          1773      1773           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e3e51c...1d3b776. Read the comment docs.

@tux-tn
Copy link
Member

tux-tn commented Dec 9, 2020

@profnandaa can i take care of it?

@profnandaa
Copy link
Member Author

Yes sir, please do. I would like us to start off with a staging NPM package which I'm going to create validator-dev. Will invite you on it as a contributor.

@profnandaa
Copy link
Member Author

/cc. @chriso

@profnandaa
Copy link
Member Author

@tux-tn tux-tn mentioned this pull request Dec 12, 2020
2 tasks
@profnandaa
Copy link
Member Author

closing coz #1553

@profnandaa profnandaa closed this Dec 13, 2020
@profnandaa profnandaa deleted the fix_gitignore branch December 13, 2020 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked For PRs that are blocked due to pending discussions, etc. 🍿 discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants