Skip to content

Commit 14bf0f1

Browse files
dannyrbswederik
authored andcommitted
Feature/remove dist from src (#243)
* Bye bye, dist directory 👋 * Ignore the dist directory moving forward * Ignore almost everything for npm packages * Explicitly define files in project.json * Alphabatize existing npm scripts * Also force a build before attempting to publish * Bumping a patch version as this is a chore PR * Let's be slightly more specific with the directory ignores * prepublish was deprecated in npm 4.0; Using the new hook * We have a yarn.lock, but... All of the npm scripts start with `npm`, not `yarn`. Comitting both updated for now. * Note regarding `@next` tag * Replace `dist` script source with unpkg CDN source (points to @latest) on npm * Update readme to include unpkg CDN links * Update our last reference to committed bootstrap.min.css file... * Remove copy of bootstrap.min.css from examples * Update bootstrap CDN URL to work locally when served from filesystem * Use local `cornerstone.js` if it's available, if not, grab @latest from the CDN
1 parent 62cf4b2 commit 14bf0f1

File tree

36 files changed

+12407
-7620
lines changed

36 files changed

+12407
-7620
lines changed

Diff for: .gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
node_modules
22
npm-debug.log
33
.idea
4-
coverage
5-
documentation
4+
coverage/
5+
documentation/
66
docs/_book
77
docs/api.md
8+
dist/

Diff for: .npmignore

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
1-
test
2-
src
3-
example
4-
docs
5-
documentation
6-
coverage
1+
## All Non-Dist Directories
2+
build/
3+
config/
4+
docs/
5+
example/
6+
src/
7+
test/
8+
9+
## Root Files
10+
11+
.babelrc
12+
.eslintignore
13+
.eslintrc.js
14+
.gitignore
15+
.jsdocrc
16+
.npmignore
17+
.travis.yml
18+
changelog.md
19+
documentation.yml
20+
karma.conf.js

Diff for: README.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,21 @@ Install
3232

3333
Get a packaged source file:
3434

35-
* [cornerstone.js](https://raw.githubusercontent.com/cornerstonejs/cornerstone/master/dist/cornerstone.js)
36-
* [cornerstone.min.js](https://raw.githubusercontent.com/cornerstonejs/cornerstone/master/dist/cornerstone.min.js)
35+
* [cornerstone.js](https://unpkg.com/cornerstone-core)
36+
* `https://unpkg.com/cornerstone-core`
37+
* [cornerstone.min.js](https://unpkg.com/cornerstone-core/dist/cornerstone.js)
38+
* `https://unpkg.com/cornerstone-core/dist/cornerstone.js`
3739

3840
Or install via [NPM](https://www.npmjs.com/):
3941

42+
**Latest stable release:**
43+
4044
> npm install cornerstone-core
4145
46+
**Pre-release, unstable, mostly for contributors:**
47+
48+
> npm install cornerstone-core@next
49+
4250

4351
Key Features
4452
------------
@@ -187,4 +195,4 @@ Copyright 2017 Chris Hafey [[email protected]](mailto:[email protected])
187195
[travis-image]: https://travis-ci.org/cornerstonejs/cornerstone.svg?branch=master
188196

189197
[coverage-url]: https://coveralls.io/github/cornerstonejs/cornerstone?branch=master
190-
[coverage-image]: https://coveralls.io/repos/github/cornerstonejs/cornerstone/badge.svg?branch=master
198+
[coverage-image]: https://coveralls.io/repos/github/cornerstonejs/cornerstone/badge.svg?branch=master

0 commit comments

Comments
 (0)