Skip to content

Commit

Permalink
Reorganize
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Solum authored and Ben Solum committed Apr 1, 2016
1 parent 6bd9f7f commit 498dced
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
npm-debug.log
*.map
dist/sweatmap.js
browser/sweatmap.js
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "SweatMap",
"description": "SweatMap takes in a series of UTF-8 strings and gives you a series of UTF-8 strings out that are as small as possible while still being unique.",
"version": "0.0.1",
"version": "0.0.2",
"author": {
"name": "Benjamin Solum",
"url": "http://soluml.com"
Expand All @@ -18,15 +18,15 @@
"optimize",
"css"
],
"main": "src/map.js",
"main": "node/map.js",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/soluml/sweatmap.git"
},
"scripts": {
"start": "NODE_ENV=production webpack",
"pretest": "eslint src/**/*.js test/**/*.js",
"pretest": "eslint node/**/*.js test/**/*.js",
"test": "mocha"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

var assert = require('assert');
var SweatMap = require('../src/map.js');
var SweatMap = require('../node/map.js');

describe('SweatMap', function() {
describe('#constructor(existing_strings, additional_ranges)', function () {
Expand Down
2 changes: 1 addition & 1 deletion test/www.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="../dist/sweatmap.js"></script>
<script src="../browser/sweatmap.js"></script>
</head>
<body>
<script>
Expand Down
8 changes: 4 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ var packageJSON = require('./package.json');

module.exports = {
entry: {
'sweatmap': ['./src/map.js'],
'sweatmap': ['./node/map.js'],
},
output: {
path: 'dist',
path: 'browser',
filename: '[name]'+ (isProd ? '-'+ packageJSON.version +'.min' : '') +'.js'
},
debug: true,
devtool: isProd ? 'false' : 'source-map',
resolve: {
root: [ path.resolve('src') ]
root: [ path.resolve('node') ]
},
module: {
loaders: [].concat(isProd ? [
{
test: /src\/.*\.js$/,
test: /node\/.*\.js$/,
loader: 'babel-loader',
query: {
presets: ['es2015']
Expand Down

0 comments on commit 498dced

Please sign in to comment.