Skip to content

Commit

Permalink
rework build to publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
halvves committed Feb 5, 2019
1 parent b9a0549 commit c27eb6c
Show file tree
Hide file tree
Showing 10 changed files with 4,551 additions and 2,357 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
indent_size = 2
end_of_line = lf
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
*.log
dist
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017
Copyright (c) 2019 halvves

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,21 @@ Shaderpen is a simple library that mimics a lot of the same functionality seen i

## Usage

### npm/Import

`npm install shaderpen`

```javascript
import ShaderPen from 'shaderpen';

new ShaderPen(`
WRITE YOUR SHADER HERE
`);
```

### Script Include

Include the script: `https://cdn.rawgit.com/halvves/shaderpen/v0.0.1/dist/shaderpen.js`
Include the script: `https://unpkg.com/shaderpen`

```javascript
new ShaderPen(`
Expand All @@ -26,7 +38,6 @@ I've tested this library a good bit with various examples from Shadertoy that do

## TODO

* Make as module and publish to npm
* Add iDate from Shadertoy
* Begin exploring ways of extending

Expand Down
208 changes: 0 additions & 208 deletions dist/shaderpen.js

This file was deleted.

Loading

0 comments on commit c27eb6c

Please sign in to comment.