Skip to content

Commit

Permalink
Setting up project architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamminf committed Jul 3, 2016
1 parent 008e0b8 commit 5d2efb2
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 110 deletions.
107 changes: 2 additions & 105 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,106 +1,3 @@
### Node ###
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules


### PhpStorm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm

*.iml

## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:

# User-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# .idea/dictionaries

# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml

# Gradle:
# .idea/gradle.xml
# .idea/libraries

# Mongo Explorer plugin:
# .idea/mongoSettings.xml

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties


### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


### grunt ###
# Grunt usually compiles files inside this directory
# dist/

# Grunt usually preprocesses files such as coffeescript, compass... inside the .tmp directory
.tmp/
.DS_Store
.idea
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Benjamin Fleming
Copyright (c) 2016 Benjamin Fleming

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
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# dvg.js - *Distortable* Vector Graphics
# warp.js

Distort, warp, bend, twist and smudge your scalable vector graphics in real time. DVG allows you to feed in any SVG file and apply any kind of complex transformation.

#### Version 1 in development
Warp, distort, bend, twist and smudge your scalable vector graphics in real time. `warp.js` allows you to feed in any
SVG file and apply any kind of complex transformation.
32 changes: 32 additions & 0 deletions build/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const webpack = require('webpack')
const path = require('path')

module.exports = {
devtool: 'source-map',
entry: '../src/main.js',
output: {
path: '../dist/',
filename: 'warp.js'
},
plugins: [
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
})
],
module: {
loaders: [
{
loader: 'babel-loader',
test: /\.jsx?$/,
include: [
path.resolve(__dirname, 'src')
],
query: {
presets: ['es2015']
}
}
]
}
}
2 changes: 2 additions & 0 deletions dist/warp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/warp.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "warpjs",
"version": "1.0.0",
"description": "Warp, distort, bend, twist and smudge your SVG's directly in the browser",
"main": "dist/warp.js",
"files": [
"dist/warp.js",
"dist/warp.js.map",
"src"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/benjamminf/warpjs.git"
},
"keywords": [
"svg",
"graphics",
"library",
"warp",
"distort"
],
"author": "Benjamin Fleming <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/benjamminf/warpjs/issues"
},
"homepage": "https://github.com/benjamminf/warpjs#readme",
"devDependencies": {
"babel-core": "^6.10.4",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.9.0",
"webpack": "^1.13.1"
}
}
Empty file added src/main.js
Empty file.

0 comments on commit 5d2efb2

Please sign in to comment.