forked from cncjs/cncjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename files and restructure folder layout (cncjs#440)
- Loading branch information
Showing
652 changed files
with
10,513 additions
and
10,062 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:8 | ||
FROM node:10 | ||
MAINTAINER Cheton Wu <[email protected]> | ||
|
||
ADD package.json package.json | ||
|
@@ -7,4 +7,4 @@ RUN npm install --production | |
|
||
ADD . . | ||
EXPOSE 8000 | ||
CMD ["bin/cnc"] | ||
CMD ["bin/cncjs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
extends: '@trendmicro/babel-config', | ||
presets: [ | ||
'@babel/preset-env', | ||
'@babel/preset-react' | ||
], | ||
plugins: [ | ||
'lodash' | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#!/usr/bin/env node | ||
|
||
require('babel-polyfill'); | ||
require('@babel/polyfill'); | ||
|
||
var cnc; | ||
const chalk = require('chalk'); | ||
|
||
if (process.env.NODE_ENV === 'development') { | ||
cnc = require('../output/cnc').default; | ||
} else { | ||
cnc = require('../dist/cnc/cnc').default; | ||
} | ||
console.warn(chalk.yellow('Warning: The "cnc" executable is deprecated and will be removed in the next major release. Use "cncjs" instead to avoid deprecation.\n')); | ||
|
||
cnc().catch(err => { | ||
const launchServer = (process.env.NODE_ENV === 'development') | ||
? require('../output/server-cli').default | ||
: require('../dist/cncjs/server-cli').default; | ||
|
||
launchServer().catch(err => { | ||
console.error('Error:', err); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env node | ||
|
||
require('@babel/polyfill'); | ||
|
||
const launchServer = (process.env.NODE_ENV === 'development') | ||
? require('../output/server-cli').default | ||
: require('../dist/cncjs/server-cli').default; | ||
|
||
launchServer().catch(err => { | ||
console.error('Error:', err); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.