Skip to content

Commit b1a4ccf

Browse files
committed
getting pkg ready for bower and some other cleanups
1 parent 47ba8e3 commit b1a4ccf

File tree

9 files changed

+378
-47
lines changed

9 files changed

+378
-47
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ results
1414
npm-debug.log
1515
node_modules
1616
coverage
17-
build
1817
xunit.xml

Gruntfile.js

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,34 @@ module.exports = function (grunt) {
55
grunt.initConfig({
66
pkg: grunt.file.readJSON('package.json'),
77
jshint: {
8-
all: ['index.js', 'lib/*.js', 'tests/*.js']
8+
all: ['index.js', '*.json', 'lib/*.js', 'tests/*.js']
9+
},
10+
copy: {
11+
lib: {
12+
files: [{
13+
expand: true,
14+
cwd: 'lib/',
15+
src: ['*.js'],
16+
dest: 'dist/',
17+
filter: 'isFile'
18+
}]
19+
}
920
},
1021
uglify: {
1122
options: {
1223
preserveComments: 'some'
1324
},
1425
helpers: {
15-
src: 'lib/helpers.js',
16-
dest: 'build/helpers.min.js'
26+
src: 'dist/helpers.js',
27+
dest: 'dist/helpers.min.js'
1728
}
1829
}
1930
});
2031

2132
grunt.loadNpmTasks('grunt-contrib-jshint');
33+
grunt.loadNpmTasks('grunt-contrib-copy');
2234
grunt.loadNpmTasks('grunt-contrib-uglify');
2335

24-
grunt.registerTask('build', ['uglify:helpers',]);
36+
grunt.registerTask('build', ['copy', 'uglify',]);
2537
grunt.registerTask('default', ['jshint']);
2638
};

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,4 +331,11 @@ Output:
331331

332332
```html
333333
<p>Jeremy harvested 1 apple.</p>
334-
```
334+
```
335+
336+
## License
337+
338+
This software is free to use under the Yahoo! Inc. BSD license.
339+
See the [LICENSE file][] for license text and copyright information.
340+
341+
[LICENSE file]: https://github.com/yahoo/dust-helper-intl/blob/master/LICENSE

bower.json

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
11
{
2-
"name": "dust-helpers-intl",
3-
"main": "lib/helpers.js",
4-
"version": "0.0.2",
5-
"homepage": "https://github.com/yahoo/dust-helpers-intl",
6-
7-
"authors": [
8-
"Anthony Pipkin <[email protected]>"
9-
],
10-
11-
"description": "dust helpers for internationalization",
12-
13-
"keywords": [
14-
"intl",
15-
"i18n",
16-
"dust"
17-
],
18-
19-
"license": "Yahoo BSD",
20-
21-
"dependencies": {
22-
"intl-messageformat": "~0.1.0"
23-
},
24-
25-
"ignore": [
26-
"**/.*",
27-
"coverage",
28-
"node_modules",
29-
"bower_components",
30-
"tests"
31-
]
2+
"name": "dust-helpers-intl",
3+
"main": "dist/helpers.js",
4+
"version": "0.0.3",
5+
"homepage": "https://github.com/yahoo/dust-helpers-intl",
6+
"author": "Drew Folta <[email protected]>",
7+
"description": "dust helpers for internationalization",
8+
"keywords": [
9+
"intl",
10+
"i18n",
11+
"dust"
12+
],
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/yahoo/dust-helper-intl.git"
16+
},
17+
"licenses": [{
18+
"type": "Yahoo BSD",
19+
"url": "https://github.com/yahoo/dust-helper-intl/blob/master/LICENSE"
20+
}],
21+
"dependencies": {
22+
"intl-messageformat": "~0.1.0"
23+
},
24+
"ignore": [
25+
"!dist/*.js"
26+
]
3227
}

0 commit comments

Comments
 (0)