-
Notifications
You must be signed in to change notification settings - Fork 200
Stdlib/lib/dependency rename to package #240
Conversation
Awesome work Jota! I didn't even know there were still references to stdlib around the codebase. The only thing I'm not sold on is removing the term As for the commands, I'd try alternating between dependencies and packages depending on the context, for instance: @ElOpio or @maraoz could you chime in? I don't want to change anything you guys have already agreed upon regarding naming, but I'd appreciate if you could review it. |
Agree 100% with @spalladino on the "dependencies" vs "packages" comment. Actually I had this concern in my mind when we decided to rename "libraries" to "packages", happy to see it addressed. |
Fix unit tests Modify option on integration test command call Rename dependencies to packages in vouching Change and revert some names Change 'package' to 'dependencies' when necessary
4e79dd6
to
3d4b586
Compare
Note: I squashed my previous commits to avoid dealing with conflicts in each commit while rebasing on top of master, sorry for that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Left a few comments only.
packages/cli/src/commands/unlink.js
Outdated
const signature = `${name} [libraries...]` | ||
const description = 'unlinks libraries from the project. Provide a list of whitespace-separated library names' | ||
const signature = `${name} [packages...]` | ||
const description = 'unlinks packages from the project. Provide a list of whitespace-separated package names' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use the same naming in both link and unlink (I'd go for dependencies)
packages/cli/src/commands/link.js
Outdated
const signature = `${name} [libraries...]` | ||
const description = 'links project with a list of libraries located in each library npm package' | ||
const signature = `${name} [dependencies...]` | ||
const description = 'links project with a list of dependencies located in its npm package' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const description = 'links project with a list of dependencies located in its npm package' | |
const description = 'links project with a list of dependencies each located in its npm package' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look ma, I'm using Github suggestions!!
packages/cli/src/commands/freeze.js
Outdated
@@ -5,7 +5,7 @@ import runWithTruffle from '../utils/runWithTruffle' | |||
|
|||
const name = 'freeze' | |||
const signature = name | |||
const description = 'freeze current release version of your stdlib project' | |||
const description = 'freeze current release version of your package project' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const description = 'freeze current release version of your package project' | |
const description = 'freeze current release version of your published project' |
Now we can freeze any kind of project, as long as its published.
* [CI skip] First draft of a new section describing the unstructured storage proxy pattern. * [CI skip] Finished first draft of Proxy section. * [CI skip] Merged some items in advanced.md to proxies.md * [CI skip] Assimilated some of elopio's reviews * [CI skip] Minor spelling fixes * [CI skip] Added a few diagrams to the proxies section. * Modified advanced section about json files to account for light mode. * Removed (or names!) * [CI skip] updated advanced section, jsons sub-section about the --full option. * [CI skip] Typo fix explicitely > explicitly * Update dependencies version on push (#279) * Reupload contract if related lib has changed (#280) * Add vouching kovan deploy * Use version of dependency for identifying proxies in network json file (#281) Changes both create and update commands to retrieve the package version of either the project package or the dependency package when annotating the proxy version in the network json file. * Link command now successfully runs npm install again (#278) * Check if project is published before freeze (#285) * Check if project is published before freeze * Check if package exists instead of if app exists * docs: remove basil and crafty demos (#277) The demos are outdated. For 2.0, they should probably be replaced with simpler examples. Fixes: #96 [CI skip] * Stdlib/lib/dependency rename to package (#240) * Rename stdlib/dependency to package Fix unit tests Modify option on integration test command call Rename dependencies to packages in vouching Change and revert some names Change 'package' to 'dependencies' when necessary * Implement suggestions from spalladino * Fix storage layout parsing when there are complex types (#286) Given a contract with a mapping or array (not struct), the check for whether it contained structs or enums failed if there was no variable with the same type as the value type of the mapping or array. For instance, a contract with a variable of type `array(string)` and another `string` would work, but a contract with just `array(string)` would fail. * Change status fix/fetch error message (#289) * Preserve error stack trace when using ScriptError (#287) * Update and unify package json files structures (#282) * Check if package is frozen before uploading solidity libs (#284) Previously the check was done only when uploading contracts, and caused the solidity lib upload to fail with an EVM revert. * Cleanup the READMEs (#276) * Clean the main README Fixes #232 * Added links to the blog and twitter * Added links to the blog and twitter * Update the docs README with suggestions by @facuspagnuolo * Fix docs readme clone instructions * Update to v2.0.0-rc.0 * Update CLI package lock * Use latest versions of TPL-eth and OZ-eth (#295) * Update to v2.0.0 * Fix vouching deployment script * Update CLI package lock * Update TPL-eth and OZ-eth to latest released versions * Add zos files to vouching package files list * Applied @facuspagnuolo's suggestion about publish [CI skip] * docs: restructure the docs webiste Fixes: zeppelinos/zos-docs#94 [CI skip] * Remove the duplicated proxies * Fix the new in zOS 2 page. [CI skip] * [CI skip] * correction for consistency * fix small mistakes * fix small mistakes
Renamed stdlib/lib/dependency to package in messages, labels, descriptions and json attributes.
Fixes #238.
Related to #272.