Skip to content
Merged

Next #24

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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-nullstack-app",
"version": "0.3.0",
"version": "0.4.0",
"description": "",
"author": "Mortaro",
"repository": "github:nullstack/create-nullstack-app",
Expand All @@ -15,4 +15,4 @@
"scripts": {
"test": "jest --testTimeout=10000 --runInBand"
}
}
}
3 changes: 2 additions & 1 deletion src/locales/template/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"welcome": "Welcome to Nullstack!",
"madeWith": "was made with Nullstack",
"nullstackDoc": "https://nullstack.app/",
"startupDoc": "https://nullstack.app/application-startup",
"gettingStarted": "We made some examples to help you getting started! Take a look at the",
"srcFolder": "src folder",
"hintExtension": "Hint: we have a",
"vsExtension": "VS Code Extension",
"vsExtension": "VS Code Extension",
"links": [
[
"https://nullstack.app/renderable-components",
Expand Down
1 change: 1 addition & 0 deletions src/locales/template/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"welcome": "Nulla-chan te dá as boas vindas!",
"madeWith": "foi feito com Nullstack",
"nullstackDoc": "https://nullstack.app/pt-br",
"startupDoc": "https://nullstack.app/pt-br/inicializacao-da-aplicacao",
"gettingStarted": "Fizemos alguns exemplos para te ajudar a começar! Dê uma olhada na",
"srcFolder": "pasta src",
"hintExtension": "Dica: nós temos uma",
Expand Down
10 changes: 10 additions & 0 deletions src/template/client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Nullstack from 'nullstack';
import Application from './src/Application';

const context = Nullstack.start(Application);

context.start = async function start() {
// {{i18n_startupDoc}}
}

export default context;
4 changes: 0 additions & 4 deletions src/template/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "",
"license": "ISC",
"devDependencies": {
"nullstack": "~0.11.0"
"nullstack": "~0.12.0"
},
"scripts": {
"start": "npx nullstack start",
Expand Down
10 changes: 10 additions & 0 deletions src/template/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Nullstack from 'nullstack';
import Application from './src/Application';

const context = Nullstack.start(Application);

context.start = async function start() {
// {{i18n_startupDoc}}
}

export default context;