Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": "0.2.0",
"configurations": [

{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "/Users/jimerino/Documents/workspace/nvd3/examples/coreline.html",
"webRoot": "${workspaceRoot}"
},
{
// This one in case you manually start 2 debug sessions.
// Like first .net core
// then attach to the browser that was started.
"type": "chrome",
"request": "attach",
"name": "AttachChrome",
"port": 9222,
"webRoot": "${workspaceRoot}"
}
]
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't include IDE specific files please

11 changes: 11 additions & 0 deletions =1.9.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
nvd3@1.8.5-dev /Users/jimerino/Documents/workspace/nvd3
├─┬ chai@4.1.0
│ ├── assertion-error@1.0.2
│ ├── check-error@1.0.2
│ ├─┬ deep-eql@2.0.2
│ │ └── type-detect@3.0.0
│ ├── get-func-name@2.0.0
│ ├── pathval@1.1.0
│ └── type-detect@4.0.3
└── UNMET PEER DEPENDENCY sinon@^1.4.0 || ^2.1.0

17 changes: 13 additions & 4 deletions GruntFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ module.exports = function(grunt) {
//Project configuration.
grunt.initConfig({
pkg: _pkg,
browserify: {
dist: {
options: {
transform: [["babelify", { presets: ["es2015"], compact: false }]]
},
files: {
"build/bundle.js": "build/nv.d3.js"
}
}
},
concat: {
css: {
options: {
Expand All @@ -22,9 +32,6 @@ module.exports = function(grunt) {
js: {
options: {
separator: '',
banner: '/* nvd3 version ' + _pkg.version + ' (' + _pkg.url + ') ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */\n' + '(function(){\n',
footer: '\nnv.version = "' + _pkg.version + '";\n})();',
sourceMap: true,
sourceMapName: 'build/nv.d3.js.map',
sourceMapStyle: 'embed'
Expand Down Expand Up @@ -79,7 +86,7 @@ module.exports = function(grunt) {
watch: {
js: {
files: ["src/**/*.js"],
tasks: ['concat']
tasks: ['concat', 'browserify']
}
},
copy: {
Expand Down Expand Up @@ -161,8 +168,10 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-text-replace');
grunt.loadNpmTasks('grunt-browserify');

grunt.registerTask('default', ['concat', 'copy', 'postcss', 'karma:unit']);
grunt.registerTask('debug', ['concat', 'browserify', 'copy', 'postcss']);
grunt.registerTask('production', ['concat', 'uglify', 'copy', 'postcss', 'cssmin', 'replace']);
grunt.registerTask('release', ['production']);
grunt.registerTask('lint', ['jshint']);
Expand Down
8 changes: 8 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import http from 'http';

http.createServer((req, res) => {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(5858, '127.0.0.1');

console.log('Server running at http://127.0.0.1:5858/');
Loading