Skip to content

Commit

Permalink
feat!: remove spark library
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamKelley committed Nov 15, 2023
1 parent 90464f1 commit d85e17c
Show file tree
Hide file tree
Showing 783 changed files with 27 additions and 36,063 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ jobs:
- name: Install dependencies
run: npm i

# Build independent of publish because of custom command and output location
- name: Build storybook
run: npx nx run spark:build-storybook

- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: dist/storybook/spark
storybookBuildDir:
3 changes: 0 additions & 3 deletions .github/workflows/ci:main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,3 @@ jobs:

- name: Check format
run: npm run format:check

- name: Unit test project spark
run: npx nx run spark:test
38 changes: 0 additions & 38 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,44 +21,6 @@ jobs:
- name: Clean install
run: npm ci

- name: Test
run: npx nx run spark:test

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

- name: Build @prenda/spark
run: npm run build:components

- name: Publish @prenda/spark
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./dist/libs/spark/package.json

- name: Notify @prenda/spark publish success
if: success()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: feed-design-system
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://github.com/prenda-school/prenda-spark/raw/main/public/img/prenda-design-system-abstract-mark-logo.svg
SLACK_USERNAME: 'Action: NPM Publish'
MSG_MINIMAL: true
SLACK_TITLE: '@prenda/spark ${{ steps.get_version.outputs.VERSION }}'
SLACK_MESSAGE: Published

- name: Notify @prenda/spark publish failure
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: feed-design-system
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_ICON: https://github.com/prenda-school/prenda-spark/raw/main/public/img/prenda-design-system-abstract-mark-logo.svg
SLACK_USERNAME: 'Action: NPM Publish'
MSG_MINIMAL: true
SLACK_TITLE: '@prenda/spark ${{ steps.get_version.outputs.VERSION }}'
SLACK_MESSAGE: Failed to publish
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/coverage
/dist
/libs/spark/public/fonts/**/LICENSE.(txt|md)
4 changes: 1 addition & 3 deletions .storybook/manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import { create } from '@storybook/theming';
// Read about the purpose of this file: https://storybook.js.org/docs/react/configure/features-and-behavior

// Hierarchy naming described here: https://storybook.js.org/docs/react/writing-stories/naming-components-and-hierarchy . Limitation is that slashes ("/") cannot be used in a name, so we define some shorthand-mappings here (also these are just long).
const nameToLabel = {
'@ps': '@prenda/spark',
};
const nameToLabel = {};

const config: Config = {
sidebar: {
Expand Down
20 changes: 1 addition & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
</p>

[![Contributors](https://img.shields.io/github/contributors/prenda-school/design-system)](https://github.com/prenda-school/design-system/graphs/contributors)
[![NPM Latest Version](https://img.shields.io/npm/v/@prenda/spark/latest)](https://www.npmjs.com/package/@prenda/spark)
[![NPM Downloads](https://img.shields.io/npm/dm/@prenda/spark)](https://www.npmjs.com/package/@prenda/spark)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow)](https://conventionalcommits.org)
[![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079)](https://semver.org/)
[![Figma](https://img.shields.io/badge/-designed%20in%20Figma-f24e1e?logo=figma&logoColor=white)](https://www.figma.com/files/917908403520495571/project/20230042/Design-System?fuid=918218354701455034)
Expand All @@ -30,26 +28,12 @@

Implementations are available as installable NPM packages:

- [@prenda/spark](https://www.npmjs.com/package/@prenda/spark)

## Usage

Here is an example to get you started.

```tsx
import React from 'react';
import ReactDOM from 'react-dom';
import { SparkThemeProvider, Button } from '@prenda/spark';

function App() {
return (
<SparkThemeProvider>
<Button>Hello World</Button>
</SparkThemeProvider>
);
}

ReactDOM.render(<App />, document.querySelector('#app'));

```

## Documentation
Expand All @@ -64,8 +48,6 @@ Read the [contributing guide](/CONTRIBUTING.md) to learn about our development p

Read the changelog of each library to address breaking changes and learn about new features and fixes.

- [`@prenda/spark/CHANGELOG`](libs/spark/CHANGELOG.md)

## No license

Copyright (C) 2021 Prenda, Inc. -- All Rights Reserved
Expand Down
11 changes: 0 additions & 11 deletions libs/spark/.babelrc

This file was deleted.

33 changes: 0 additions & 33 deletions libs/spark/.eslintrc.json

This file was deleted.

27 changes: 0 additions & 27 deletions libs/spark/.storybook/main.js

This file was deleted.

2 changes: 0 additions & 2 deletions libs/spark/.storybook/manager.js

This file was deleted.

23 changes: 0 additions & 23 deletions libs/spark/.storybook/preview.js

This file was deleted.

19 changes: 0 additions & 19 deletions libs/spark/.storybook/tsconfig.json

This file was deleted.

Loading

0 comments on commit d85e17c

Please sign in to comment.