@spectre-org/spectre-css
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "@spectre-org/spectre-css", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"homepage": "http://spectre-org.github.io/spectre-docs", | ||
"description": "Spectre CSS: A lightweight, responsive and modern CSS framework", | ||
"type": "module", | ||
"main": "dist/spectre.css", | ||
@@ -19,3 +20,4 @@ "files": [ | ||
"build": "gulp build", | ||
"release": "npm run build && npm publish --access public" | ||
"release": "npm run build && npm publish --access public", | ||
"release:dry": "npm run build && npm publish --access public --dry-run" | ||
}, | ||
@@ -36,18 +38,18 @@ "keywords": [ | ||
"devDependencies": { | ||
"gulp": "^4.0.2", | ||
"gulp-autoprefixer": "^8.0.0", | ||
"gulp": "^5.0.0", | ||
"gulp-replace": "^1.1.4", | ||
"gulp-autoprefixer": "^9.0.0", | ||
"gulp-clean-css": "^4.3.0", | ||
"gulp-csscomb": "^3.1.0", | ||
"gulp-rename": "^2.0.0", | ||
"gulp-sass": "^5.0.0", | ||
"sass": "^1.68.0" | ||
"gulp-sass": "^5.1.0", | ||
"sass": "^1.77.8" | ||
}, | ||
"browserslist": [ | ||
"last 4 Chrome versions", | ||
"Edge >= 12", | ||
"last 4 Edge versions", | ||
"last 4 Firefox versions", | ||
"Firefox ESR", | ||
"last 4 Safari versions", | ||
"last 4 Opera versions", | ||
"Explorer >= 10" | ||
"last 4 Safari versions" | ||
] | ||
} |
@@ -29,4 +29,4 @@ <a href="https://spectre-org.github.io/spectre-css"> | ||
- [Installation](https://spectre-org.github.io/spectre-docs/docs/setup/installation.html) | ||
- [Customising](https://spectre-org.github.io/spectre-docs/docs/setup/custom.html) | ||
- [Installation](https://spectre-org.github.io/spectre-docs/docs/get-started/installation.html) | ||
- [Build](https://spectre-org.github.io/spectre-docs/docs/get-started/build.html) | ||
@@ -46,1 +46,78 @@ Content: | ||
- [Spectre.css on Twitter](https://twitter.com/spectrecss) | ||
## Contributing | ||
### Build | ||
Clone this repo locally with: | ||
```bash | ||
git clone https://github.com/spectre-org/spectre-css.git | ||
``` | ||
Spectre uses [Gulp](http://gulpjs.com/) to compile CSS: | ||
```bash | ||
# watch file changes and re-compile | ||
npm run dev | ||
# compile SCSS to CSS and minify files | ||
npm run build | ||
``` | ||
### Testing | ||
To work with Spectre CSS source files live in another project, you can use NPM link. | ||
In the Spectre CSS repo, create the global reference: | ||
```bash | ||
npm link | ||
``` | ||
In your project repo, create the link: | ||
```bash | ||
npm link @spectre-org/spectre-css | ||
``` | ||
The existing `node_modules/@spectre-org/spectre-css` folder will be replaced with a symlink to the local repository, and any changes there will be reflected immediately in your project. | ||
## Releasing | ||
> Releasing is only available to maintainers | ||
### Approach | ||
Spectre CSS is published to [NPM](https://www.npmjs.com/package/@spectre-org/spectre-css), and is made automatically available on [CDN](https://unpkg.com/@spectre-org/spectre-css/) thanks to [unpkg.com](https://unpkg.com/). | ||
Note that local `/src` files are compiled to `/dist` but are **not** committed to the repository. | ||
### Checklist | ||
Before publishing, check: | ||
- you're on the `main` branch | ||
- there are no outstanding commits | ||
- you bumped [`package.json`](./package.json) `version` correctly | ||
- you updated [`CHANGELOG.md`](./CHANGELOG.md) with all changes since the last version | ||
- you have tested the built files in an [NPM-linked project](#testing) (such as the [docs](https://github.com/spectre-org/spectre-docs)) | ||
### Release | ||
To build and publish directly to NPM, run: | ||
```bash | ||
npm run release | ||
``` | ||
To dry-run the release, run: | ||
```bash | ||
npm run release:dry | ||
``` | ||
Once published, Spectre will be available at: | ||
- NPM: https://www.npmjs.com/package/@spectre-org/spectre-css | ||
- CDN: https://unpkg.com/browse/@spectre-org/spectre-css@latest/ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122
Yes
274063
8
4566