Advantages:
Future features:
Challenges:
I'm working a little library package that I want to eventually publish to npm which I'm creating as an intermediate packet as part of my work on x-for-superusers.
My goals:
Steps:
npx npm-packlist
to double check my configuration--dev
):typescript
- So I can use typescriptjest
- I'm not a big fan of the big dependency stack, but it works well@types/jest
- So I can write my tests in typescript@babel/preset-env
- So I can write my tests in typescript@babel/preset-typescript
- So I can write my tests in typescript"files: ["index.ts", "dist/*"]
this prevents random files from being in the npm package when I publish it. Note I kept index.ts so package consumers can see the source even if they don't have source maps enabled."prepublish": "tsc"
in scripts so that typescript will compile before publishingtsconfig.json
"outDir": "dist"
so that I don't clutter my project with output files"declaration": true,
and "declarationMap": true,
to ensure there are source maps in the output"exclude": ["node_modules","dist","*.test.ts"]
to exlude files from the output & dist folderbabel.config.js
module.exports = {
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
'@babel/preset-typescript',
],
};
The paths not taken:
The result: https://github.com/cwohlman/x-json/tree/bare-package
TODO:
Project -> Blog (try to use long tail keywords) -> Project insights -> Blog or tweet milestones on insights (e.g. 1st 1k revenu, 1st 10k visits, 1st 10 users, etc.) -> Twitter announcements -> Twitter questions/answers -> Github for any open source components (or the whole app) -> Tweet announcements -> Tweet maintenence insights -> Blog announcement (try to use long tail keywords)
Paid Gig -> Use codewords for non-public projects -> Use a no-unit scale for budget -> Be transparent about timeline & hours worked -> Blog at completion ? -> Add to project insights ? -> If fixed price, blog/tweet/track actual vs estimated costs (in my base hourly wage) -> Tweet interesting facts that I don't necessarily want to affect the Schelling Point for my hourly wage instead of blogging them
Price increase -> Project insights should factor in the increased cost of my labor -> Internet fistbump w/ patio11 after first paid gig after price increase
Publishing frequency
Insights:
More questions: