Skip to content

Commit

Permalink
Merge pull request #4 from Skelp/develop
Browse files Browse the repository at this point in the history
0.2.0
  • Loading branch information
neocotic authored Nov 24, 2016
2 parents 56ccb4d + 99ef90b commit 4d3d438
Show file tree
Hide file tree
Showing 14 changed files with 60 additions and 63 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "skelp/v2/es5",
"extends": "skelp/v3/es5",
"env": {
"node": true
},
Expand Down
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
lib/
test/
.*
AUTHORS.md
Expand Down
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Version 0.2.0, 2016.11.24

* Change source file to use ES6 module instead of CommonJS and add `jsnext:main` entry to `package.json`
* Publish source file with [npm](http://npmjs.com) package
* Switch to latest version of [ESLint](http://eslint.org)

## Version 0.1.1, 2016.09.21

* Change [Bower](https://bower.io) package name to `skelp-oopsy` to avoid conflict with existing package
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you're using a version of [Node.js](https://nodejs.org) that is older than 0.
this step. Please consider upgrading to at least 0.12 or your pull request may fail on the CI build.

Likewise, [Node.js](https://nodejs.org) versions older than 0.10 will also not be able to compile the source code using
[Rollup](http://rollupjs.org) so the test suite will not be executed against any changes you've made to `lib/oopsy.js`.
[Rollup](http://rollupjs.org) so the test suite will not be executed against any changes you've made to `src/oopsy.js`.
For this reason, 0.10 is not supported from a development perspective, but our CI builds do run the test suite against
the pre-compiled code for this version to ensure that it works.

Expand Down
18 changes: 5 additions & 13 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
*/

module.exports = function(grunt) {
var commonjs
var semver = require('semver')
var uglify

Expand All @@ -40,7 +39,7 @@ module.exports = function(grunt) {

watch: {
all: {
files: [ 'lib/**/*.js', 'test/**/*.js' ],
files: [ 'src/**/*.js', 'test/**/*.js' ],
tasks: [ 'build', 'mochaTest' ]
}
}
Expand All @@ -51,7 +50,6 @@ module.exports = function(grunt) {
var testTasks = [ 'compile', 'mochaTest' ]

if (semver.satisfies(process.version, '>=0.12')) {
commonjs = require('rollup-plugin-commonjs')
uglify = require('rollup-plugin-uglify')

compileTasks.push('clean', 'rollup')
Expand All @@ -68,15 +66,10 @@ module.exports = function(grunt) {
moduleId: 'oopsy',
moduleName: 'Oopsy',
sourceMap: true,
sourceMapRelativePaths: true,
plugins: function() {
return [
commonjs()
]
}
sourceMapRelativePaths: true
},
files: {
'dist/oopsy.js': 'lib/oopsy.js'
'dist/oopsy.js': 'src/oopsy.js'
}
},
umdProduction: {
Expand All @@ -89,7 +82,6 @@ module.exports = function(grunt) {
banner: '/*! Oopsy v<%= pkg.version %> | (C) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> | MIT License */',
plugins: function() {
return [
commonjs(),
uglify({
output: {
comments: function(node, comment) {
Expand All @@ -101,7 +93,7 @@ module.exports = function(grunt) {
}
},
files: {
'dist/oopsy.min.js': 'lib/oopsy.js'
'dist/oopsy.min.js': 'src/oopsy.js'
}
}
}
Expand All @@ -118,7 +110,7 @@ module.exports = function(grunt) {
testTasks.unshift('eslint')

grunt.config.set('eslint', {
target: [ 'lib/**/*.js', 'test/**/*.js' ]
target: [ 'src/**/*.js', 'test/**/*.js' ]
})

grunt.loadNpmTasks('grunt-eslint')
Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "skelp-oopsy",
"version": "0.1.1",
"version": "0.2.0",
"description": "Simple OOP for JavaScript",
"homepage": "https://github.com/Skelp/oopsy",
"authors": [
Expand Down Expand Up @@ -28,7 +28,7 @@
"node"
],
"ignore": [
"lib/",
"src/",
"test/",
".*",
"AUTHORS.md",
Expand Down
54 changes: 26 additions & 28 deletions dist/oopsy.js

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

Loading

0 comments on commit 4d3d438

Please sign in to comment.